mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
input: i8042: Use remove() instead of exported functions
We should not have exported functions in a driver. The i8042_disable() function is used to disable the keyboard. Provide a remove() method instead, which is the standard way of disabling a device. We could potentially add a method to flush input but that does not seem necessary. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -72,19 +72,4 @@
|
||||
#define BRK 0x0100 /* make break flag for keyboard */
|
||||
#define ALT 0x0200 /* right alt */
|
||||
|
||||
/* exports */
|
||||
|
||||
/**
|
||||
* Flush all buffer from keyboard controller to host.
|
||||
*/
|
||||
void i8042_flush(void);
|
||||
|
||||
/**
|
||||
* Disables the keyboard so that key strokes no longer generate scancodes to
|
||||
* the host.
|
||||
*
|
||||
* @return 0 if ok, -1 if keyboard input was found while disabling
|
||||
*/
|
||||
int i8042_disable(void);
|
||||
|
||||
#endif /* _I8042_H_ */
|
||||
|
Reference in New Issue
Block a user