projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44ab901
)
leds: lp8860: Constify reg_default tables
author
Axel Lin
<axel.lin@ingics.com>
Wed, 8 Jul 2015 02:43:26 +0000
(10:43 +0800)
committer
Jacek Anaszewski
<j.anaszewski@samsung.com>
Fri, 28 Aug 2015 12:06:04 +0000
(14:06 +0200)
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>
drivers/leds/leds-lp8860.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/leds/leds-lp8860.c
b/drivers/leds/leds-lp8860.c
index 8c2b7fbe23924fcdf45cf02976112e95274c91fd..79f084354e679930f1efa36f30745e867ed72b27 100644
(file)
--- 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 },