Commit fe90d892 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: refactor VISORCHIPSET_BUSDEV_NOTIFIERS

Get rid of the typedef and just use struct visorchipset_busdev_notifiers
instead. Fix CamelCase names in parameters for the function pointers:

busNo => bus_no
devNo => dev_no
typeGuid => type_uuid
minSize => min_size
maxSize => max_size

Update references.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2924bbc9
...@@ -217,16 +217,16 @@ struct visorchipset_internalport_info { ...@@ -217,16 +217,16 @@ struct visorchipset_internalport_info {
* events happen. (The implementation of these functions is outside of * events happen. (The implementation of these functions is outside of
* visorchipset.) * visorchipset.)
*/ */
typedef struct { struct visorchipset_busdev_notifiers {
void (*bus_create)(ulong busNo); void (*bus_create)(ulong bus_no);
void (*bus_destroy)(ulong busNo); void (*bus_destroy)(ulong bus_no);
void (*device_create)(ulong busNo, ulong devNo); void (*device_create)(ulong bus_no, ulong dev_no);
void (*device_destroy)(ulong busNo, ulong devNo); void (*device_destroy)(ulong bus_no, ulong dev_no);
void (*device_pause)(ulong busNo, ulong devNo); void (*device_pause)(ulong bus_no, ulong dev_no);
void (*device_resume)(ulong busNo, ulong devNo); void (*device_resume)(ulong bus_no, ulong dev_no);
int (*get_channel_info)(uuid_le typeGuid, ulong *minSize, int (*get_channel_info)(uuid_le type_uuid, ulong *min_size,
ulong *maxSize); ulong *max_size);
} VISORCHIPSET_BUSDEV_NOTIFIERS; };
/* These functions live inside visorchipset, and will be called to indicate /* These functions live inside visorchipset, and will be called to indicate
* responses to specific events (by code outside of visorchipset). * responses to specific events (by code outside of visorchipset).
...@@ -250,7 +250,8 @@ typedef struct { ...@@ -250,7 +250,8 @@ typedef struct {
* responses. * responses.
*/ */
void void
visorchipset_register_busdev_client(VISORCHIPSET_BUSDEV_NOTIFIERS *notifiers, visorchipset_register_busdev_client(
struct visorchipset_busdev_notifiers *notifiers,
VISORCHIPSET_BUSDEV_RESPONDERS *responders, VISORCHIPSET_BUSDEV_RESPONDERS *responders,
struct ultra_vbus_deviceinfo *driverInfo); struct ultra_vbus_deviceinfo *driverInfo);
...@@ -261,7 +262,8 @@ visorchipset_register_busdev_client(VISORCHIPSET_BUSDEV_NOTIFIERS *notifiers, ...@@ -261,7 +262,8 @@ visorchipset_register_busdev_client(VISORCHIPSET_BUSDEV_NOTIFIERS *notifiers,
* responses. * responses.
*/ */
void void
visorchipset_register_busdev_server(VISORCHIPSET_BUSDEV_NOTIFIERS *notifiers, visorchipset_register_busdev_server(
struct visorchipset_busdev_notifiers *notifiers,
VISORCHIPSET_BUSDEV_RESPONDERS *responders, VISORCHIPSET_BUSDEV_RESPONDERS *responders,
struct ultra_vbus_deviceinfo *driverInfo); struct ultra_vbus_deviceinfo *driverInfo);
......
...@@ -230,8 +230,8 @@ static void parahotplug_process_list(void); ...@@ -230,8 +230,8 @@ static void parahotplug_process_list(void);
/* Manages the info for a CONTROLVM_DUMP_CAPTURESTATE / /* Manages the info for a CONTROLVM_DUMP_CAPTURESTATE /
* CONTROLVM_REPORTEVENT. * CONTROLVM_REPORTEVENT.
*/ */
static VISORCHIPSET_BUSDEV_NOTIFIERS BusDev_Server_Notifiers; static struct visorchipset_busdev_notifiers BusDev_Server_Notifiers;
static VISORCHIPSET_BUSDEV_NOTIFIERS BusDev_Client_Notifiers; static struct visorchipset_busdev_notifiers BusDev_Client_Notifiers;
static void bus_create_response(ulong busNo, int response); static void bus_create_response(ulong busNo, int response);
static void bus_destroy_response(ulong busNo, int response); static void bus_destroy_response(ulong busNo, int response);
...@@ -589,7 +589,8 @@ clear_chipset_events(void) ...@@ -589,7 +589,8 @@ clear_chipset_events(void)
} }
void void
visorchipset_register_busdev_server(VISORCHIPSET_BUSDEV_NOTIFIERS *notifiers, visorchipset_register_busdev_server(
struct visorchipset_busdev_notifiers *notifiers,
VISORCHIPSET_BUSDEV_RESPONDERS *responders, VISORCHIPSET_BUSDEV_RESPONDERS *responders,
struct ultra_vbus_deviceinfo *driverInfo) struct ultra_vbus_deviceinfo *driverInfo)
{ {
...@@ -613,7 +614,8 @@ visorchipset_register_busdev_server(VISORCHIPSET_BUSDEV_NOTIFIERS *notifiers, ...@@ -613,7 +614,8 @@ visorchipset_register_busdev_server(VISORCHIPSET_BUSDEV_NOTIFIERS *notifiers,
EXPORT_SYMBOL_GPL(visorchipset_register_busdev_server); EXPORT_SYMBOL_GPL(visorchipset_register_busdev_server);
void void
visorchipset_register_busdev_client(VISORCHIPSET_BUSDEV_NOTIFIERS *notifiers, visorchipset_register_busdev_client(
struct visorchipset_busdev_notifiers *notifiers,
VISORCHIPSET_BUSDEV_RESPONDERS *responders, VISORCHIPSET_BUSDEV_RESPONDERS *responders,
struct ultra_vbus_deviceinfo *driverInfo) struct ultra_vbus_deviceinfo *driverInfo)
{ {
...@@ -1003,7 +1005,7 @@ device_epilog(u32 busNo, u32 devNo, struct spar_segment_state state, u32 cmd, ...@@ -1003,7 +1005,7 @@ device_epilog(u32 busNo, u32 devNo, struct spar_segment_state state, u32 cmd,
struct controlvm_message_header *msgHdr, int response, struct controlvm_message_header *msgHdr, int response,
BOOL needResponse, BOOL for_visorbus) BOOL needResponse, BOOL for_visorbus)
{ {
VISORCHIPSET_BUSDEV_NOTIFIERS *notifiers = NULL; struct visorchipset_busdev_notifiers *notifiers = NULL;
BOOL notified = FALSE; BOOL notified = FALSE;
struct visorchipset_device_info *pDevInfo = struct visorchipset_device_info *pDevInfo =
......
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