From: H Hartley Sweeten Date: Tue, 30 Oct 2012 00:05:43 +0000 (-0700) Subject: staging: comedi: addi_eeprom: cleanup v_EepromCs76Read() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~808 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9535c8b235f1071e695838407887460a5ca6ab7;p=pandora-kernel.git staging: comedi: addi_eeprom: cleanup v_EepromCs76Read() Add namespace to the function by renaming the CamelCase function to addi_eeprom_read_93c76(). Change the return type of the function to unsigned short and just return the read value instead of passing it through a pointer. Rename the CamelCase parameters and local variables. Make addi_eeprom_cmd_93c76() return the last value so it does not need to be calculated. Rename the EE_READ and EE76_CMD_LEN defines so they have namespace associated with the other 93c76 defines. Cleanup the loop that reads the eeprom bits so it's a bit more concise. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed