From: Guenter Roeck Date: Mon, 12 Mar 2012 06:27:25 +0000 (-0700) Subject: fix some array sizes X-Git-Tag: nct6775-v0.9~60 X-Git-Url: https://git.sur5r.net/?p=groeck-nct6775;a=commitdiff_plain;h=53bf26bc10e4bf6137264cd3b0c8a88fbb7b434d fix some array sizes Signed-off-by: Guenter Roeck --- diff --git a/nct6775.c b/nct6775.c index 7350e24..a0f2e3c 100644 --- a/nct6775.c +++ b/nct6775.c @@ -35,7 +35,7 @@ * Chip #vin #fan #pwm #temp chip IDs man ID * nct6775f 9 4 3 9 0xb470 0xc1 0x5ca3 * nct6776f 9 5 3 9 0xc330 0xc1 0x5ca3 - * nct6779d 15 5 5 8 0xc560 0xc1 0x5ca3 + * nct6779d 15 5 5 7 0xc560 0xc1 0x5ca3 */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt @@ -493,9 +493,9 @@ struct nct6775_data { u8 has_fan_min; /* some fans don't have min register */ bool has_fan_div; u8 temp_type[3]; - s16 temp[9]; - s16 temp_max[9]; - s16 temp_max_hyst[9]; + s16 temp[11]; + s16 temp_max[6]; + s16 temp_max_hyst[6]; u32 alarms; u8 caseopen;