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: Input: w90p910_ts - fix call to setup_timer() Input: synaptics - fix wrong dimensions check Input: i8042 - mark stubs in i8042.h "static inline"
This commit is contained in:
Коммит
cc10b6ffd3
|
@ -206,6 +206,7 @@ static int synaptics_resolution(struct psmouse *psmouse)
|
||||||
unsigned char max[3];
|
unsigned char max[3];
|
||||||
|
|
||||||
if (SYN_ID_MAJOR(priv->identity) < 4)
|
if (SYN_ID_MAJOR(priv->identity) < 4)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (synaptics_send_cmd(psmouse, SYN_QUE_RESOLUTION, res) == 0) {
|
if (synaptics_send_cmd(psmouse, SYN_QUE_RESOLUTION, res) == 0) {
|
||||||
if (res[0] != 0 && (res[1] & 0x80) && res[2] != 0) {
|
if (res[0] != 0 && (res[1] & 0x80) && res[2] != 0) {
|
||||||
|
|
|
@ -233,7 +233,7 @@ static int __devinit w90x900ts_probe(struct platform_device *pdev)
|
||||||
w90p910_ts->state = TS_IDLE;
|
w90p910_ts->state = TS_IDLE;
|
||||||
spin_lock_init(&w90p910_ts->lock);
|
spin_lock_init(&w90p910_ts->lock);
|
||||||
setup_timer(&w90p910_ts->timer, w90p910_check_pen_up,
|
setup_timer(&w90p910_ts->timer, w90p910_check_pen_up,
|
||||||
(unsigned long)&w90p910_ts);
|
(unsigned long)w90p910_ts);
|
||||||
|
|
||||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||||
if (!res) {
|
if (!res) {
|
||||||
|
|
|
@ -46,31 +46,31 @@ int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str,
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
void i8042_lock_chip(void)
|
static inline void i8042_lock_chip(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void i8042_unlock_chip(void)
|
static inline void i8042_unlock_chip(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int i8042_command(unsigned char *param, int command)
|
static inline int i8042_command(unsigned char *param, int command)
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool i8042_check_port_owner(const struct serio *serio)
|
static inline bool i8042_check_port_owner(const struct serio *serio)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int i8042_install_filter(bool (*filter)(unsigned char data, unsigned char str,
|
static inline int i8042_install_filter(bool (*filter)(unsigned char data, unsigned char str,
|
||||||
struct serio *serio))
|
struct serio *serio))
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str,
|
static inline int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str,
|
||||||
struct serio *serio))
|
struct serio *serio))
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче