From: H Hartley Sweeten Date: Tue, 30 Oct 2012 00:07:11 +0000 (-0700) Subject: staging: comedi: addi_eeprom: move the eeprom offset to addi_eeprom_readw() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~803 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85c1dcbab4d002e1d6c537d88558bb20326d507d;p=pandora-kernel.git staging: comedi: addi_eeprom: move the eeprom offset to addi_eeprom_readw() All the addi_eeprom_readw() calls have the offset to the start of user data (0x100) as part of the address calculation. Create a define for this constant and move it's addition to the address into addi_eeprom_readw(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed