From db190b79019577e67b01b5e6769c5576e5c208de Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Sat, 17 Mar 2012 13:28:04 -0700 Subject: [PATCH] Define TESTING flag, remove debug output Only support alternate temperature registers if TESTING is enabled. Signed-off-by: Guenter Roeck --- nct6775.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nct6775.c b/nct6775.c index c00b53b..7e861c4 100644 --- a/nct6775.c +++ b/nct6775.c @@ -54,6 +54,8 @@ #include #include "lm75.h" +#define TESTING + enum kinds { nct6775, nct6776, nct6779 }; /* used to set data->name = nct6775_device_names[data->sio_kind] */ @@ -3328,6 +3330,7 @@ static int __devinit nct6775_probe(struct platform_device *pdev) s++; } +#ifdef TESTING /* * We may have alternate registers for some sensors. * Go through the list and enable if possible. @@ -3338,10 +3341,6 @@ static int __devinit nct6775_probe(struct platform_device *pdev) for (i = 0; i < data->temp_label_num; i++) { if (!data->REG_TEMP_ALTERNATE[i]) continue; - pr_info("Alternate index %d reg 0x%x source %s mask 0x%x have 0x%x s %d\n", - i, data->REG_TEMP_ALTERNATE[i], - data->temp_label[i + 1], mask, - data->have_temp, s); if (mask & (1 << (i + 1))) continue; if (i < data->temp_fixed_num) { @@ -3362,6 +3361,7 @@ static int __devinit nct6775_probe(struct platform_device *pdev) s++; } } +#endif /* TESTING */ switch (data->kind) { case nct6775: -- 2.39.2