summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2015-08-27 16:07:33 +0800
committerGuenter Roeck <linux@roeck-us.net>2015-08-27 07:34:25 -0700
commitd83e92b3af602c6ebb6d25d5232ecba73201a0e5 (patch)
tree37cd9b58b0d07c696b42a06c5bb390a0b3526dfe /drivers/hwmon
parent5dc087254acf12bf6908a924539fb624891e8b24 (diff)
downloadop-kernel-dev-d83e92b3af602c6ebb6d25d5232ecba73201a0e5.zip
op-kernel-dev-d83e92b3af602c6ebb6d25d5232ecba73201a0e5.tar.gz
hwmon: (fam15h_power) Rename fam15h_power_is_internal_node0 function
We rename fam15h_power_is_internal_node0() function to should_load_on_this_node(), because it may not be node0 from KV and on, and they are single-node processors. Signed-off-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/fam15h_power.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/fam15h_power.c b/drivers/hwmon/fam15h_power.c
index 0753810..820adf1 100644
--- a/drivers/hwmon/fam15h_power.c
+++ b/drivers/hwmon/fam15h_power.c
@@ -117,7 +117,7 @@ static const struct attribute_group fam15h_power_group = {
};
__ATTRIBUTE_GROUPS(fam15h_power);
-static bool fam15h_power_is_internal_node0(struct pci_dev *f4)
+static bool should_load_on_this_node(struct pci_dev *f4)
{
u32 val;
@@ -214,7 +214,7 @@ static int fam15h_power_probe(struct pci_dev *pdev,
*/
tweak_runavg_range(pdev);
- if (!fam15h_power_is_internal_node0(pdev))
+ if (!should_load_on_this_node(pdev))
return -ENODEV;
data = devm_kzalloc(dev, sizeof(struct fam15h_power_data), GFP_KERNEL);
OpenPOWER on IntegriCloud