From 0c82d8420408d58d4e3bbed0806cfe24872e422c Mon Sep 17 00:00:00 2001 From: Ziyan Date: Tue, 28 Jul 2015 21:12:57 +0200 Subject: tuna: mfd: twl6030-gpadc: enable CH2 scaler Change-Id: I6d7b8d21f901cf0a139e978519b041c00f35e4a3 --- drivers/mfd/twl6030-gpadc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers') 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: -- cgit v1.1