diff options
author | Gary King <gking@nvidia.com> | 2010-09-05 20:36:38 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:35:34 -0800 |
commit | 6766a82cac62b7b6ccffd91c9c1df74f10432e41 (patch) | |
tree | aeda6b3e3af733796627e9ccd9695129b673cd4f /include/linux/i2c | |
parent | 4b2c1f73b7f34dc7d383121310ad6b2efd006a97 (diff) |
input: touchscreen: panjit_i2c: fix suspend
the panjit touchscreen needs to be reset when returning from
deep sleep mode; add a platform data structure to specify
the reset GPIO.
perform the reset during _probe, since the code already needs
to exist for _resume
delete a bunch of unused preprocessor defines
Change-Id: I71ae65dec45710b0eab4625036edf75064d4cc2b
Signed-off-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/panjit_ts.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/i2c/panjit_ts.h b/include/linux/i2c/panjit_ts.h new file mode 100644 index 000000000000..1dd51e1ecae8 --- /dev/null +++ b/include/linux/i2c/panjit_ts.h @@ -0,0 +1,30 @@ +/* + * include/linux/i2c/panjit_ts.h + * + * Copyright (c) 2010, NVIDIA Corporation. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef _LINUX_I2C_PANJIT_TS_H +#define _LINUX_I2C_PANJIT_TS_H + +struct device; + +struct panjit_i2c_ts_platform_data { + int gpio_reset; +}; + +#endif |