staging: comedi: addi_eeprom: factor out the nvram read code
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 30 Oct 2012 00:06:14 +0000 (17:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Oct 2012 17:50:13 +0000 (10:50 -0700)
commitfc272e0042cae8c13d3484998811309af1a4b11b
treee6813168ea382b42e70c28de482c364120d6046a
parenteddc0578c0da97300649966a10e929e708fd948c
staging: comedi: addi_eeprom: factor out the nvram read code

Factor the code that reads the word from the nvram out of the
w_EepromReadWord() function.

Cleanup the factored out code 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>
drivers/staging/comedi/drivers/addi-data/addi_eeprom.c