]> git.sur5r.net Git - groeck-nct6775/commitdiff
Move nct6775_sio_names closer to enum to simplify adding new chips
authorGuenter Roeck <linux@roeck-us.net>
Tue, 17 Nov 2015 16:19:40 +0000 (08:19 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 17 Nov 2015 16:20:27 +0000 (08:20 -0800)
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
nct6775.c

index f16766cbd1a02d9775c28dd2ba21f33b38ffe30e..24f39f4c1ef107ed05e709a2694d0a51a2646080 100644 (file)
--- a/nct6775.c
+++ b/nct6775.c
@@ -78,6 +78,16 @@ static const char * const nct6775_device_names[] = {
        "nct6793",
 };
 
+static const char * const nct6775_sio_names[] __initconst = {
+       "NCT6106D",
+       "NCT6775F",
+       "NCT6776D/F",
+       "NCT6779D",
+       "NCT6791D",
+       "NCT6792D",
+       "NCT6793D",
+};
+
 static unsigned short force_id;
 module_param(force_id, ushort, 0);
 MODULE_PARM_DESC(force_id, "Override the detected device ID");
@@ -4170,16 +4180,6 @@ static struct platform_driver nct6775_driver = {
 #endif
 };
 
-static const char * const nct6775_sio_names[] __initconst = {
-       "NCT6106D",
-       "NCT6775F",
-       "NCT6776D/F",
-       "NCT6779D",
-       "NCT6791D",
-       "NCT6792D",
-       "NCT6793D",
-};
-
 /* nct6775_find() looks for a '627 in the Super-I/O config space */
 static int __init nct6775_find(int sioaddr, struct nct6775_sio_data *sio_data)
 {