[PATCH 09/27] staging: comedi: addi_eeprom: cleanup v_EepromClock76()

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

 



Add namespace to the function by renaming the CamelCase function to
addi_eeprom_clk_93c76().

Rename the CamelCase parameter, dw_RegisterValue, to simply 'val'.

Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
Cc: Ian Abbott <abbotti@xxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/staging/comedi/drivers/addi-data/addi_eeprom.c | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/comedi/drivers/addi-data/addi_eeprom.c b/drivers/staging/comedi/drivers/addi-data/addi_eeprom.c
index 6a2c389..0f7eaae 100644
--- a/drivers/staging/comedi/drivers/addi-data/addi_eeprom.c
+++ b/drivers/staging/comedi/drivers/addi-data/addi_eeprom.c
@@ -112,13 +112,12 @@ struct str_AnalogInputHeader {
 	unsigned char b_Resolution;
 };
 
-static void v_EepromClock76(unsigned long iobase,
-			    unsigned int dw_RegisterValue)
+static void addi_eeprom_clk_93c76(unsigned long iobase, unsigned int val)
 {
-	outl(dw_RegisterValue & ~EE93C76_CLK_BIT, iobase);
+	outl(val & ~EE93C76_CLK_BIT, iobase);
 	udelay(100);
 
-	outl(dw_RegisterValue | EE93C76_CLK_BIT, iobase);
+	outl(val | EE93C76_CLK_BIT, iobase);
 	udelay(100);
 }
 
@@ -144,8 +143,7 @@ static void v_EepromSendCommand76(unsigned long iobase,
 		outl(dw_RegisterValue, iobase);
 		udelay(100);
 
-		/* Trigger the EEPROM clock */
-		v_EepromClock76(iobase, dw_RegisterValue);
+		addi_eeprom_clk_93c76(iobase, dw_RegisterValue);
 	}
 }
 
@@ -169,8 +167,7 @@ static void v_EepromCs76Read(unsigned long iobase,
 
 	/* Get the 16-bit value */
 	for (c_BitPos = 0; c_BitPos < 16; c_BitPos++) {
-		/* Trigger the EEPROM clock */
-		v_EepromClock76(iobase, dw_RegisterValue);
+		addi_eeprom_clk_93c76(iobase, dw_RegisterValue);
 
 		/* Get the result bit */
 		dw_RegisterValueRead = inl(iobase);
-- 
1.7.11

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/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