[PATCH] gpio: pca953x: Add missing i2c dependency

Michal Simek monstr at monstr.eu
Thu Jun 10 09:30:23 CEST 2021


čt 3. 6. 2021 v 9:51 odesílatel Michal Simek <michal.simek at xilinx.com> napsal:
>
> pca953x also depends on i2c that's why add dependency to Kconfig.
> Where GPIO is enabled but I2C compilation error pops up.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
>  drivers/gpio/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
> index d24884739bf2..de4dc51d4b48 100644
> --- a/drivers/gpio/Kconfig
> +++ b/drivers/gpio/Kconfig
> @@ -396,7 +396,7 @@ config DM_74X164
>
>  config DM_PCA953X
>         bool "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports"
> -       depends on DM_GPIO
> +       depends on DM_GPIO && DM_I2C
>         help
>           Say yes here to provide access to several register-oriented
>           SMBus I/O expanders, made mostly by NXP or TI.  Compatible
> --
> 2.31.1
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs


More information about the U-Boot mailing list