]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (amd_energy) modify the visibility of the counters
authorNaveen Krishna Chatradhi <nchatrad@amd.com>
Thu, 12 Nov 2020 17:21:59 +0000 (22:51 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 13 Nov 2020 14:46:20 +0000 (06:46 -0800)
commite164b82680b0c0b00c56b665f8b8577c57e82de9
tree21b48fecb81d19b106d4ce28e25570294f8d2567
parente4e2f849a79dd1a900d4aee1ce8f6ebdad029ec0
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: stable@vger.kernel.org
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Naveen Krishna Chatradhi <nchatrad@amd.com>
Link: https://lore.kernel.org/r/20201112172159.8781-1-nchatrad@amd.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/amd_energy.c