backlight: lp855x: convert a type of device name
authorKim, Milo <Milo.Kim@ti.com>
Mon, 29 Apr 2013 23:18:02 +0000 (16:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Apr 2013 01:28:18 +0000 (18:28 -0700)
Configurable data, backlight device name is set to constant character type.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/lp855x_bl.c
include/linux/platform_data/lp855x.h

index c98bdbfdc697202a7bd584619d42f93dfb141361..df937ce5c2ecb39f8a89ab42e5a6e79c0bf8fcec 100644 (file)
@@ -273,7 +273,7 @@ static int lp855x_backlight_register(struct lp855x *lp)
        struct backlight_device *bl;
        struct backlight_properties props;
        struct lp855x_platform_data *pdata = lp->pdata;
-       char *name = pdata->name ? : DEFAULT_BL_NAME;
+       const char *name = pdata->name ? : DEFAULT_BL_NAME;
 
        props.type = BACKLIGHT_PLATFORM;
        props.max_brightness = MAX_BRIGHTNESS;
index 20ee8b221dbd6f73d29d9d77b20ddeb09e84a92c..d135939d392a9a8b1ceddc436b1d51bfcb35824c 100644 (file)
@@ -128,7 +128,7 @@ struct lp855x_rom_data {
  * @rom_data : list of new eeprom/eprom registers
  */
 struct lp855x_platform_data {
-       char *name;
+       const char *name;
        enum lp855x_brightness_ctrl_mode mode;
        u8 device_control;
        int initial_brightness;