* [lm-sensors] [PATCH] hwmon: (coretemp) Drop unused struct members
@ 2011-06-07 19:14 Jean Delvare
2011-06-07 19:17 ` [lm-sensors] [PATCH] hwmon: (coretemp) Drop unused struct Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2011-06-07 19:14 UTC (permalink / raw)
To: lm-sensors
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: Jean 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>
---
drivers/hwmon/coretemp.c | 4 ----
1 file changed, 4 deletions(-)
--- linux-3.0-rc2.orig/drivers/hwmon/coretemp.c 2011-06-07 09:27:38.000000000 +0200
+++ linux-3.0-rc2/drivers/hwmon/coretemp.c 2011-06-07 13:41:36.000000000 +0200
@@ -97,9 +97,7 @@ struct platform_data {
struct pdev_entry {
struct list_head list;
struct platform_device *pdev;
- unsigned int cpu;
u16 phys_proc_id;
- u16 cpu_core_id;
};
static LIST_HEAD(pdev_list);
@@ -653,9 +651,7 @@ static int __cpuinit coretemp_device_add
}
pdev_entry->pdev = pdev;
- pdev_entry->cpu = 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);
mutex_unlock(&pdev_list_mutex);
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-07 19:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07 19:14 [lm-sensors] [PATCH] hwmon: (coretemp) Drop unused struct members Jean Delvare
2011-06-07 19:17 ` [lm-sensors] [PATCH] hwmon: (coretemp) Drop unused struct Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.