diff options
author | Pedro Perez de Heredia <pedro.perez@digi.com> | 2010-04-06 01:29:43 +0200 |
---|---|---|
committer | Pedro Perez de Heredia <pedro.perez@digi.com> | 2010-04-06 01:29:43 +0200 |
commit | 58802bd38d445cfa9b96cb2abfd75a1817be414c (patch) | |
tree | 5b65ae6055c0e5e7f8e2c7332037622fae9dee68 /drivers/mxc | |
parent | 16c9bc44ed799347156498f66318a7fce77e1c8f (diff) |
pmic_adc: add Kconfig configuration entries for max X/Y delta
This commit adds 2 configuration entries to configure the maximum
allowed Delta between 3 consecutive samples, to control the driver
jitter.
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
Diffstat (limited to 'drivers/mxc')
-rw-r--r-- | drivers/mxc/pmic/mc13892/pmic_adc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/mxc/pmic/mc13892/pmic_adc.c b/drivers/mxc/pmic/mc13892/pmic_adc.c index cec4d6045974..42406279d6eb 100644 --- a/drivers/mxc/pmic/mc13892/pmic_adc.c +++ b/drivers/mxc/pmic/mc13892/pmic_adc.c @@ -37,8 +37,16 @@ * Maximun allowed variation in the three X/Y co-ordinates acquired from * touch-screen */ -#define DELTA_Y_MAX 50 +#ifdef CONFIG_TOUCH_MXC_DELTA_X +#define DELTA_X_MAX CONFIG_TOUCH_MXC_DELTA_X +#else #define DELTA_X_MAX 50 +#endif +#ifdef CONFIG_TOUCH_MXC_DELTA_Y +#define DELTA_Y_MAX CONFIG_TOUCH_MXC_DELTA_Y +#else +#define DELTA_Y_MAX 50 +#endif /* * ADC 0 |