[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240927-leds_unused_leds_h-v1-0-46fbf41ed4ae@gmail.com>
Date: Fri, 27 Sep 2024 23:37:39 +0200
From: Javier Carrasco <javier.carrasco.cruz@...il.com>
To: Pavel Machek <pavel@....cz>, Lee Jones <lee@...nel.org>,
Marek BehĂșn <kabel@...nel.org>
Cc: linux-leds@...r.kernel.org, linux-kernel@...r.kernel.org,
Javier Carrasco <javier.carrasco.cruz@...il.com>
Subject: [PATCH 0/6] leds: Remove local leds.h where not required
There is a logical tendency to move elements from the local leds.h to
the global one under include/linux/ to make them accessible for users
outside the leds subsystem. On the other hand, some users of the local
header, which also include the global one, do not need to include it
anymore as the elements they required are no longer there.
That has been the case for leds-gpio and leds-pwm, which used to obtain
led_init_default_state_get() from that header. I could not identify the
reason why the rest of affected drivers included leds.h from the
beginning, but I suppose they used to require something that might not
be there anymore, or it was just added "by default". Either way, they
don't require it in their current form.
This series has been validated by building the kernel with both Clang
and GCC without any issues.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@...il.com>
---
Javier Carrasco (6):
leds: flash: Remove unused local leds.h
leds: multicolor: Remove unused local leds.h
leds: gpio: Remove unused local leds.h
leds: lp50xx: Remove unused local leds.h
leds: pwm: Remove unused local leds.h
leds: turris-omnia: Remove unused local leds.h
drivers/leds/led-class-flash.c | 1 -
drivers/leds/led-class-multicolor.c | 2 --
drivers/leds/leds-gpio.c | 2 --
drivers/leds/leds-lp50xx.c | 2 --
drivers/leds/leds-pwm.c | 1 -
drivers/leds/leds-turris-omnia.c | 1 -
6 files changed, 9 deletions(-)
---
base-commit: 40e0c9d414f57d450e3ad03c12765e797fc3fede
change-id: 20240927-leds_unused_leds_h-af790ac75d80
Best regards,
--
Javier Carrasco <javier.carrasco.cruz@...il.com>
Powered by blists - more mailing lists