Re: [PATCH v2 1/1] leds: expresswire: Don't use "proxy" headers

From: Duje Mihanović
Date: Sat Feb 24 2024 - 10:40:15 EST


On 2/23/2024 9:56 PM, Pavel Machek wrote:
-#include <linux/gpio/consumer.h>
+#include <linux/types.h>
+
+struct gpio_desc;

If include tweak means you need to declare struct, is it ian
improvement?

In this case I'd say yes, the header in question has numerous other declarations (which are not used in leds-expresswire.h) and itself declares gpio_desc like this anyway.

Regards,
--
Duje