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

From: Thomas Weißschuh
Date: Tue May 02 2023 - 00:29:01 EST


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@xxxxxxxxxxxxxx

---
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,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>