input: tsc2007: Specify max/min coordinates from platform data

Provides flexibility to specify max/min x and y coordinates from
platform data. Useful in cases where the TS controller reports
coordinates at an offset from the predefined min/max values
(0 and 4096 respectively).

Change-Id: Ia93a8940078aa5960d1d900ac56b0b3354c82e40
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
This commit is contained in:
Anirudh Ghayal
2012-01-25 12:19:19 +05:30
committed by Stephen Boyd
parent 00883c63af
commit b5a1434021
2 changed files with 16 additions and 2 deletions

View File

@@ -13,6 +13,10 @@ struct tsc2007_platform_data {
int fuzzx; /* fuzz factor for X, Y and pressure axes */
int fuzzy;
int fuzzz;
u16 min_x;
u16 min_y;
u16 max_x;
u16 max_y;
unsigned long irq_flags;
bool invert_x;
bool invert_y;