mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] regulator: s5m8767: Constify s5m8767_opmode_reg
@ 2019-02-21 13:17 Axel Lin
  2019-02-21 13:17 ` [PATCH 2/2] regulator: s5m8767: Simplify s5m8767_set_voltage_time_sel implementation Axel Lin
  2019-02-21 13:22 ` [PATCH 1/2] regulator: s5m8767: Constify s5m8767_opmode_reg Krzysztof Kozlowski
  0 siblings, 2 replies; 4+ messages in thread
From: Axel Lin @ 2019-02-21 13:17 UTC (permalink / raw)
  To: Mark Brown
  Cc: Sangbeom Kim, Krzysztof Kozlowski, Bartlomiej Zolnierkiewicz,
	linux-samsung-soc, Liam Girdwood, linux-kernel, Axel Lin

The s5m8767_opmode_reg should never change, make it const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/regulator/s5m8767.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c
index b581f01f3395..5b0e1fe6723f 100644
--- 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 */
-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-21 13:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-21 13:17 [PATCH 1/2] regulator: s5m8767: Constify s5m8767_opmode_reg Axel Lin
2019-02-21 13:17 ` [PATCH 2/2] regulator: s5m8767: Simplify s5m8767_set_voltage_time_sel implementation Axel Lin
2019-02-21 13:38   ` Krzysztof Kozlowski
2019-02-21 13:22 ` [PATCH 1/2] regulator: s5m8767: Constify s5m8767_opmode_reg Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®