summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-10-30 04:05:43 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-30 21:50:13 +0400
commitc9535c8b235f1071e695838407887460a5ca6ab7 (patch)
tree64296ac926462eb5b22d3e892e134844701ad40f /include/linux
parent6311e135dff98d956a175f7bf3ad4431c17f3785 (diff)
downloadlinux-c9535c8b235f1071e695838407887460a5ca6ab7.tar.xz
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 <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions