[PATCH 05/13] mfd: replace linux/gpio.h inclusions
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Jun 30 06:28:29 PDT 2026
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The patch introduces a duplicate `#include <linux/gpio/consumer.h>` in `include/linux/mfd/ti-lmu.h`.
--
commit 19751af1f4af7549cf9f140e38427847c8babbd4
Author: Arnd Bergmann <arnd at arndb.de>
mfd: replace linux/gpio.h inclusions
This commit replaces the deprecated linux/gpio.h inclusion across various MFD
drivers and headers, converting them to use either linux/gpio/consumer.h or
linux/gpio/legacy.h as needed.
[ ... ]
> diff --git a/include/linux/mfd/ti-lmu.h b/include/linux/mfd/ti-lmu.h
> index 0bc0e81997987..5040c7d1e1b92 100644
> --- a/include/linux/mfd/ti-lmu.h
> +++ b/include/linux/mfd/ti-lmu.h
> @@ -10,7 +10,7 @@
> #ifndef __MFD_TI_LMU_H__
> #define __MFD_TI_LMU_H__
>
> -#include <linux/gpio.h>
> +#include <linux/gpio/consumer.h>
> #include <linux/notifier.h>
> #include <linux/regmap.h>
> #include <linux/gpio/consumer.h>
[Severity: Low]
This isn't a bug, but <linux/gpio/consumer.h> is now included twice. Would it
be better to just drop the replaced include here since the consumer header is
already present a few lines below?
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260629132633.1300009-1-arnd@kernel.org?part=5
More information about the linux-phy
mailing list