backlight: ktd3102: remove build warnings 84/164784/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 21 Dec 2017 04:53:17 +0000 (13:53 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 21 Dec 2017 04:53:19 +0000 (13:53 +0900)
Remove build warnings caused from unused variable and non declared
struct.

Change-Id: I28b7cbd9cf166122583ce98f27769851bb85c12b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/video/backlight/ktd3102_bl.c
include/linux/platform_data/gen-panel-bl.h

index 552e364..98e2578 100644 (file)
@@ -328,7 +328,6 @@ static int ktd3102_backlight_probe(struct platform_device *pdev)
                        }
                }
        } else {
-               int i;
                if (unlikely(pdev->dev.platform_data == NULL)) {
                        dev_err(&pdev->dev, "no platform data!\n");
                        return -EINVAL;
index 46b9502..f7bd678 100644 (file)
@@ -44,14 +44,14 @@ struct brt_value {
 };
 
 struct gen_panel_backlight_ops {
-       int (*set_brightness)(struct lcd *, int level);
-       int (*get_brightness)(struct lcd *);
+       int (*set_brightness)(void *, int level);
+       int (*get_brightness)(void *);
 };
 
 struct gen_panel_backlight_info {
        const char *name;
        bool enable;
-       struct lcd *lcd;
+       void *lcd;
        struct mutex ops_lock;
        const struct gen_panel_backlight_ops *ops;
        struct brt_value range[MAX_BRT_VALUE_IDX];
@@ -133,14 +133,14 @@ gen_panel_backlight_onoff(struct backlight_device *bd, int on)
 }
 
 #ifdef CONFIG_GEN_PANEL_BACKLIGHT
-extern int gen_panel_attach_backlight(struct lcd *,
+extern int gen_panel_attach_backlight(void *,
                const struct gen_panel_backlight_ops *);
-extern void gen_panel_detach_backlight(struct lcd *);
+extern void gen_panel_detach_backlight(void *);
 extern bool gen_panel_match_backlight(struct backlight_device *, const char *);
 #else
-static inline int gen_panel_attach_backlight(struct lcd *lcd,
+static inline int gen_panel_attach_backlight(void *lcd,
                const struct gen_panel_backlight_ops *ops) { return 0; }
-static inline void gen_panel_detach_backlight(struct lcd *lcd) {}
+static inline void gen_panel_detach_backlight(void *lcd) {}
 static inline bool gen_panel_match_backlight(struct backlight_device *bd,
                const char *match) { return false; }
 #endif