diff options
author | Benjamin Romer | 2014-10-31 14:57:33 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-11-04 01:02:46 +0100 |
commit | 929aa8ae2f14ecf3cdae4c3124ebe119f83d0224 (patch) | |
tree | a7147f39429c447c73647f0ca5026d57cd4a8dcd /drivers/staging/unisys/visorchipset/visorchipset.h | |
parent | staging: unisys: refactor VISORCHIPSET_BUSDEV_NOTIFIERS (diff) | |
download | kernel-qcow2-linux-929aa8ae2f14ecf3cdae4c3124ebe119f83d0224.tar.gz kernel-qcow2-linux-929aa8ae2f14ecf3cdae4c3124ebe119f83d0224.tar.xz kernel-qcow2-linux-929aa8ae2f14ecf3cdae4c3124ebe119f83d0224.zip |
staging: unisys: refactor VISORCHIPSET_BUSDEV_RESPONDERS
Get rid of the typedef and just use struct visorchipset_busdev_responders
instead. Fix CamelCase parameter names in the function pointer definitions for
the structure:
busNo => bus_no
devNo => dev_no
Update references to changed names.
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visorchipset/visorchipset.h')
-rw-r--r-- | drivers/staging/unisys/visorchipset/visorchipset.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/staging/unisys/visorchipset/visorchipset.h b/drivers/staging/unisys/visorchipset/visorchipset.h index da14ef73f850..f4c6ff1d9c39 100644 --- a/drivers/staging/unisys/visorchipset/visorchipset.h +++ b/drivers/staging/unisys/visorchipset/visorchipset.h @@ -234,14 +234,14 @@ struct visorchipset_busdev_notifiers { * 0 = it worked * -1 = it failed */ -typedef struct { - void (*bus_create)(ulong busNo, int response); - void (*bus_destroy)(ulong busNo, int response); - void (*device_create)(ulong busNo, ulong devNo, int response); - void (*device_destroy)(ulong busNo, ulong devNo, int response); - void (*device_pause)(ulong busNo, ulong devNo, int response); - void (*device_resume)(ulong busNo, ulong devNo, int response); -} VISORCHIPSET_BUSDEV_RESPONDERS; +struct visorchipset_busdev_responders { + void (*bus_create)(ulong bus_no, int response); + void (*bus_destroy)(ulong bus_no, int response); + void (*device_create)(ulong bus_no, ulong dev_no, int response); + void (*device_destroy)(ulong bus_no, ulong dev_no, int response); + void (*device_pause)(ulong bus_no, ulong dev_no, int response); + void (*device_resume)(ulong bus_no, ulong dev_no, int response); +}; /** Register functions (in the bus driver) to get called by visorchipset * whenever a bus or device appears for which this service partition is @@ -252,7 +252,7 @@ typedef struct { void visorchipset_register_busdev_client( struct visorchipset_busdev_notifiers *notifiers, - VISORCHIPSET_BUSDEV_RESPONDERS *responders, + struct visorchipset_busdev_responders *responders, struct ultra_vbus_deviceinfo *driverInfo); /** Register functions (in the bus driver) to get called by visorchipset @@ -264,7 +264,7 @@ visorchipset_register_busdev_client( void visorchipset_register_busdev_server( struct visorchipset_busdev_notifiers *notifiers, - VISORCHIPSET_BUSDEV_RESPONDERS *responders, + struct visorchipset_busdev_responders *responders, struct ultra_vbus_deviceinfo *driverInfo); typedef void (*SPARREPORTEVENT_COMPLETE_FUNC) (struct controlvm_message *msg, |