From: Aravind Gopalakrishnan Date: Tue, 16 Sep 2014 19:58:04 +0000 (-0500) Subject: hwmon: (fam15h_power) Make actual power reporting conditional X-Git-Tag: fixes-for-v3.18-merge-window~83^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=961a23788c3448eec7906bd74c64c01c54fba80e;p=pandora-kernel.git 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: Guenter Roeck Fixes: 22e32f4f5777 ('x86,AMD: Power driver support for AMD's family 16h processors') Signed-off-by: Aravind Gopalakrishnan Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed