]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
leds: ktd2692: Make ktd2692_timing variable static
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Mon, 16 Feb 2026 11:04:42 +0000 (12:04 +0100)
committerLee Jones <lee@kernel.org>
Tue, 10 Mar 2026 09:22:58 +0000 (09:22 +0000)
File-scope 'ktd2692_timing' is not used outside of this unit, so make it
static to silence sparse warning:

  leds-ktd2692.c:62:33: warning: symbol 'ktd2692_timing' was not declared. Should it be static?

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260216110441.160155-2-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/flash/leds-ktd2692.c

index 0f16eefcfe4cd336cc3e7df6f7ae6a13694e0b5e..22fbfccd4873549baf390127d2f7e9aeb9c45465 100644 (file)
@@ -59,7 +59,7 @@ struct ktd2692_led_config_data {
        enum led_brightness max_brightness;
 };
 
-const struct expresswire_timing ktd2692_timing = {
+static const struct expresswire_timing ktd2692_timing = {
        .poweroff_us = 700,
        .data_start_us = 10,
        .end_of_data_low_us = 10,