]> 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, 4 Aug 2013 01:11:28 +0000 (18:11 -0700)
commit3e61689d8198d9f862e55a984e7a4e16e9b46122
treec0250748f39b225f685c722f0d8938cf87ccfa65
parent884538aa386d195074aa95ab43667a9a61e51e81
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