Commit 600ffd33 authored by Kim, Milo's avatar Kim, Milo Committed by Linus Torvalds

backlight: lp855x: convert a type of device name

Configurable data, backlight device name is set to constant character type.
Signed-off-by: default avatarMilo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent eb39ad25
...@@ -273,7 +273,7 @@ static int lp855x_backlight_register(struct lp855x *lp) ...@@ -273,7 +273,7 @@ static int lp855x_backlight_register(struct lp855x *lp)
struct backlight_device *bl; struct backlight_device *bl;
struct backlight_properties props; struct backlight_properties props;
struct lp855x_platform_data *pdata = lp->pdata; 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.type = BACKLIGHT_PLATFORM;
props.max_brightness = MAX_BRIGHTNESS; props.max_brightness = MAX_BRIGHTNESS;
......
...@@ -128,7 +128,7 @@ struct lp855x_rom_data { ...@@ -128,7 +128,7 @@ struct lp855x_rom_data {
* @rom_data : list of new eeprom/eprom registers * @rom_data : list of new eeprom/eprom registers
*/ */
struct lp855x_platform_data { struct lp855x_platform_data {
char *name; const char *name;
enum lp855x_brightness_ctrl_mode mode; enum lp855x_brightness_ctrl_mode mode;
u8 device_control; u8 device_control;
int initial_brightness; int initial_brightness;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment