From 15984745ee9822f4415ccc09bb4100ef6e69192a Mon Sep 17 00:00:00 2001 From: Vojtech Pavlik Date: Thu, 11 Jul 2002 02:04:11 +0200 Subject: Add a wrapper function for serio ->interrupt callback. This cleans up things somewhat and also will allow better hotplugging detection in the future. --- include/linux/serio.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include/linux/serio.h') diff --git a/include/linux/serio.h b/include/linux/serio.h index fd5235309265..1e9de401018f 100644 --- a/include/linux/serio.h +++ b/include/linux/serio.h @@ -89,9 +89,14 @@ static __inline__ int serio_write(struct serio *serio, unsigned char data) static __inline__ void serio_dev_write_wakeup(struct serio *serio) { - if (serio->dev && serio->dev->write_wakeup) { + if (serio->dev && serio->dev->write_wakeup) serio->dev->write_wakeup(serio); - } +} + +static __inline__ void serio_interrupt(struct serio *serio, unsigned char data, unsigned int flags) +{ + if (serio->dev && serio->dev->interrupt) + serio->dev->interrupt(serio, data, flags); } #define SERIO_TIMEOUT 1 -- cgit v1.2.3