Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (64 commits) Input: tsc2005 - remove 'disable' sysfs attribute Input: tsc2005 - add open/close Input: tsc2005 - handle read errors from SPI layer Input: tsc2005 - do not rearm timer in hardirq handler Input: tsc2005 - don't use work for 'pen up' handling Input: tsc2005 - do not use 0 in place of NULL Input: tsc2005 - use true/false for boolean variables Input: tsc2005 - hide selftest attribute if we can't reset Input: tsc2005 - rework driver initialization code Input: tsc2005 - set up bus type in input device Input: tsc2005 - set up parent device Input: tsc2005 - clear driver data after unbinding Input: tsc2005 - add module description Input: tsc2005 - remove driver banner message Input: tsc2005 - remove incorrect module alias Input: tsc2005 - convert to using dev_pm_ops Input: tsc2005 - use spi_get/set_drvdata() Input: introduce tsc2005 driver Input: xen-kbdfront - move to drivers/input/misc Input: xen-kbdfront - add grant reference for shared page ...
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* AT42QT602240/ATMXT224 Touchscreen driver
|
||||
* Atmel maXTouch Touchscreen driver
|
||||
*
|
||||
* Copyright (C) 2010 Samsung Electronics Co.Ltd
|
||||
* Author: Joonyoung Shim <jy0922.shim@samsung.com>
|
||||
@@ -10,21 +10,26 @@
|
||||
* option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_QT602240_TS_H
|
||||
#define __LINUX_QT602240_TS_H
|
||||
#ifndef __LINUX_ATMEL_MXT_TS_H
|
||||
#define __LINUX_ATMEL_MXT_TS_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/* Orient */
|
||||
#define QT602240_NORMAL 0x0
|
||||
#define QT602240_DIAGONAL 0x1
|
||||
#define QT602240_HORIZONTAL_FLIP 0x2
|
||||
#define QT602240_ROTATED_90_COUNTER 0x3
|
||||
#define QT602240_VERTICAL_FLIP 0x4
|
||||
#define QT602240_ROTATED_90 0x5
|
||||
#define QT602240_ROTATED_180 0x6
|
||||
#define QT602240_DIAGONAL_COUNTER 0x7
|
||||
#define MXT_NORMAL 0x0
|
||||
#define MXT_DIAGONAL 0x1
|
||||
#define MXT_HORIZONTAL_FLIP 0x2
|
||||
#define MXT_ROTATED_90_COUNTER 0x3
|
||||
#define MXT_VERTICAL_FLIP 0x4
|
||||
#define MXT_ROTATED_90 0x5
|
||||
#define MXT_ROTATED_180 0x6
|
||||
#define MXT_DIAGONAL_COUNTER 0x7
|
||||
|
||||
/* The platform data for the Atmel maXTouch touchscreen driver */
|
||||
struct mxt_platform_data {
|
||||
const u8 *config;
|
||||
size_t config_length;
|
||||
|
||||
/* The platform data for the AT42QT602240/ATMXT224 touchscreen driver */
|
||||
struct qt602240_platform_data {
|
||||
unsigned int x_line;
|
||||
unsigned int y_line;
|
||||
unsigned int x_size;
|
||||
@@ -33,6 +38,7 @@ struct qt602240_platform_data {
|
||||
unsigned int threshold;
|
||||
unsigned int voltage;
|
||||
unsigned char orient;
|
||||
unsigned long irqflags;
|
||||
};
|
||||
|
||||
#endif /* __LINUX_QT602240_TS_H */
|
||||
#endif /* __LINUX_ATMEL_MXT_TS_H */
|
||||
@@ -18,6 +18,7 @@
|
||||
#define MCS_KEY_CODE(v) ((v) & 0xffff)
|
||||
|
||||
struct mcs_platform_data {
|
||||
void (*poweron)(bool);
|
||||
void (*cfg_pin)(void);
|
||||
|
||||
/* touchscreen */
|
||||
|
||||
@@ -22,12 +22,12 @@
|
||||
* @poll: driver-supplied method that polls the device and posts
|
||||
* input events (mandatory).
|
||||
* @poll_interval: specifies how often the poll() method should be called.
|
||||
* Defaults to 500 msec unless overriden when registering the device.
|
||||
* Defaults to 500 msec unless overridden when registering the device.
|
||||
* @poll_interval_max: specifies upper bound for the poll interval.
|
||||
* Defaults to the initial value of @poll_interval.
|
||||
* @poll_interval_min: specifies lower bound for the poll interval.
|
||||
* Defaults to 0.
|
||||
* @input: input device structire associated with the polled device.
|
||||
* @input: input device structure associated with the polled device.
|
||||
* Must be properly initialized by the driver (id, name, phys, bits).
|
||||
*
|
||||
* Polled input device provides a skeleton for supporting simple input
|
||||
|
||||
@@ -1154,8 +1154,6 @@ struct ff_effect {
|
||||
* sparse keymaps. If not supplied default mechanism will be used.
|
||||
* The method is being called while holding event_lock and thus must
|
||||
* not sleep
|
||||
* @getkeycode_new: transition method
|
||||
* @setkeycode_new: transition method
|
||||
* @ff: force feedback structure associated with the device if device
|
||||
* supports force feedback effects
|
||||
* @repeat_key: stores key code of the last key pressed; used to implement
|
||||
@@ -1234,14 +1232,10 @@ struct input_dev {
|
||||
void *keycode;
|
||||
|
||||
int (*setkeycode)(struct input_dev *dev,
|
||||
unsigned int scancode, unsigned int keycode);
|
||||
const struct input_keymap_entry *ke,
|
||||
unsigned int *old_keycode);
|
||||
int (*getkeycode)(struct input_dev *dev,
|
||||
unsigned int scancode, unsigned int *keycode);
|
||||
int (*setkeycode_new)(struct input_dev *dev,
|
||||
const struct input_keymap_entry *ke,
|
||||
unsigned int *old_keycode);
|
||||
int (*getkeycode_new)(struct input_dev *dev,
|
||||
struct input_keymap_entry *ke);
|
||||
struct input_keymap_entry *ke);
|
||||
|
||||
struct ff_device *ff;
|
||||
|
||||
|
||||
@@ -80,7 +80,8 @@ struct wm831x_touch_pdata {
|
||||
int isel; /** Current for pen down (uA) */
|
||||
int rpu; /** Pen down sensitivity resistor divider */
|
||||
int pressure; /** Report pressure (boolean) */
|
||||
int data_irq; /** Touch data ready IRQ */
|
||||
unsigned int data_irq; /** Touch data ready IRQ */
|
||||
unsigned int pd_irq; /** Touch pendown detect IRQ */
|
||||
};
|
||||
|
||||
enum wm831x_watchdog_action {
|
||||
|
||||
41
include/linux/spi/tsc2005.h
Normal file
41
include/linux/spi/tsc2005.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* This file is part of TSC2005 touchscreen driver
|
||||
*
|
||||
* Copyright (C) 2009-2010 Nokia Corporation
|
||||
*
|
||||
* Contact: Aaro Koskinen <aaro.koskinen@nokia.com>
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _LINUX_SPI_TSC2005_H
|
||||
#define _LINUX_SPI_TSC2005_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
struct tsc2005_platform_data {
|
||||
int ts_pressure_max;
|
||||
int ts_pressure_fudge;
|
||||
int ts_x_max;
|
||||
int ts_x_fudge;
|
||||
int ts_y_max;
|
||||
int ts_y_fudge;
|
||||
int ts_x_plate_ohm;
|
||||
unsigned int esd_timeout_ms;
|
||||
void (*set_reset)(bool enable);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user