Backlight for v6.18

This set is comprised of a couple of small but important fixes and a number of clean-up and
refactoring patches.  The fixes correct an EPROM address for the LP8556 and improve memory
allocation safety in the LED backlight driver.

The remainder of the set is made up of refactoring work to the mp3309c driver and a series of
patches to make a number of drivers more self-contained by including their own dependencies.

Improvements & Fixes
- Correct the EPROM start address for the LP8556 to align with the device's datasheet.
- Use devm_kcalloc() in the LED backlight driver for safer array allocation with overflow
  protection.

Cleanups & Refactoring
- Drop an unnecessary call to pwm_apply_args() in the mp3309c driver.
- Modernize struct initialization in the mp3309c driver by using a compound literal instead of
  memset.
- Make numerous drivers self-contained by including necessary headers directly rather than
  relying on transitive includes from the core backlight header.
backlight: rt4831: Include <linux/mod_devicetable.h>

Include <linux/mod_devicetable.h> to declare struct of_device_id.
Avoids dependency on backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: "Daniel Thompson (RISCstar)" <danielt@kernel.org>
Link: https://lore.kernel.org/r/20250715122643.137027-15-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
1 file changed