diff options
author | Naveen Krishna Chatradhi <[email protected]> | 2020-11-12 22:51:59 +0530 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2020-11-13 06:46:20 -0800 |
commit | 60268b0e8258fdea9a3c9f4b51e161c123571db3 (patch) | |
tree | 21b48fecb81d19b106d4ce28e25570294f8d2567 | |
parent | 4d64bb4ba5ecf4831448cdb2fe16d0ae91b2b40b (diff) |
hwmon: (amd_energy) modify the visibility of the counters
This patch limits the visibility to owner and groups only for the
energy counters exposed through the hwmon based amd_energy driver.
Cc: [email protected]
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Naveen Krishna Chatradhi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
-rw-r--r-- | drivers/hwmon/amd_energy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/amd_energy.c b/drivers/hwmon/amd_energy.c index d06597303d5a..3197cda7bcd9 100644 --- a/drivers/hwmon/amd_energy.c +++ b/drivers/hwmon/amd_energy.c @@ -171,7 +171,7 @@ static umode_t amd_energy_is_visible(const void *_data, enum hwmon_sensor_types type, u32 attr, int channel) { - return 0444; + return 0440; } static int energy_accumulator(void *p) |