[PATCH 092/115] staging: ced1401: fix ced_unset_transfer()

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

 



Rename camel case arguments and locals in function ced_unset_transfer()

Signed-off-by: Luca Ellero <luca.ellero@xxxxxxxxxxxxxxxx>
---
 drivers/staging/ced1401/ced_ioc.c |   10 +++++-----
 drivers/staging/ced1401/usb1401.h |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_ioc.c
index a9c2bac..74a765d 100644
--- a/drivers/staging/ced1401/ced_ioc.c
+++ b/drivers/staging/ced1401/ced_ioc.c
@@ -801,16 +801,16 @@ int ced_set_transfer(struct ced_data *ced,
 }
 
 /****************************************************************************
-** UnSetTransfer
+** ced_unset_transfer
 ** Erases a transfer area record
 ****************************************************************************/
-int ced_unset_transfer(struct ced_data *ced, int nArea)
+int ced_unset_transfer(struct ced_data *ced, int area)
 {
-	int iReturn;
+	int ret;
 	mutex_lock(&ced->io_mutex);
-	iReturn = ced_clear_area(ced, nArea);
+	ret = ced_clear_area(ced, area);
 	mutex_unlock(&ced->io_mutex);
-	return iReturn;
+	return ret;
 }
 
 /****************************************************************************
diff --git a/drivers/staging/ced1401/usb1401.h b/drivers/staging/ced1401/usb1401.h
index db7cd70..bb58b79 100644
--- a/drivers/staging/ced1401/usb1401.h
+++ b/drivers/staging/ced1401/usb1401.h
@@ -231,7 +231,7 @@ extern int ced_get_char(struct ced_data *ced);
 extern int ced_get_string(struct ced_data *ced, char __user *user, int n);
 extern int ced_set_transfer(struct ced_data *ced,
 			    struct transfer_area_desc __user *utd);
-extern int ced_unset_transfer(struct ced_data *ced, int nArea);
+extern int ced_unset_transfer(struct ced_data *ced, int area);
 extern int ced_set_event(struct ced_data *ced, struct transfer_event __user *pTE);
 extern int ced_stat_1401(struct ced_data *ced);
 extern int ced_line_count(struct ced_data *ced);
-- 
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