summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2011-10-11 03:30:36 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-10-11 03:35:00 +0200
commit8c31eb01e1ab91df69c60554b9aec2d522d414e0 (patch)
treef4860cd381f994662ff1bbebc484dca485917e05 /drivers/input
parentInput: serio_raw - perform proper locking when adding clients to list (diff)
downloadlinux-8c31eb01e1ab91df69c60554b9aec2d522d414e0.tar.xz
linux-8c31eb01e1ab91df69c60554b9aec2d522d414e0.zip
Input: serio_raw - use bool for boolean data
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/serio/serio_raw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/serio/serio_raw.c b/drivers/input/serio/serio_raw.c
index 77ce3a6a1599..a5afc7cbcdfc 100644
--- a/drivers/input/serio/serio_raw.c
+++ b/drivers/input/serio/serio_raw.c
@@ -139,9 +139,9 @@ static int serio_raw_release(struct inode *inode, struct file *file)
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);
@@ -394,7 +394,7 @@ static struct serio_driver serio_raw_drv = {
.connect = serio_raw_connect,
.reconnect = serio_raw_reconnect,
.disconnect = serio_raw_disconnect,
- .manual_bind = 1,
+ .manual_bind = true,
};
static int __init serio_raw_init(void)