mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
leds: lp8860: Constify reg_default tables
These reg_default tables are not modified after initialized, so make them const. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
This commit is contained in:
parent
44ab901f91
commit
de88e71a91
1 changed files with 2 additions and 2 deletions
|
@ -302,7 +302,7 @@ static int lp8860_init(struct lp8860_led *led)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static struct reg_default lp8860_reg_defs[] = {
|
||||
static const struct reg_default lp8860_reg_defs[] = {
|
||||
{ LP8860_DISP_CL1_BRT_MSB, 0x00},
|
||||
{ LP8860_DISP_CL1_BRT_LSB, 0x00},
|
||||
{ LP8860_DISP_CL1_CURR_MSB, 0x00},
|
||||
|
@ -332,7 +332,7 @@ static const struct regmap_config lp8860_regmap_config = {
|
|||
.cache_type = REGCACHE_NONE,
|
||||
};
|
||||
|
||||
static struct reg_default lp8860_eeprom_defs[] = {
|
||||
static const struct reg_default lp8860_eeprom_defs[] = {
|
||||
{ LP8860_EEPROM_REG_0, 0x00 },
|
||||
{ LP8860_EEPROM_REG_1, 0x00 },
|
||||
{ LP8860_EEPROM_REG_2, 0x00 },
|
||||
|
|
Loading…
Reference in a new issue