[PATCH] VIOTAPE: Use designated initializers for fops member structures.
Stephen Rothwell
sfr at canb.auug.org.au
Wed May 30 11:29:06 EST 2007
From: Robert P. J. Day <rpjday at mindspring.com>
Replace the old-style member initializers with the newer designated
initializers.
Signed-off-by: Robert P. J. Day <rpjday at mindspring.com>
Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
---
drivers/char/viotape.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
Paul, one for 2.6.23.
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
diff --git a/drivers/char/viotape.c b/drivers/char/viotape.c
index 13faf8d..db57277 100644
--- a/drivers/char/viotape.c
+++ b/drivers/char/viotape.c
@@ -873,12 +873,12 @@ free_op:
}
const struct file_operations viotap_fops = {
- owner: THIS_MODULE,
- read: viotap_read,
- write: viotap_write,
- ioctl: viotap_ioctl,
- open: viotap_open,
- release: viotap_release,
+ .owner = THIS_MODULE,
+ .read = viotap_read,
+ .write = viotap_write,
+ .ioctl = viotap_ioctl,
+ .open = viotap_open,
+ .release = viotap_release,
};
/* Handle interrupt events for tape */
--
1.5.1.4
More information about the Linuxppc-dev
mailing list