X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?p=linux-2.6-omap-h63xx.git;a=blobdiff_plain;f=drivers%2Finput%2Ftouchscreen%2Fads7846.c;fp=drivers%2Finput%2Ftouchscreen%2Fads7846.c;h=c5ecce1842fea53539e828c2bfd67d9fc5583cc3;hp=056ac77e2cf0ed6fe5624d9f62f35bbab2d57697;hb=b934c987ee1764eb09b8843a3ee00eabc24bd52c;hpb=14fc69723d3442ef46f8f82b3f481e82f06a346d diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index 056ac77e2cf..c5ecce1842f 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c @@ -878,6 +878,15 @@ static int __devinit ads7846_probe(struct spi_device *spi) return -ENODEV; } + /* enable voltage */ + if (pdata->vaux_control != NULL) { + err = pdata->vaux_control(VAUX_ENABLE); + if (err != 0) { + dev_dbg(&spi->dev, "TS vaux enable failed\n"); + return err; + } + } + /* don't exceed max specified sample rate */ if (spi->max_speed_hz > (125000 * SAMPLE_BITS)) { dev_dbg(&spi->dev, "f(sample) %d KHz?\n",