Commit 7522e09b authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: addi_eeprom: cleanup v_EepromClock76()

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d615de25
...@@ -112,13 +112,12 @@ struct str_AnalogInputHeader { ...@@ -112,13 +112,12 @@ struct str_AnalogInputHeader {
unsigned char b_Resolution; unsigned char b_Resolution;
}; };
static void v_EepromClock76(unsigned long iobase, static void addi_eeprom_clk_93c76(unsigned long iobase, unsigned int val)
unsigned int dw_RegisterValue)
{ {
outl(dw_RegisterValue & ~EE93C76_CLK_BIT, iobase); outl(val & ~EE93C76_CLK_BIT, iobase);
udelay(100); udelay(100);
outl(dw_RegisterValue | EE93C76_CLK_BIT, iobase); outl(val | EE93C76_CLK_BIT, iobase);
udelay(100); udelay(100);
} }
...@@ -144,8 +143,7 @@ static void v_EepromSendCommand76(unsigned long iobase, ...@@ -144,8 +143,7 @@ static void v_EepromSendCommand76(unsigned long iobase,
outl(dw_RegisterValue, iobase); outl(dw_RegisterValue, iobase);
udelay(100); udelay(100);
/* Trigger the EEPROM clock */ addi_eeprom_clk_93c76(iobase, dw_RegisterValue);
v_EepromClock76(iobase, dw_RegisterValue);
} }
} }
...@@ -169,8 +167,7 @@ static void v_EepromCs76Read(unsigned long iobase, ...@@ -169,8 +167,7 @@ static void v_EepromCs76Read(unsigned long iobase,
/* Get the 16-bit value */ /* Get the 16-bit value */
for (c_BitPos = 0; c_BitPos < 16; c_BitPos++) { for (c_BitPos = 0; c_BitPos < 16; c_BitPos++) {
/* Trigger the EEPROM clock */ addi_eeprom_clk_93c76(iobase, dw_RegisterValue);
v_EepromClock76(iobase, dw_RegisterValue);
/* Get the result bit */ /* Get the result bit */
dw_RegisterValueRead = inl(iobase); dw_RegisterValueRead = inl(iobase);
......
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