]> 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)
commit545b05fbe92ca924569357d4417d13f9554c8278
tree7662d0677b0a6703eb2d8a19a2437dffb044cda4
parent231dae9346803dd633578840404b02eda306651e
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