* [PATCH] regulator: max1586: Constify v6_voltages_uv table
@ 2013-03-30 5:57 Axel Lin
2013-03-30 13:54 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2013-03-30 5:57 UTC (permalink / raw)
To: Mark Brown; +Cc: Robert Jarzmik, Philipp Zabel, Liam Girdwood, linux-kernel
Make v6_voltages_uv to be const unsigned int.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/regulator/max1586.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/max1586.c b/drivers/regulator/max1586.c
index 8c5a54f..dac0490 100644
--- a/drivers/regulator/max1586.c
+++ b/drivers/regulator/max1586.c
@@ -56,7 +56,7 @@ struct max1586_data {
* set V6 to either 0V, 1.8V, 2.5V, 3V depending on (x & 0x3)
* As regulator framework doesn't accept voltages to be 0V, we use 1uV.
*/
-static int v6_voltages_uv[] = { 1, 1800000, 2500000, 3000000 };
+static const unsigned int v6_voltages_uv[] = { 1, 1800000, 2500000, 3000000 };
/*
* V3 voltage
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: max1586: Constify v6_voltages_uv table
2013-03-30 5:57 [PATCH] regulator: max1586: Constify v6_voltages_uv table Axel Lin
@ 2013-03-30 13:54 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-03-30 13:54 UTC (permalink / raw)
To: Axel Lin; +Cc: Robert Jarzmik, Philipp Zabel, Liam Girdwood, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 125 bytes --]
On Sat, Mar 30, 2013 at 01:57:29PM +0800, Axel Lin wrote:
> Make v6_voltages_uv to be const unsigned int.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-30 13:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-30 5:57 [PATCH] regulator: max1586: Constify v6_voltages_uv table Axel Lin
2013-03-30 13:54 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox