mirror of
https://github.com/torvalds/linux.git
synced 2024-12-18 17:12:55 +00:00
Input: serio_raw - use bool for boolean data
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
843e784afe
commit
8c31eb01e1
@ -139,9 +139,9 @@ static int serio_raw_release(struct inode *inode, struct file *file)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int serio_raw_fetch_byte(struct serio_raw *serio_raw, char *c)
|
static bool serio_raw_fetch_byte(struct serio_raw *serio_raw, char *c)
|
||||||
{
|
{
|
||||||
int empty;
|
bool empty;
|
||||||
|
|
||||||
serio_pause_rx(serio_raw->serio);
|
serio_pause_rx(serio_raw->serio);
|
||||||
|
|
||||||
@ -394,7 +394,7 @@ static struct serio_driver serio_raw_drv = {
|
|||||||
.connect = serio_raw_connect,
|
.connect = serio_raw_connect,
|
||||||
.reconnect = serio_raw_reconnect,
|
.reconnect = serio_raw_reconnect,
|
||||||
.disconnect = serio_raw_disconnect,
|
.disconnect = serio_raw_disconnect,
|
||||||
.manual_bind = 1,
|
.manual_bind = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init serio_raw_init(void)
|
static int __init serio_raw_init(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user