[PATCH 52/71] staging: unisys: device_epilog camel case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jeffrey <Jeffrey.Brown@xxxxxxxxxx>

Changed the camel cases in the static void device_epilog
busNo -> busno
devNo -> devNo
msgHdr -> msghdr
needResponse -> needresponse
pDevInfo -> pdevinfo

Signed-off-by: Jeffrey Brown <Jeffrey.Brown@xxxxxxxxxx>
---
 .../unisys/visorchipset/visorchipset_main.c        | 40 +++++++++++-----------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/drivers/staging/unisys/visorchipset/visorchipset_main.c b/drivers/staging/unisys/visorchipset/visorchipset_main.c
index 26cfb59..217d628 100644
--- a/drivers/staging/unisys/visorchipset/visorchipset_main.c
+++ b/drivers/staging/unisys/visorchipset/visorchipset_main.c
@@ -1007,40 +1007,40 @@ bus_epilog(u32 busno,
 }
 
 static void
-device_epilog(u32 busNo, u32 devNo, struct spar_segment_state state, u32 cmd,
-	      struct controlvm_message_header *msgHdr, int response,
-	      BOOL needResponse, BOOL for_visorbus)
+device_epilog(u32 busno, u32 devno, struct spar_segment_state state, u32 cmd,
+	      struct controlvm_message_header *msghdr, int response,
+	      BOOL needresponse, BOOL for_visorbus)
 {
 	struct visorchipset_busdev_notifiers *notifiers = NULL;
 	BOOL notified = FALSE;
 
-	struct visorchipset_device_info *pDevInfo =
-		finddevice(&devinfolist, busNo, devNo);
+	struct visorchipset_device_info *pdevinfo =
+		finddevice(&devinfolist, busno, devno);
 	char *envp[] = {
 		"SPARSP_DIAGPOOL_PAUSED_STATE = 1",
 		NULL
 	};
 
-	if (!pDevInfo) {
-		LOGERR("HUH? bad busNo=%d, devNo=%d", busNo, devNo);
+	if (!pdevinfo) {
+		LOGERR("HUH? bad busNo=%d, devNo=%d", busno, devno);
 		return;
 	}
 	if (for_visorbus)
 		notifiers = &busdev_server_notifiers;
 	else
 		notifiers = &busdev_client_notifiers;
-	if (needResponse) {
-		memcpy(&pDevInfo->pending_msg_hdr, msgHdr,
+	if (needresponse) {
+		memcpy(&pdevinfo->pending_msg_hdr, msghdr,
 		       sizeof(struct controlvm_message_header));
 	} else {
-		pDevInfo->pending_msg_hdr.id = CONTROLVM_INVALID;
+		pdevinfo->pending_msg_hdr.id = CONTROLVM_INVALID;
 	}
 	down(&notifierlock);
 	if (response >= 0) {
 		switch (cmd) {
 		case CONTROLVM_DEVICE_CREATE:
 			if (notifiers->device_create) {
-				(*notifiers->device_create) (busNo, devNo);
+				(*notifiers->device_create) (busno, devno);
 				notified = TRUE;
 			}
 			break;
@@ -1050,8 +1050,8 @@ device_epilog(u32 busNo, u32 devNo, struct spar_segment_state state, u32 cmd,
 			    state.operating ==
 				segment_state_running.operating) {
 				if (notifiers->device_resume) {
-					(*notifiers->device_resume) (busNo,
-								     devNo);
+					(*notifiers->device_resume) (busno,
+								     devno);
 					notified = TRUE;
 				}
 			}
@@ -1063,8 +1063,8 @@ device_epilog(u32 busNo, u32 devNo, struct spar_segment_state state, u32 cmd,
 				 * where server is lost
 				 */
 				if (notifiers->device_pause) {
-					(*notifiers->device_pause) (busNo,
-								    devNo);
+					(*notifiers->device_pause) (busno,
+								    devno);
 					notified = TRUE;
 				}
 			} else if (state.alive == segment_state_paused.alive &&
@@ -1073,10 +1073,10 @@ device_epilog(u32 busNo, u32 devNo, struct spar_segment_state state, u32 cmd,
 				/* this is lite pause where channel is
 				 * still valid just 'pause' of it
 				 */
-				if (busNo == g_diagpoolbusno &&
-				    devNo == g_diagpooldevno) {
+				if (busno == g_diagpoolbusno &&
+				    devno == g_diagpooldevno) {
 					LOGINF("DEVICE_CHANGESTATE(DiagpoolChannel busNo=%d devNo=%d is pausing...)",
-					       busNo, devNo);
+					       busno, devno);
 					/* this will trigger the
 					 * diag_shutdown.sh script in
 					 * the visorchipset hotplug */
@@ -1088,7 +1088,7 @@ device_epilog(u32 busNo, u32 devNo, struct spar_segment_state state, u32 cmd,
 			break;
 		case CONTROLVM_DEVICE_DESTROY:
 			if (notifiers->device_destroy) {
-				(*notifiers->device_destroy) (busNo, devNo);
+				(*notifiers->device_destroy) (busno, devno);
 				notified = TRUE;
 			}
 			break;
@@ -1101,7 +1101,7 @@ device_epilog(u32 busNo, u32 devNo, struct spar_segment_state state, u32 cmd,
 		 */
 		;
 	else
-		device_responder(cmd, busNo, devNo, response);
+		device_responder(cmd, busno, devno, response);
 	up(&notifierlock);
 }
 
-- 
1.8.4

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux