input/touch: Remove the couple from uinput
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
63c911fb56
commit
f42b56b1c4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user