Commit f8b5a21f authored by Sameer Wadgaonkar's avatar Sameer Wadgaonkar Committed by Greg Kroah-Hartman

staging: unisys: visorbus: renamed functions like device_*_response to match driver namespace

Renamed functions
* device_create_response() to visorbus_device_create_response()
* device_destroy_response() to visorbus_device_destroy_response()
* device_pause_response() to visorbus_device_pause_response()
* device_resume_response() to visorbus_device_resume_response()
Signed-off-by: default avatarSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Reported-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 63847f17
...@@ -1107,7 +1107,7 @@ chipset_device_create(struct visor_device *dev_info) ...@@ -1107,7 +1107,7 @@ chipset_device_create(struct visor_device *dev_info)
if (err < 0) if (err < 0)
return err; return err;
device_create_response(dev_info, err); visorbus_device_create_response(dev_info, err);
return 0; return 0;
} }
...@@ -1117,7 +1117,7 @@ chipset_device_destroy(struct visor_device *dev_info) ...@@ -1117,7 +1117,7 @@ chipset_device_destroy(struct visor_device *dev_info)
{ {
remove_visor_device(dev_info); remove_visor_device(dev_info);
device_destroy_response(dev_info, 0); visorbus_device_destroy_response(dev_info, 0);
} }
/* /*
...@@ -1137,7 +1137,7 @@ pause_state_change_complete(struct visor_device *dev, int status) ...@@ -1137,7 +1137,7 @@ pause_state_change_complete(struct visor_device *dev, int status)
dev->pausing = false; dev->pausing = false;
device_pause_response(dev, status); visorbus_device_pause_response(dev, status);
} }
/* /*
...@@ -1162,7 +1162,7 @@ resume_state_change_complete(struct visor_device *dev, int status) ...@@ -1162,7 +1162,7 @@ resume_state_change_complete(struct visor_device *dev, int status)
* which will presumably want to send some sort of response to * which will presumably want to send some sort of response to
* the initiator. * the initiator.
*/ */
device_resume_response(dev, status); visorbus_device_resume_response(dev, status);
} }
/* /*
......
...@@ -36,10 +36,10 @@ int chipset_device_resume(struct visor_device *dev_info); ...@@ -36,10 +36,10 @@ int chipset_device_resume(struct visor_device *dev_info);
void visorbus_create_response(struct visor_device *p, int response); void visorbus_create_response(struct visor_device *p, int response);
void visorbus_destroy_response(struct visor_device *p, int response); void visorbus_destroy_response(struct visor_device *p, int response);
void device_create_response(struct visor_device *p, int response); void visorbus_device_create_response(struct visor_device *p, int response);
void device_destroy_response(struct visor_device *p, int response); void visorbus_device_destroy_response(struct visor_device *p, int response);
void device_resume_response(struct visor_device *p, int response); void visorbus_device_resume_response(struct visor_device *p, int response);
void device_pause_response(struct visor_device *p, int response); void visorbus_device_pause_response(struct visor_device *p, int response);
int visorbus_init(void); int visorbus_init(void);
void visorbus_exit(void); void visorbus_exit(void);
......
...@@ -1473,7 +1473,7 @@ visorbus_destroy_response(struct visor_device *bus_info, int response) ...@@ -1473,7 +1473,7 @@ visorbus_destroy_response(struct visor_device *bus_info, int response)
} }
void void
device_create_response(struct visor_device *dev_info, int response) visorbus_device_create_response(struct visor_device *dev_info, int response)
{ {
if (response >= 0) if (response >= 0)
dev_info->state.created = 1; dev_info->state.created = 1;
...@@ -1486,7 +1486,7 @@ device_create_response(struct visor_device *dev_info, int response) ...@@ -1486,7 +1486,7 @@ device_create_response(struct visor_device *dev_info, int response)
} }
void void
device_destroy_response(struct visor_device *dev_info, int response) visorbus_device_destroy_response(struct visor_device *dev_info, int response)
{ {
controlvm_responder(CONTROLVM_DEVICE_DESTROY, dev_info->pending_msg_hdr, controlvm_responder(CONTROLVM_DEVICE_DESTROY, dev_info->pending_msg_hdr,
response); response);
...@@ -1496,8 +1496,7 @@ device_destroy_response(struct visor_device *dev_info, int response) ...@@ -1496,8 +1496,7 @@ device_destroy_response(struct visor_device *dev_info, int response)
} }
void void
device_pause_response(struct visor_device *dev_info, visorbus_device_pause_response(struct visor_device *dev_info, int response)
int response)
{ {
device_changestate_responder(CONTROLVM_DEVICE_CHANGESTATE, device_changestate_responder(CONTROLVM_DEVICE_CHANGESTATE,
dev_info, response, dev_info, response,
...@@ -1508,7 +1507,7 @@ device_pause_response(struct visor_device *dev_info, ...@@ -1508,7 +1507,7 @@ device_pause_response(struct visor_device *dev_info,
} }
void void
device_resume_response(struct visor_device *dev_info, int response) visorbus_device_resume_response(struct visor_device *dev_info, int response)
{ {
device_changestate_responder(CONTROLVM_DEVICE_CHANGESTATE, device_changestate_responder(CONTROLVM_DEVICE_CHANGESTATE,
dev_info, response, dev_info, response,
......
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