mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 10:56:53 +07:00
b98abe52fa
Add common DT binding documentation for touchscreen devices and implement input_parse_touchscreen_of_params, which parses the common properties and configures the input device accordingly. The method currently does not interpret the axis inversion properties, since there is no matching flag in the generic linux input device. Reviewed-by: Pavel Machek <pavel@ucw.cz> Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
23 lines
497 B
C
23 lines
497 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);
|
|
#else
|
|
static inline void touchscreen_parse_of_params(struct input_dev *dev)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif
|