]> rtime.felk.cvut.cz Git - linux-imx.git/commit
input: ti_am33x_tsc: Step enable bits made configurable
authorPatil, Rachna <rachna@ti.com>
Thu, 24 Jan 2013 03:45:05 +0000 (03:45 +0000)
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 12 Jun 2013 16:03:55 +0000 (18:03 +0200)
commitabeccee40320245a2a6a006dc8466a703cbd1d5e
tree1c6709c2d53fd65f77a226abab9a552e5ce73fb5
parenta9bce1b03c2199e66d36cda8aac675338bc074a7
input: ti_am33x_tsc: Step enable bits made configurable

Current code has hard coded value written to
step enable bits. Now the bits are updated based
on how many steps are needed to be configured got
from platform data.

The user needs to take care not to exceed
the count more than 16. While using ADC and TSC
one should take care to set this parameter correctly.

Sebastian added the common lock and moved the code, that manipulates the
steps, from into the mfd module.

Signed-off-by: Patil, Rachna <rachna@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
drivers/iio/adc/ti_am335x_adc.c
drivers/input/touchscreen/ti_am335x_tsc.c
drivers/mfd/ti_am335x_tscadc.c
include/linux/mfd/ti_am335x_tscadc.h