input/uinput: Remove the argument from initialization function

since each type of uinput just need Instantiate one instance

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-03-19 23:58:19 +08:00
committed by Petro Karashchenko
parent d19aa5aca4
commit 9b2c89fc0e
4 changed files with 42 additions and 35 deletions
+6 -9
View File
@@ -36,9 +36,7 @@
* Initialized the uinput touchscreen device
*
* Input Parameters:
* name: Touchscreen devices name
* maxpoint: Maximum number of touch points supported.
* buff_nums: Number of the touch points structure.
* None
*
* Returned Value:
* Zero is returned on success. Otherwise, a negated errno value is
@@ -47,8 +45,7 @@
****************************************************************************/
#ifdef CONFIG_UINPUT_TOUCH
int uinput_touch_initialize(FAR const char *name, int maxpoint,
int buffnums);
int uinput_touch_initialize(void);
#endif
/****************************************************************************
@@ -58,7 +55,7 @@ int uinput_touch_initialize(FAR const char *name, int maxpoint,
* Initialized the uinput keyboard device
*
* Input Parameters:
* name: keyboard devices name
* None
*
* Returned Value:
* Zero is returned on success. Otherwise, a negated errno value is
@@ -67,7 +64,7 @@ int uinput_touch_initialize(FAR const char *name, int maxpoint,
****************************************************************************/
#ifdef CONFIG_UINPUT_KEYBOARD
int uinput_keyboard_initialize(FAR const char *name);
int uinput_keyboard_initialize(void);
#endif
/****************************************************************************
@@ -77,7 +74,7 @@ int uinput_keyboard_initialize(FAR const char *name);
* Initialized the uinput button device
*
* Input Parameters:
* name: Button devices name
* None
*
* Returned Value:
* Zero is returned on success. Otherwise, a negated errno value is
@@ -86,7 +83,7 @@ int uinput_keyboard_initialize(FAR const char *name);
****************************************************************************/
#ifdef CONFIG_UINPUT_BUTTONS
int uinput_button_initialize(FAR const char *name);
int uinput_button_initialize(void);
#endif
#endif /* __INCLUDE_NUTTX_INPUT_UINPUT_H */