projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74a569e
)
regulator: s5m8767: Constify s5m8767_opmode_reg
author
Axel Lin
<axel.lin@ingics.com>
Thu, 21 Feb 2019 13:17:21 +0000
(21:17 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 21 Feb 2019 18:53:53 +0000
(18:53 +0000)
The s5m8767_opmode_reg should never change, make it const.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/s5m8767.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/s5m8767.c
b/drivers/regulator/s5m8767.c
index b581f01f3395762eec02ff5d0a70efda4ecdfe48..5b0e1fe6723fcf7c5327bd08058177251dee4509 100644
(file)
--- a/
drivers/regulator/s5m8767.c
+++ b/
drivers/regulator/s5m8767.c
@@
-115,7
+115,7
@@
static const struct sec_voltage_desc *reg_voltage_map[] = {
[S5M8767_BUCK9] = &buck_voltage_val3,
};
-static unsigned int s5m8767_opmode_reg[][4] = {
+static
const
unsigned int s5m8767_opmode_reg[][4] = {
/* {OFF, ON, LOWPOWER, SUSPEND} */
/* LDO1 ... LDO28 */
{0x0, 0x3, 0x2, 0x1}, /* LDO1 */