mbox series

[v2,0/2] power: supply: remove unneeded include of linux/leds.h

Message ID 20230212-include-power_supply-leds-v2-0-e9910a3f5837@weissschuh.net (mailing list archive)
Headers show
Series power: supply: remove unneeded include of linux/leds.h | expand

Message

Thomas Weißschuh May 2, 2023, 4:28 a.m. UTC
Currently power_supply.h includes leds.h to get access to
struct led_trigger.
This propagates the inclusion unnecessarily to all users of
power_supply.h.

Replace this inclusion by a single forward declaration.

---
Changes in v2:
- Add an explicit include to drivers/hid/hid-lg4ff.c
- Link to v1: https://lore.kernel.org/r/20230212-include-power_supply-leds-v1-1-7adbf7424002@weissschuh.net

---
Thomas Weißschuh (2):
      HID: lg4ff: explicitly include linux/leds.h
      power: supply: remove unneeded include of linux/leds.h

 drivers/hid/hid-lg4ff.c      | 1 +
 include/linux/power_supply.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
---
base-commit: 865fdb08197e657c59e74a35fa32362b12397f58
change-id: 20230212-include-power_supply-leds-fe1d71c7b7b2

Best regards,