Skip to contentSkip to conversation

gpiolib: cleanup for duplicated including

PATCH Superseded Wang Jinchao 2 participants 2 messages Dec 15, 2023 GPIO

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpiolib: cleanup for duplicated including

rm second #include <linux/err.h>

---
 include/linux/gpio/driver.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/gpio/driver.h +0 -2
index 0aed62f0c633..d659ba63bc20 100644
@@ -789,8 +789,6 @@ int gpio_device_get_base(struct gpio_device *gdev);
 
 #else /* CONFIG_GPIOLIB */
 
-#include <linux/err.h>
-
 #include <asm/bug.h>
 
 static inline struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc)
Signature · 1 line
2.40.0
#1 lore raw
Quoted 1 line · Wang Jinchao

rm second #include <linux/err.h>

rm --> Remove

Missing period at the end of the sentence.

Please, drop also asm/errno.h as they are guaranteed by the global err.h inclusion.

Signature · 2 lines
With Best Regards,
Andy Shevchenko