Skip to content
Commit 961a2378 authored by Aravind Gopalakrishnan's avatar Aravind Gopalakrishnan Committed by Guenter Roeck
Browse files

hwmon: (fam15h_power) Make actual power reporting conditional

power1_input should only be reported for Fam15h, Models 00h-0fh
So, introduce a is_visible function to take care of this.

As suggested by Guenter here:
http://marc.info/?l=linux-kernel&m=141038145616437&w=2



Suggested-by: default avatarGuenter Roeck <linux@roeck-us.net>
Fixes: 22e32f4f ('x86,AMD: Power driver support for AMD's family 16h processors')
Signed-off-by: default avatarAravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 9e82bf01
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment