drm/panel/lg-sw43408: mark sw43408_backlight_ops as static
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 28 May 2024 19:39:19 +0000 (22:39 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 29 May 2024 08:35:32 +0000 (11:35 +0300)
Fix sparse warning regarding symbol 'sw43408_backlight_ops' not being
declared.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404200739.hbWZvOhR-lkp@intel.com/
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Fixes: 069a6c0e94f9 ("drm: panel: Add LG sw43408 panel driver")
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240528-panel-sw43408-fix-v4-2-330b42445bcc@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/panel/panel-lg-sw43408.c

index 115f4702d59f769bf49ce888aa91d7db0a83cd0c..2b3a73696dcec7251aefe7ba6e4250ec365664b2 100644 (file)
@@ -182,7 +182,7 @@ static int sw43408_backlight_update_status(struct backlight_device *bl)
        return mipi_dsi_dcs_set_display_brightness_large(dsi, brightness);
 }
 
-const struct backlight_ops sw43408_backlight_ops = {
+static const struct backlight_ops sw43408_backlight_ops = {
        .update_status = sw43408_backlight_update_status,
 };