diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2018-03-29 03:36:04 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-03-30 16:10:32 +0300 |
commit | 3a52f6f980c45b0dfa667f30d3ff034d033d260f (patch) | |
tree | d4698bf927843c2e72ca0769630e888d0e7e46f2 /drivers/macintosh/macio-adb.c | |
parent | 741de617661794246f84a21a02fc5e327bffc9ad (diff) | |
download | linux-3a52f6f980c45b0dfa667f30d3ff034d033d260f.tar.xz |
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.c | 15 |
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) |