summaryrefslogtreecommitdiff
path: root/drivers/regulator/fixed-helper.c
diff options
context:
space:
mode:
authorChristian Riesch <christian.riesch@omicron.at>2012-07-19 00:23:06 +0000
committerDavid S. Miller <davem@davemloft.net>2012-07-19 10:48:07 -0700
commitceb02c91dd76012e902799e0132ad3ad3e659394 (patch)
tree4a200ab9b830cc15eebb88a2201d197c30ccf800 /drivers/regulator/fixed-helper.c
parent84c9f8c41df9f62a34eb680009b59cc817a76d6e (diff)
asix: Rework reading from EEPROM
The current code for reading the EEPROM via ethtool in the asix driver has a few issues. It cannot handle odd length values (accesses must be aligned at 16 bit boundaries) and interprets the offset provided by ethtool as 16 bit word offset instead as byte offset. The new code for asix_get_eeprom() introduced by this patch is modeled after the code in drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c and provides read access to the entire EEPROM with arbitrary offsets and lengths. Signed-off-by: Christian Riesch <christian.riesch@omicron.at> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/regulator/fixed-helper.c')
0 files changed, 0 insertions, 0 deletions