linux/drivers/macintosh
Márton Németh 46759a7c13 powerpc/macintosh: Make Open Firmware device id constant
The match_table field of the struct of_device_id is constant in <linux/of_platform.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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-01-15 13:26:04 +11:00
..
adb-iop.c
adb.c
adbhid.c
ans-lcd.c
ans-lcd.h
apm_emu.c
Kconfig
mac_hid.c sysctl: Drop & in front of every proc_handler. 2009-11-18 08:37:40 -08:00
macio_asic.c powerpc/macio: Add dma_parms support to macio 2009-12-08 16:02:52 +11:00
macio_sysfs.c
macio-adb.c
Makefile
mediabay.c powerpc/macio: Rework hotplug media bay support 2009-12-09 17:09:14 +11:00
nvram.c macintosh: Remove BKL from nvram driver 2009-11-24 14:31:27 +11:00
rack-meter.c
smu.c powerpc/macintosh: Make Open Firmware device id constant 2010-01-15 13:26:04 +11:00
therm_adt746x.c powerpc/therm_adt746x: Record pwm invert bit at module load time] 2009-12-09 17:09:31 +11:00
therm_pm72.c powerpc/macintosh: Make Open Firmware device id constant 2010-01-15 13:26:04 +11:00
therm_pm72.h
therm_windtunnel.c powerpc/macintosh: Make Open Firmware device id constant 2010-01-15 13:26:04 +11:00
via-cuda.c
via-macii.c
via-maciisi.c
via-pmu68k.c
via-pmu-backlight.c
via-pmu-event.c
via-pmu-event.h
via-pmu-led.c
via-pmu.c powerpc/via-pmu: Convert to proc_fops/seq_file 2009-12-08 15:59:34 +11:00
windfarm_core.c
windfarm_cpufreq_clamp.c
windfarm_lm75_sensor.c
windfarm_max6690_sensor.c
windfarm_pid.c
windfarm_pid.h
windfarm_pm81.c
windfarm_pm91.c
windfarm_pm112.c
windfarm_pm121.c
windfarm_smu_controls.c powerpc/windfarm: Add detection for second cpu pump 2009-12-08 16:01:10 +11:00
windfarm_smu_sat.c
windfarm_smu_sensors.c
windfarm.h