]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (amd_energy) Move label out of accumulation structure
authorAkshay Gupta <Akshay.Gupta@amd.com>
Tue, 29 Sep 2020 10:53:19 +0000 (16:23 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 30 Sep 2020 05:06:34 +0000 (22:06 -0700)
commit36fc4fa66819d4a3cc8c5ff5511baa4dfaf9a68b
treef09e125b6447f0802bea8ea340b6ab53009e1c10
parent01c5cd840719a4b6cef7abf31be25586137332cf
hwmon: (amd_energy) Move label out of accumulation structure

At present, core & socket labels are defined in struct sensor_accumulator
This patch moves it to the amd_energy_data structure, which will
help in calling memset on struct sensor_accumulator to optimize the code.

Signed-off-by: Akshay Gupta <Akshay.Gupta@amd.com>
Link: https://lore.kernel.org/r/20200929105322.8919-2-nchatrad@amd.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/amd_energy.c