From f42b56b1c4b0881becd338633f276697ed20a6ca Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 26 Feb 2022 23:05:03 +0800 Subject: [PATCH] input/touch: Remove the couple from uinput Signed-off-by: Xiang Xiao --- drivers/input/touchscreen_upper.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/input/touchscreen_upper.c b/drivers/input/touchscreen_upper.c index 683fbe7fbe..9a510a7000 100644 --- a/drivers/input/touchscreen_upper.c +++ b/drivers/input/touchscreen_upper.c @@ -76,16 +76,13 @@ static int touch_open(FAR struct file *filep); static int touch_close(FAR struct file *filep); static ssize_t touch_read(FAR struct file *filep, FAR char *buffer, size_t buflen); +static ssize_t touch_write(FAR struct file *filep, FAR const char *buffer, + size_t buflen); static int touch_ioctl(FAR struct file *filep, int cmd, unsigned long arg); static int touch_poll(FAR struct file *filep, FAR struct pollfd *fds, bool setup); -#ifdef CONFIG_INPUT_UINPUT -static ssize_t touch_write(FAR struct file *filep, FAR const char *buffer, - size_t buflen); -#endif - /**************************************************************************** * Private Data ****************************************************************************/ @@ -95,11 +92,7 @@ static const struct file_operations g_touch_fops = touch_open, /* open */ touch_close, /* close */ touch_read, /* read */ -#ifdef CONFIG_INPUT_UINPUT touch_write, /* write */ -#else - NULL, /* write */ -#endif NULL, /* seek */ touch_ioctl, /* ioctl */ touch_poll /* poll */ @@ -210,7 +203,6 @@ static int touch_close(FAR struct file *filep) * Name: touch_write ****************************************************************************/ -#ifdef CONFIG_INPUT_UINPUT static ssize_t touch_write(FAR struct file *filep, FAR const char *buffer, size_t buflen) { @@ -225,7 +217,6 @@ static ssize_t touch_write(FAR struct file *filep, FAR const char *buffer, return lower->write(lower, buffer, buflen); } -#endif /**************************************************************************** * Name: touch_read