hwmon: (fam15h_power) Refactor attributes for dynamically added
authorHuang Rui <ray.huang@amd.com>
Fri, 30 Oct 2015 09:56:55 +0000 (17:56 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 31 Oct 2015 22:37:17 +0000 (15:37 -0700)
commit7deb14b1316def5d4c85f99718d9e530d53cef4e
tree7662d0677b0a6703eb2d8a19a2437dffb044cda4
parent5aa4e83dd54a3b33d0f2fbab0a1f06a3614a5949
hwmon: (fam15h_power) Refactor attributes for dynamically added

Attributes depend on the CPU model the driver gets loaded on.
Therefore, add those attributes dynamically at init time. This is more
flexible to control the different attributes on different platforms.

Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/fam15h_power.c