lkml.org 
[lkml]   [2011]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 12/27] Initconst section fixes for hwmon
Date
From: Andi Kleen <ak@linux.intel.com>

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
drivers/hwmon/w83627ehf.c | 16 ++++++++--------
drivers/hwmon/w83627hf.c | 2 +-
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c
index f2b377c..85827a3 100644
--- a/drivers/hwmon/w83627ehf.c
+++ b/drivers/hwmon/w83627ehf.c
@@ -2309,14 +2309,14 @@ static struct platform_driver w83627ehf_driver = {
static int __init w83627ehf_find(int sioaddr, unsigned short *addr,
struct w83627ehf_sio_data *sio_data)
{
- static const char __initdata sio_name_W83627EHF[] = "W83627EHF";
- static const char __initdata sio_name_W83627EHG[] = "W83627EHG";
- static const char __initdata sio_name_W83627DHG[] = "W83627DHG";
- static const char __initdata sio_name_W83627DHG_P[] = "W83627DHG-P";
- static const char __initdata sio_name_W83667HG[] = "W83667HG";
- static const char __initdata sio_name_W83667HG_B[] = "W83667HG-B";
- static const char __initdata sio_name_NCT6775[] = "NCT6775F";
- static const char __initdata sio_name_NCT6776[] = "NCT6776F";
+ static const char __initconst sio_name_W83627EHF[] = "W83627EHF";
+ static const char __initconst sio_name_W83627EHG[] = "W83627EHG";
+ static const char __initconst sio_name_W83627DHG[] = "W83627DHG";
+ static const char __initconst sio_name_W83627DHG_P[] = "W83627DHG-P";
+ static const char __initconst sio_name_W83667HG[] = "W83667HG";
+ static const char __initconst sio_name_W83667HG_B[] = "W83667HG-B";
+ static const char __initconst sio_name_NCT6775[] = "NCT6775F";
+ static const char __initconst sio_name_NCT6776[] = "NCT6776F";

u16 val;
const char *sio_name;
diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c
index bde50e3..d152014 100644
--- a/drivers/hwmon/w83627hf.c
+++ b/drivers/hwmon/w83627hf.c
@@ -1129,7 +1129,7 @@ static int __init w83627hf_find(int sioaddr, unsigned short *addr,
int err = -ENODEV;
u16 val;

- static const __initdata char *names[] = {
+ static __initconst char *const names[] = {
"W83627HF",
"W83627THF",
"W83697HF",
--
1.7.4.4


\
 
 \ /
  Last update: 2011-09-15 22:19    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site