]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (nct6775) Avoid using device platform data outside probe function
authorGuenter Roeck <linux@roeck-us.net>
Mon, 8 Jul 2013 20:15:04 +0000 (13:15 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 14 Jul 2013 23:25:13 +0000 (16:25 -0700)
commit7de362d0eb2fba88ade771927775757cff270d0a
treed443469719c0d0d6ffc28ae7b4558ae7272e94db
parentf99a9bdc1047c97d4a8f1fb0cb3b43abe0582119
hwmon: (nct6775) Avoid using device platform data outside probe function

Plan going forward is to attach all device attributes to the hwmon device and no
longer to the platform device. With that change, accessing platform data outside
the probe function will be more difficult. To avoid the problem, change code
to no longer rely on it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c