Commit 808b4e63 authored by Jean Delvare's avatar Jean Delvare Committed by Guenter Roeck

hwmon: (coretemp) Drop unused struct members

pdev_entry.cpu and pdev_entry.cpu_core_id aren't used anywhere in the
driver code so we can drop these struct members.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
parent 95d17b71
...@@ -97,9 +97,7 @@ struct platform_data { ...@@ -97,9 +97,7 @@ struct platform_data {
struct pdev_entry { struct pdev_entry {
struct list_head list; struct list_head list;
struct platform_device *pdev; struct platform_device *pdev;
unsigned int cpu;
u16 phys_proc_id; u16 phys_proc_id;
u16 cpu_core_id;
}; };
static LIST_HEAD(pdev_list); static LIST_HEAD(pdev_list);
...@@ -653,9 +651,7 @@ static int __cpuinit coretemp_device_add(unsigned int cpu) ...@@ -653,9 +651,7 @@ static int __cpuinit coretemp_device_add(unsigned int cpu)
} }
pdev_entry->pdev = pdev; pdev_entry->pdev = pdev;
pdev_entry->cpu = cpu;
pdev_entry->phys_proc_id = TO_PHYS_ID(cpu); pdev_entry->phys_proc_id = TO_PHYS_ID(cpu);
pdev_entry->cpu_core_id = TO_CORE_ID(cpu);
list_add_tail(&pdev_entry->list, &pdev_list); list_add_tail(&pdev_entry->list, &pdev_list);
mutex_unlock(&pdev_list_mutex); mutex_unlock(&pdev_list_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment