summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-lp8860.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-08 04:43:26 +0200
committerJacek Anaszewski <j.anaszewski@samsung.com>2015-08-28 14:06:04 +0200
commitde88e71a91ed7c8de321b44882e0805f0b24d734 (patch)
tree552cfa8d8d533258660d5e65a3593ddae00a5075 /drivers/leds/leds-lp8860.c
parentleds: Drop owner assignment from i2c_driver (diff)
downloadlinux-de88e71a91ed7c8de321b44882e0805f0b24d734.tar.xz
linux-de88e71a91ed7c8de321b44882e0805f0b24d734.zip
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>
Diffstat (limited to 'drivers/leds/leds-lp8860.c')
-rw-r--r--drivers/leds/leds-lp8860.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/leds-lp8860.c b/drivers/leds/leds-lp8860.c
index 8c2b7fbe2392..79f084354e67 100644
--- a/drivers/leds/leds-lp8860.c
+++ b/drivers/leds/leds-lp8860.c
@@ -302,7 +302,7 @@ out:
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 },