mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-09 14:14:00 +08:00
7c494375b7
When applying touchscreen parameters specified in device tree let's make sure we keep whatever setup was done by the driver and not reset the missing values to zero. Reported-by: Pavel Machek <pavel@ucw.cz> Tested-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
24 lines
543 B
C
24 lines
543 B
C
/*
|
|
* Copyright (c) 2014 Sebastian Reichel <sre@kernel.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 as published by
|
|
* the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef _TOUCHSCREEN_H
|
|
#define _TOUCHSCREEN_H
|
|
|
|
#include <linux/input.h>
|
|
|
|
#ifdef CONFIG_OF
|
|
void touchscreen_parse_of_params(struct input_dev *dev, bool multitouch);
|
|
#else
|
|
static inline void touchscreen_parse_of_params(struct input_dev *dev,
|
|
bool multitouch)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif
|