diff options
author | Zhang Rui <rui.zhang@intel.com> | 2024-02-02 12:21:40 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-02-25 23:37:37 +0300 |
commit | 87eb801925a0a391dce0d7519eb1d45a9d7e0953 (patch) | |
tree | a133d9ba3b35b1a135d806231ceaf2caa740316a /drivers/hwmon/lm75.c | |
parent | 18d8f5583388f38094b3b17ad3149d2a93a23646 (diff) | |
download | linux-87eb801925a0a391dce0d7519eb1d45a9d7e0953.tar.xz |
hwmon: (coretemp) Remove redundant pdata->cpu_map[]
pdata->cpu_map[] saves the mapping between cpu core id and the index in
pdata->core_data[]. This is used to find the temp_data structure using
cpu_core_id, by traversing the pdata->cpu_map[] array. But the same goal
can be achieved by traversing the pdata->core_temp[] array directly.
Remove redundant pdata->cpu_map[].
No functional change.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lore.kernel.org/r/20240202092144.71180-8-rui.zhang@intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/lm75.c')
0 files changed, 0 insertions, 0 deletions