diff options
| author | Vojtech Pavlik <vojtech@twilight.ucw.cz> | 2002-07-11 02:04:11 +0200 |
|---|---|---|
| committer | Vojtech Pavlik <vojtech@twilight.ucw.cz> | 2002-07-11 02:04:11 +0200 |
| commit | 15984745ee9822f4415ccc09bb4100ef6e69192a (patch) | |
| tree | 9c63efd8f3c916859506df923477cb69898665ab /include/linux/serio.h | |
| parent | fef3dcc02ceff2e057a6af5c9fa64b4a85739f9e (diff) | |
Add a wrapper function for serio ->interrupt callback.
This cleans up things somewhat and also will allow better
hotplugging detection in the future.
Diffstat (limited to 'include/linux/serio.h')
| -rw-r--r-- | include/linux/serio.h | 9 |
1 files changed, 7 insertions, 2 deletions
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 |
