Skip to content

Commit

Permalink
backlight: lp855x: convert a type of device name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kim, Milo authored and Linus Torvalds committed Apr 30, 2013
1 parent eb39ad2 commit 600ffd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/video/backlight/lp855x_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion include/linux/platform_data/lp855x.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 600ffd3

Please sign in to comment.