sfc: Add support for new board sensors
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 28 Nov 2012 23:11:18 +0000 (23:11 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 29 Aug 2013 17:11:58 +0000 (18:11 +0100)
commit38589cdcd0e77174ca9de9e11ff22e5c3ae95984
tree6d000a588a2e7c92c3058cb705b4d2c94e7e3833
parentd4fbdcfe93928fbcb7374ea490e41f7b69d95380
sfc: Add support for new board sensors

Add support for power and current sensors, which need to be named
differently in sysfs.  Power sensors also require values to be scaled
between MCDI and sysfs, and have no minimum value.

Add definitions of the power, current, fan, and additional temperature
and voltage sensors found on SFA6902F, SFN7022F and SFN7122F.

(Includes a bug fix from Andrew Jackson.)

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi_mon.c