From: Guenter Roeck Date: Tue, 17 Nov 2015 16:19:40 +0000 (-0800) Subject: Move nct6775_sio_names closer to enum to simplify adding new chips X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6fd5faf2c130c4f009d3f8a4522ff8a4e216796f;p=groeck-nct6775 Move nct6775_sio_names closer to enum to simplify adding new chips Signed-off-by: Guenter Roeck --- 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) {