diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-11-15 17:50:01 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-11-25 00:28:29 +0100 |
commit | 5f0dedcc9decbe8e8655373a34c87a076502b6db (patch) | |
tree | ffe49c587e9c4b349c449a6658a11f3f99cb423c /drivers/pinctrl/core.c | |
parent | 524fc108b8958683da9fb1c94b445ab9e07819ab (diff) |
pinctrl: don't include GPIOLIB private header
gpio_to_desc() is declared in linux/gpio.h so there's no need to include
gpiolib.h directly.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20231115165001.2932350-4-brgl@bgdev.pl
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/core.c')
-rw-r--r-- | drivers/pinctrl/core.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index 0b4d07aea387..e55959e1af5a 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -24,6 +24,7 @@ #include <linux/seq_file.h> #include <linux/slab.h> +#include <linux/gpio.h> #include <linux/gpio/driver.h> #include <linux/pinctrl/consumer.h> @@ -31,10 +32,6 @@ #include <linux/pinctrl/machine.h> #include <linux/pinctrl/pinctrl.h> -#ifdef CONFIG_GPIOLIB -#include "../gpio/gpiolib.h" -#endif - #include "core.h" #include "devicetree.h" #include "pinconf.h" |