linux/drivers/acpi
Márton Németh c97adf9e7b acpi: make ACPI device id constant
The ids field of the struct acpi_driver is constant in <linux/acpi/acpi_bus.h>
so it is worth to make the initialization data also constant.

The semantic match that finds this kind of pattern is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
disable decl_init,const_decl_init;
identifier I1, I2, x;
@@
	struct I1 {
	  ...
	  const struct I2 *x;
	  ...
	};
@s@
identifier r.I1, y;
identifier r.x, E;
@@
	struct I1 y = {
	  .x = E,
	};
@c@
identifier r.I2;
identifier s.E;
@@
	const struct I2 E[] = ... ;
@depends on !c@
identifier r.I2;
identifier s.E;
@@
+	const
	struct I2 E[] = ...;
// </smpl>

Signed-off-by: Márton Németh <nm127@freemail.hu>
Cc: Julia Lawall <julia@diku.dk>
Cc: cocci@diku.dk
Signed-off-by: Len Brown <len.brown@intel.com>
2010-01-16 15:56:43 -05:00
..
acpica Merge branch 'acpica' into release 2009-12-15 22:27:39 -05:00
ac.c
acpi_memhotplug.c
acpi_pad.c acpi_pad: squish warning 2009-12-16 03:21:22 -05:00
battery.c battery: fix typo in comment 2009-12-16 00:07:21 -05:00
blacklist.c ACPI: disable _OSI(Windows 2009) on Asus K50IJ 2009-12-22 02:39:24 -05:00
bus.c Merge branches 'bugzilla-14446', 'bugzilla-14753' and 'bugzilla-14824' into release 2009-12-24 01:17:01 -05:00
button.c ACPI: Use the return result of ACPI lid notifier chain correctly 2009-12-16 01:12:35 -05:00
cm_sbs.c
container.c
debug.c ACPI: add kernel tainting after overriding an ACPI control method 2009-12-15 22:52:19 -05:00
dock.c Merge branch 'dock' into release 2009-12-16 03:33:28 -05:00
ec.c Merge branches 'bugzilla-14446', 'bugzilla-14753' and 'bugzilla-14824' into release 2009-12-24 01:17:01 -05:00
event.c
fan.c ACPI: Remove repeated registered as cooling_device messages 2009-12-16 00:07:10 -05:00
glue.c
hest.c
internal.h ACPI: processor: call _PDC early 2009-12-22 03:24:08 -05:00
Kconfig
Makefile ACPI: processor: call _PDC early 2009-12-22 03:24:08 -05:00
numa.c Merge branch 'misc-2.6.33' into release 2009-12-16 14:22:32 -05:00
osl.c
pci_bind.c
pci_irq.c
pci_link.c acpi: make ACPI device id constant 2010-01-16 15:56:43 -05:00
pci_root.c acpi: make ACPI device id constant 2010-01-16 15:56:43 -05:00
pci_slot.c
power_meter.c acpi: make ACPI device id constant 2010-01-16 15:56:43 -05:00
power.c acpi: make ACPI device id constant 2010-01-16 15:56:43 -05:00
proc.c
processor_core.c ACPI: processor: change acpi_processor_set_pdc() interface 2009-12-22 03:33:58 -05:00
processor_idle.c ACPI: fix for lapic_timer_propagate_broadcast() 2009-12-16 04:13:19 -05:00
processor_pdc.c ACPI: Fix section mismatch error for acpi_early_processor_set_pdc() 2010-01-16 02:00:44 -05:00
processor_perflib.c Merge branch 'ost' into release 2009-12-16 02:18:36 -05:00
processor_thermal.c ACPI: Remove unnecessary cast. 2010-01-15 23:06:44 -05:00
processor_throttling.c
reboot.c
sbs.c
sbshc.c
sbshc.h
scan.c
sleep.c ACPI: introduce kernel parameter acpi_sleep=sci_force_enable 2009-12-30 18:32:01 -05:00
sleep.h
system.c
tables.c
thermal.c acpi: thermal: display forced passive trip points in proc 2009-12-16 01:54:09 -05:00
utils.c
video_detect.c
video.c Merge branch 'video-error-case' into release 2009-12-30 02:51:38 -05:00
wakeup.c