Commit 3a52f6f9 authored by Finn Thain's avatar Finn Thain Committed by Michael Ellerman

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: default avatarFinn Thain <fthain@telegraphics.com.au>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 741de617
...@@ -53,13 +53,13 @@ static void adb_iop_poll(void); ...@@ -53,13 +53,13 @@ static void adb_iop_poll(void);
static int adb_iop_reset_bus(void); static int adb_iop_reset_bus(void);
struct adb_driver adb_iop_driver = { struct adb_driver adb_iop_driver = {
"ISM IOP", .name = "ISM IOP",
adb_iop_probe, .probe = adb_iop_probe,
adb_iop_init, .init = adb_iop_init,
adb_iop_send_request, .send_request = adb_iop_send_request,
adb_iop_autopoll, .autopoll = adb_iop_autopoll,
adb_iop_poll, .poll = adb_iop_poll,
adb_iop_reset_bus .reset_bus = adb_iop_reset_bus
}; };
static void adb_iop_end_req(struct adb_request *req, int state) static void adb_iop_end_req(struct adb_request *req, int state)
......
...@@ -70,14 +70,13 @@ static void macio_adb_poll(void); ...@@ -70,14 +70,13 @@ static void macio_adb_poll(void);
static int macio_adb_reset_bus(void); static int macio_adb_reset_bus(void);
struct adb_driver macio_adb_driver = { struct adb_driver macio_adb_driver = {
"MACIO", .name = "MACIO",
macio_probe, .probe = macio_probe,
macio_init, .init = macio_init,
macio_send_request, .send_request = macio_send_request,
/*macio_write,*/ .autopoll = macio_adb_autopoll,
macio_adb_autopoll, .poll = macio_adb_poll,
macio_adb_poll, .reset_bus = macio_adb_reset_bus,
macio_adb_reset_bus
}; };
int macio_probe(void) int macio_probe(void)
......
...@@ -91,13 +91,13 @@ static void macii_poll(void); ...@@ -91,13 +91,13 @@ static void macii_poll(void);
static int macii_reset_bus(void); static int macii_reset_bus(void);
struct adb_driver via_macii_driver = { struct adb_driver via_macii_driver = {
"Mac II", .name = "Mac II",
macii_probe, .probe = macii_probe,
macii_init, .init = macii_init,
macii_send_request, .send_request = macii_send_request,
macii_autopoll, .autopoll = macii_autopoll,
macii_poll, .poll = macii_poll,
macii_reset_bus .reset_bus = macii_reset_bus,
}; };
static enum macii_state { static enum macii_state {
......
...@@ -199,13 +199,13 @@ static const struct file_operations pmu_options_proc_fops; ...@@ -199,13 +199,13 @@ static const struct file_operations pmu_options_proc_fops;
#ifdef CONFIG_ADB #ifdef CONFIG_ADB
const struct adb_driver via_pmu_driver = { const struct adb_driver via_pmu_driver = {
"PMU", .name = "PMU",
pmu_probe, .probe = pmu_probe,
pmu_init, .init = pmu_init,
pmu_send_request, .send_request = pmu_send_request,
pmu_adb_autopoll, .autopoll = pmu_adb_autopoll,
pmu_poll_adb, .poll = pmu_poll_adb,
pmu_adb_reset_bus .reset_bus = pmu_adb_reset_bus,
}; };
#endif /* CONFIG_ADB */ #endif /* CONFIG_ADB */
......
...@@ -119,13 +119,13 @@ static void pmu_enable_backlight(int on); ...@@ -119,13 +119,13 @@ static void pmu_enable_backlight(int on);
static void pmu_set_brightness(int level); static void pmu_set_brightness(int level);
struct adb_driver via_pmu_driver = { struct adb_driver via_pmu_driver = {
"68K PMU", .name = "68K PMU",
pmu_probe, .probe = pmu_probe,
pmu_init, .init = pmu_init,
pmu_send_request, .send_request = pmu_send_request,
pmu_autopoll, .autopoll = pmu_autopoll,
pmu_poll, .poll = pmu_poll,
pmu_reset_bus .reset_bus = pmu_reset_bus,
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment