linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] leds: Remove local leds.h where not required
@ 2024-09-27 21:37 Javier Carrasco
  2024-09-27 21:37 ` [PATCH 1/6] leds: flash: Remove unused local leds.h Javier Carrasco
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Javier Carrasco @ 2024-09-27 21:37 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Marek Behún
  Cc: linux-leds, linux-kernel, Javier Carrasco

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@gmail.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@gmail.com>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-10-09 14:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27 21:37 [PATCH 0/6] leds: Remove local leds.h where not required Javier Carrasco
2024-09-27 21:37 ` [PATCH 1/6] leds: flash: Remove unused local leds.h Javier Carrasco
2024-09-27 21:37 ` [PATCH 2/6] leds: multicolor: " Javier Carrasco
2024-09-27 21:37 ` [PATCH 3/6] leds: gpio: " Javier Carrasco
2024-09-27 21:37 ` [PATCH 4/6] leds: lp50xx: " Javier Carrasco
2024-09-27 21:37 ` [PATCH 5/6] leds: pwm: " Javier Carrasco
2024-09-27 21:37 ` [PATCH 6/6] leds: turris-omnia: " Javier Carrasco
2024-10-09 14:37 ` [PATCH 0/6] leds: Remove local leds.h where not required Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).