diff options
author | Ziyan <jaraidaniel@gmail.com> | 2015-07-28 21:12:57 +0200 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2015-07-28 21:14:52 +0200 |
commit | 0c82d8420408d58d4e3bbed0806cfe24872e422c (patch) | |
tree | a34e0a2af51f37811984e831c92b82e30449ec9c /drivers | |
parent | 603446cc7a9d537cc12806e6cedf2d2cd1b2ffe1 (diff) | |
download | kernel_samsung_tuna-0c82d8420408d58d4e3bbed0806cfe24872e422c.zip kernel_samsung_tuna-0c82d8420408d58d4e3bbed0806cfe24872e422c.tar.gz kernel_samsung_tuna-0c82d8420408d58d4e3bbed0806cfe24872e422c.tar.bz2 |
tuna: mfd: twl6030-gpadc: enable CH2 scaler
Change-Id: I6d7b8d21f901cf0a139e978519b041c00f35e4a3
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/twl6030-gpadc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mfd/twl6030-gpadc.c b/drivers/mfd/twl6030-gpadc.c index e754d87..3b96c01 100644 --- a/drivers/mfd/twl6030-gpadc.c +++ b/drivers/mfd/twl6030-gpadc.c @@ -1392,6 +1392,12 @@ static int __devinit twl6030_gpadc_probe(struct platform_device *pdev) if (ret) dev_err(&pdev->dev, "could not create sysfs files\n"); +#ifdef CONFIG_MACH_TUNA + /* Enables reading of values from channel 2 */ + twl6030_gpadc_write(gpadc, TWL6030_GPADC_CTRL, + TWL6030_GPADC_CTRL_SCALER_EN); +#endif + return 0; err_calib: |