hwmon: (ads2828) Only keep data in device data structure if needed
authorGuenter Roeck <linux@roeck-us.net>
Fri, 16 Jan 2015 18:12:50 +0000 (10:12 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 2 Feb 2015 16:20:06 +0000 (08:20 -0800)
commit7f444bf0a28c030d40925c5d0073d3e5ed8ca1e3
treeaabbf3a2c02fc0bf724d03bee8f84992f1d3fdf5
parentbea0bab0fcf5a0b97f3545ba35647f0f37dc2475
hwmon: (ads2828) Only keep data in device data structure if needed

The variables diff_input, ext_vref, and vref_mv are only used in the probe
function and therefore don't need to be kept in the device data structure.

Reviewed-and-Tested-by: Robert Rosengren <robert.rosengren@axis.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ads7828.c