staging: iio: adc: palmas: Force calibrate ADC value
David Pu [Fri, 22 Nov 2013 03:12:31 +0000 (11:12 +0800)]
apply commit 3b94ac3347a2(http://git-master/r/330985)
for tegranote7c also.

Change-Id: I704424b5e1599f08c0ec0576124e4b7d0a104839
Reviewed-on: http://git-master/r/334278
(cherry picked from commit a7b7c283003de46effce01577a0346abec20272f)

Signed-off-by: David Pu <dpu@nvidia.com>
Change-Id: I2141b35e301f7fcda1e862a5e9ae1ac6c41e538e
Reviewed-on: http://git-master/r/337150
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

drivers/staging/iio/adc/palmas_gpadc.c

index 6c8aa47..24f99aa 100644 (file)
@@ -539,7 +539,7 @@ static int palmas_gpadc_read_raw(struct iio_dev *indio_dev,
                        goto out_mask_interrupt;
                }
 
-#if !defined(CONFIG_MACH_TEGRATAB)
+#if !defined(CONFIG_MACH_TEGRATAB) && !defined(CONFIG_MACH_TEGRANOTE7C)
                if (mask == IIO_CHAN_INFO_CALIBSCALE)
                        *val = palmas_gpadc_get_calibrated_code(adc, adc_chan,
                                                                ret);
@@ -565,7 +565,7 @@ static int palmas_gpadc_read_raw(struct iio_dev *indio_dev,
                                goto out_mask_interrupt;
                        }
 
-#if !defined(CONFIG_MACH_TEGRATAB)
+#if !defined(CONFIG_MACH_TEGRATAB) && !defined(CONFIG_MACH_TEGRANOTE7C)
                        if (mask == IIO_CHAN_INFO_CALIBSCALE)
                                *val2 = palmas_gpadc_get_calibrated_code(adc,
                                                                adc_chan, ret);