[PATCH 077/115] staging: ced1401: fix ced_put_chars()

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

 



Rename camel case arguments and locals in function ced_put_chars()

Signed-off-by: Luca Ellero <luca.ellero@xxxxxxxxxxxxxxxx>
---
 drivers/staging/ced1401/ced_ioc.c |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_ioc.c
index 0e4e376..6732248 100644
--- a/drivers/staging/ced1401/ced_ioc.c
+++ b/drivers/staging/ced1401/ced_ioc.c
@@ -80,26 +80,26 @@ static void ced_flush_in_buff(struct ced_data *ced)
 ** Utility routine to copy chars into the output buffer and fire them off.
 ** called from user mode, holds char_out_lock.
 ****************************************************************************/
-static int ced_put_chars(struct ced_data *ced, const char *pCh,
-		    unsigned int uCount)
+static int ced_put_chars(struct ced_data *ced, const char *ch,
+		    unsigned int count)
 {
-	int iReturn;
+	int ret;
 	spin_lock_irq(&ced->char_out_lock);	/*  get the output spin lock */
-	if ((OUTBUF_SZ - ced->num_output) >= uCount) {
+	if ((OUTBUF_SZ - ced->num_output) >= count) {
 		unsigned int u;
-		for (u = 0; u < uCount; u++) {
-			ced->output_buffer[ced->out_buff_put++] = pCh[u];
+		for (u = 0; u < count; u++) {
+			ced->output_buffer[ced->out_buff_put++] = ch[u];
 			if (ced->out_buff_put >= OUTBUF_SZ)
 				ced->out_buff_put = 0;
 		}
-		ced->num_output += uCount;
+		ced->num_output += count;
 		spin_unlock_irq(&ced->char_out_lock);
-		iReturn = ced_send_chars(ced);	/*  ...give a chance to transmit data */
+		ret = ced_send_chars(ced);	/*  ...give a chance to transmit data */
 	} else {
-		iReturn = U14ERR_NOOUT;	/*  no room at the out (ha-ha) */
+		ret = U14ERR_NOOUT;	/*  no room at the out (ha-ha) */
 		spin_unlock_irq(&ced->char_out_lock);
 	}
-	return iReturn;
+	return ret;
 }
 
 /*****************************************************************************
-- 
1.7.10.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