Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

backlight: ktd2801: Make timing struct static

The struct containing the KTD2801 timing can be made static as it's not
referenced outside the KTD2801 driver. Do this to prevent sparse
complaints.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202402100625.M0RkJhMh-lkp@intel.com/
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240210-ktd2801-static-v1-1-90ad2e2e8483@skole.hr
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Duje Mihanović and committed by
Lee Jones
7534904d a5554f1b

+1 -1
+1 -1
drivers/video/backlight/ktd2801-backlight.c
··· 13 13 #define KTD2801_MAX_BRIGHTNESS 255 14 14 15 15 /* These values have been extracted from Samsung's driver. */ 16 - const struct expresswire_timing ktd2801_timing = { 16 + static const struct expresswire_timing ktd2801_timing = { 17 17 .poweroff_us = 2600, 18 18 .detect_delay_us = 150, 19 19 .detect_us = 270,