summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/macio-adb.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2018-03-29 02:36:04 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-03-30 15:10:32 +0200
commit3a52f6f980c45b0dfa667f30d3ff034d033d260f (patch)
treed4698bf927843c2e72ca0769630e888d0e7e46f2 /drivers/macintosh/macio-adb.c
parentpowerpc/powernv: Handle unknown OPAL errors in opal_nvram_write() (diff)
downloadlinux-3a52f6f980c45b0dfa667f30d3ff034d033d260f.tar.xz
linux-3a52f6f980c45b0dfa667f30d3ff034d033d260f.zip
macintosh/adb: Use C99 initializers for struct adb_driver instances
No change to object files. Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/macintosh/macio-adb.c')
-rw-r--r--drivers/macintosh/macio-adb.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/macintosh/macio-adb.c b/drivers/macintosh/macio-adb.c
index 9a6223add30e..eb3adfb7f88d 100644
--- a/drivers/macintosh/macio-adb.c
+++ b/drivers/macintosh/macio-adb.c
@@ -70,14 +70,13 @@ static void macio_adb_poll(void);
static int macio_adb_reset_bus(void);
struct adb_driver macio_adb_driver = {
- "MACIO",
- macio_probe,
- macio_init,
- macio_send_request,
- /*macio_write,*/
- macio_adb_autopoll,
- macio_adb_poll,
- macio_adb_reset_bus
+ .name = "MACIO",
+ .probe = macio_probe,
+ .init = macio_init,
+ .send_request = macio_send_request,
+ .autopoll = macio_adb_autopoll,
+ .poll = macio_adb_poll,
+ .reset_bus = macio_adb_reset_bus,
};
int macio_probe(void)