summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/wm9713.c
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2011-07-05 06:22:00 +0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-07-05 06:31:28 +0400
commit2456689b3b11ddecc091cd5f00b9adea6a9854cf (patch)
tree506c0754343ded58fd2b9d8716f9bc17f0b5e7f5 /drivers/input/touchscreen/wm9713.c
parent5f098ecd4288333d87e2293239fab1c13ec90dae (diff)
downloadlinux-2456689b3b11ddecc091cd5f00b9adea6a9854cf.tar.xz
Input: wm97xx - remove redundant define
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen/wm9713.c')
-rw-r--r--drivers/input/touchscreen/wm9713.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/wm9713.c b/drivers/input/touchscreen/wm9713.c
index 73ec99568f12..13cd9d1fa07a 100644
--- a/drivers/input/touchscreen/wm9713.c
+++ b/drivers/input/touchscreen/wm9713.c
@@ -304,9 +304,9 @@ static int wm9713_poll_sample(struct wm97xx *wm, int adcsel, int *sample)
wm->mach_ops->post_sample(adcsel);
/* check we have correct sample */
- if ((*sample & WM97XX_ADCSRC_MASK) != ffs(adcsel >> 1) << 12) {
+ if ((*sample & WM97XX_ADCSEL_MASK) != ffs(adcsel >> 1) << 12) {
dev_dbg(wm->dev, "adc wrong sample, read %x got %x", adcsel,
- *sample & WM97XX_ADCSRC_MASK);
+ *sample & WM97XX_ADCSEL_MASK);
return RC_PENUP;
}