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)
commit6b0c0c83dc55dc2484b1d5cbf32631262ae86284
treef09e125b6447f0802bea8ea340b6ab53009e1c10
parentdf885d912f678f45a867c4eb3f3a5b0ea17796f4
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