backlight: ktd2801: Make timing struct static
authorDuje Mihanović <duje.mihanovic@skole.hr>
Sat, 10 Feb 2024 16:16:17 +0000 (17:16 +0100)
committerLee Jones <lee@kernel.org>
Thu, 7 Mar 2024 08:45:20 +0000 (08:45 +0000)
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>
drivers/video/backlight/ktd2801-backlight.c

index c020acff40f1381cbbb2bc0169dc687c1bbd830d..d295c27660251fd1896c1f3d1d49b1daab9ff288 100644 (file)
@@ -13,7 +13,7 @@
 #define KTD2801_MAX_BRIGHTNESS         255
 
 /* These values have been extracted from Samsung's driver. */
-const struct expresswire_timing ktd2801_timing = {
+static const struct expresswire_timing ktd2801_timing = {
        .poweroff_us = 2600,
        .detect_delay_us = 150,
        .detect_us = 270,