]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd227abd52356455574b1370ed8414906e696b860
tree7662d0677b0a6703eb2d8a19a2437dffb044cda4
parent33b09c211b69b86effb2b298eae38ced819bf461
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