summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/sunmouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sbus/char/sunmouse.c')
-rw-r--r--drivers/sbus/char/sunmouse.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/drivers/sbus/char/sunmouse.c b/drivers/sbus/char/sunmouse.c
index 2409d2e67..091702d15 100644
--- a/drivers/sbus/char/sunmouse.c
+++ b/drivers/sbus/char/sunmouse.c
@@ -542,18 +542,13 @@ sun_mouse_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsig
}
struct file_operations sun_mouse_fops = {
- NULL,
- sun_mouse_read,
- sun_mouse_write,
- NULL,
- sun_mouse_poll,
- sun_mouse_ioctl,
- NULL,
- sun_mouse_open,
- NULL, /* flush */
- sun_mouse_close,
- NULL,
- sun_mouse_fasync,
+ read: sun_mouse_read,
+ write: sun_mouse_write,
+ poll: sun_mouse_poll,
+ ioctl: sun_mouse_ioctl,
+ open: sun_mouse_open,
+ release: sun_mouse_close,
+ fasync: sun_mouse_fasync,
};
static struct miscdevice sun_mouse_mouse = {