Re: [PATCH v4 17/18] gpiolib: Group forward declarations in consumer.h

2023-02-09 Thread Linus Walleij
On Wed, Feb 8, 2023 at 6:34 PM Andy Shevchenko
 wrote:

> For better maintenance group the forward declarations together.
>
> Signed-off-by: Andy Shevchenko 

Reviewed-by: Linus Walleij 

Yours,
Linus Walleij


[PATCH v4 17/18] gpiolib: Group forward declarations in consumer.h

2023-02-08 Thread Andy Shevchenko
For better maintenance group the forward declarations together.

Signed-off-by: Andy Shevchenko 
---
 include/linux/gpio/consumer.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/gpio/consumer.h b/include/linux/gpio/consumer.h
index a7eb8aa1e54c..5432e5d5fbfb 100644
--- a/include/linux/gpio/consumer.h
+++ b/include/linux/gpio/consumer.h
@@ -7,6 +7,7 @@
 #include 
 #include 
 
+struct acpi_device;
 struct device;
 struct fwnode_handle;
 struct gpio_desc;
@@ -602,8 +603,6 @@ struct acpi_gpio_mapping {
unsigned int quirks;
 };
 
-struct acpi_device;
-
 #if IS_ENABLED(CONFIG_GPIOLIB) && IS_ENABLED(CONFIG_ACPI)
 
 int acpi_dev_add_driver_gpios(struct acpi_device *adev,
-- 
2.39.1