mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
![Dirk Behme](/assets/img/avatar_default.png)
Use the new GPIO descriptor interface to handle the zForce GPIOs. This simplifies the code and allows transparently handle GPIO polarity, as specified in device tree data. Also switch to using gpio_{set|get}_value_cansleep() since none of the callers is in atomic context and cansleep variant allows more GPIO controllers to be used with the touchscreen. Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
23 lines
727 B
C
23 lines
727 B
C
/* drivers/input/touchscreen/zforce.c
|
|
*
|
|
* Copyright (C) 2012-2013 MundoReader S.L.
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef _LINUX_INPUT_ZFORCE_TS_H
|
|
#define _LINUX_INPUT_ZFORCE_TS_H
|
|
|
|
struct zforce_ts_platdata {
|
|
unsigned int x_max;
|
|
unsigned int y_max;
|
|
};
|
|
|
|
#endif /* _LINUX_INPUT_ZFORCE_TS_H */
|