From 60a3a390998f775e06cbebaf9a09a51fc02396ea Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Fri, 5 Apr 2013 23:23:42 -0700 Subject: [PATCH] Enable both VIN3 and AUXTIN Both are reported at the same time on SuperMicro C7H61. Signed-off-by: Guenter Roeck --- nct6775.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/nct6775.c b/nct6775.c index bc85a2f..6e85631 100644 --- a/nct6775.c +++ b/nct6775.c @@ -3223,43 +3223,6 @@ static int nct6775_probe(struct platform_device *pdev) } #endif /* USE_ALTERNATE */ - switch (data->kind) { - case nct6775: - break; - case nct6776: - /* - * On NCT6776, AUXTIN and VIN3 pins are shared. - * Only way to detect it is to check if AUXTIN is used - * as a temperature source, and if that source is - * enabled. - * - * If that is the case, disable in6, which reports VIN3. - * Otherwise disable temp3. - */ - if (data->have_temp & (1 << 2)) { - u8 reg = nct6775_read_value(data, - data->reg_temp_config[2]); - if (reg & 0x01) - data->have_temp &= ~(1 << 2); - else - data->have_in &= ~(1 << 6); - } - break; - case nct6779: - /* - * Shared pins: - * VIN4 / AUXTIN0 - * VIN5 / AUXTIN1 - * VIN6 / AUXTIN2 - * VIN7 / AUXTIN3 - * - * There does not seem to be a clean way to detect if VINx or - * AUXTINx is active, so for keep both sensor types enabled - * for now. - */ - break; - } - /* Initialize the chip */ nct6775_init_device(data); -- 2.39.2