From 6fd5faf2c130c4f009d3f8a4522ff8a4e216796f Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Tue, 17 Nov 2015 08:19:40 -0800 Subject: [PATCH] Move nct6775_sio_names closer to enum to simplify adding new chips Signed-off-by: Guenter Roeck --- nct6775.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nct6775.c b/nct6775.c index f16766c..24f39f4 100644 --- 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) { -- 2.39.2