constify of_device_id array
Subsystems (87)
cover constify of_device_id array
This small patchset adds const to of_device_id arrays in drivers branch.
Fabian Frederick (35):
ata: constify of_device_id array
regulator: constify of_device_id array
thermal: constify of_device_id array tty/hvc_opal: constify of_device_id array
tty: constify of_device_id array
power: constify of_device_id array
char: constify of_device_id array
dma: constify of_device_id array
iio: constify of_device_id array
misc: constify of_device_id array
usb: gadget: constify of_device_id array
mtd: constify of_device_id array
w1: constify of_device_id array
ide: pmac: constify of_device_id array
spi: constify of_device_id array
video: constify of_device_id array
coresight-replicator: constify of_device_id array
macintosh: constify of_device_id array
virtio_mmio: constify of_device_id array
swim3: constify of_device_id array
mfd: constify of_device_id array
soc: ti: constify of_device_id array [media]: constify of_device_id array
Input: constify of_device_id array
PCI: constify of_device_id array
hwmon: constify of_device_id array
reset: sti: constify of_device_id array
uio: constify of_device_id array
gpu: constify of_device_id array
devfreq: constify of_device_id array
EDAC: constify of_device_id array
clk: constify of_device_id array
mmc: constify of_device_id array
Staging: octeon: constify of_device_id array
pinctrl: constify of_device_id array
drivers/ata/pata_macio.c | 2 +- drivers/ata/pata_mpc52xx.c | 2 +- drivers/ata/pata_octeon_cf.c | 2 +- drivers/ata/pata_of_platform.c | 2 +- drivers/ata/sata_fsl.c | 2 +- drivers/ata/sata_mv.c | 2 +- drivers/ata/sata_rcar.c | 2 +- drivers/block/swim3.c | 2 +- drivers/char/hw_random/pasemi-rng.c | 2 +- drivers/char/hw_random/powernv-rng.c | 2 +- drivers/char/hw_random/ppc4xx-rng.c | 2 +- drivers/char/ipmi/ipmi_si_intf.c | 4 ++-- drivers/char/xillybus/xillybus_of.c | 2 +- drivers/clk/clk-palmas.c | 2 +- drivers/clk/st/clkgen-fsyn.c | 2 +- drivers/clk/st/clkgen-mux.c | 8 ++++---- drivers/clk/st/clkgen-pll.c | 4 ++-- drivers/clk/ti/clk-dra7-atl.c | 2 +- drivers/clk/ti/clockdomain.c | 2 +- drivers/clk/versatile/clk-vexpress-osc.c | 2 +- drivers/coresight/coresight-replicator.c | 2 +- drivers/devfreq/event/exynos-ppmu.c | 2 +- drivers/devfreq/tegra-devfreq.c | 2 +- drivers/dma/bestcomm/bestcomm.c | 4 ++-- drivers/dma/k3dma.c | 2 +- drivers/dma/mmp_pdma.c | 2 +- drivers/dma/mmp_tdma.c | 2 +- drivers/dma/mpc512x_dma.c | 2 +- drivers/dma/mv_xor.c | 2 +- drivers/dma/sirf-dma.c | 2 +- drivers/dma/sun6i-dma.c | 2 +- drivers/edac/highbank_mc_edac.c | 2 +- drivers/edac/mpc85xx_edac.c | 4 ++-- drivers/edac/ppc4xx_edac.c | 2 +- drivers/edac/synopsys_edac.c | 2 +- drivers/gpio/gpio-mpc8xxx.c | 2 +- drivers/gpio/gpio-octeon.c | 2 +- drivers/gpio/gpio-tz1090-pdc.c | 2 +- drivers/gpio/gpio-tz1090.c | 2 +- drivers/gpio/gpio-zynq.c | 2 +- drivers/gpu/drm/armada/armada_crtc.c | 2 +- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 2 +- drivers/gpu/drm/exynos/exynos_hdmi.c | 2 +- drivers/gpu/drm/exynos/exynos_mixer.c | 2 +- drivers/gpu/drm/panel/panel-ld9040.c | 2 +- drivers/gpu/drm/panel/panel-s6e8aa0.c | 2 +- drivers/gpu/drm/sti/sti_dvo.c | 2 +- drivers/gpu/drm/sti/sti_hqvdp.c | 2 +- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 4 ++-- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 2 +- drivers/gpu/drm/tilcdc/tilcdc_slave.c | 4 ++-- drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 4 ++-- drivers/gpu/host1x/dev.c | 2 +- drivers/gpu/host1x/mipi.c | 2 +- drivers/hwmon/pwm-fan.c | 2 +- drivers/hwmon/vexpress.c | 2 +- drivers/ide/pmac.c | 2 +- drivers/iio/common/ssp_sensors/ssp_dev.c | 2 +- drivers/input/misc/palmas-pwrbutton.c | 2 +- drivers/input/misc/regulator-haptic.c | 2 +- drivers/input/misc/tps65218-pwrbutton.c | 2 +- drivers/input/touchscreen/ar1021_i2c.c | 2 +- drivers/macintosh/mediabay.c | 2 +- drivers/macintosh/rack-meter.c | 2 +- drivers/media/i2c/adv7604.c | 2 +- drivers/media/platform/fsl-viu.c | 2 +- drivers/media/platform/soc_camera/rcar_vin.c | 2 +- drivers/media/rc/gpio-ir-recv.c | 2 +- drivers/media/rc/ir-hix5hd2.c | 2 +- drivers/media/rc/st_rc.c | 2 +- drivers/mfd/hi6421-pmic-core.c | 2 +- drivers/mfd/rk808.c | 2 +- drivers/mfd/twl4030-power.c | 2 +- drivers/misc/carma/carma-fpga-program.c | 2 +- drivers/misc/carma/carma-fpga.c | 2 +- drivers/misc/lis3lv02d/lis3lv02d_i2c.c | 2 +- drivers/misc/lis3lv02d/lis3lv02d_spi.c | 2 +- drivers/misc/sram.c | 2 +- drivers/mmc/host/mmc_spi.c | 2 +- drivers/mmc/host/wmt-sdmmc.c | 2 +- drivers/mtd/devices/docg3.c | 2 +- drivers/mtd/maps/physmap_of.c | 4 ++-- drivers/mtd/nand/mpc5121_nfc.c | 2 +- drivers/mtd/spi-nor/fsl-quadspi.c | 2 +- drivers/pci/host/pci-rcar-gen2.c | 2 +- drivers/pci/host/pcie-xilinx.c | 2 +- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8135.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8173.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-370.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-375.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-38x.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-39x.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-xp.c | 2 +- drivers/pinctrl/mvebu/pinctrl-kirkwood.c | 2 +- drivers/pinctrl/mvebu/pinctrl-orion.c | 2 +- drivers/pinctrl/pinctrl-as3722.c | 2 +- drivers/pinctrl/pinctrl-at91.c | 4 ++-- drivers/pinctrl/pinctrl-palmas.c | 2 +- drivers/pinctrl/pinctrl-single.c | 4 ++-- drivers/pinctrl/pinctrl-st.c | 2 +- drivers/pinctrl/pinctrl-tz1090-pdc.c | 2 +- drivers/pinctrl/pinctrl-tz1090.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun5i-a10s.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun6i-a31s.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun7i-a20.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun8i-a23-r.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun8i-a23.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c | 2 +- drivers/pinctrl/vt8500/pinctrl-vt8500.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8505.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8650.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8750.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8850.c | 2 +- drivers/power/charger-manager.c | 2 +- drivers/power/reset/at91-poweroff.c | 2 +- drivers/power/reset/at91-reset.c | 4 ++-- drivers/power/reset/hisi-reboot.c | 2 +- drivers/power/reset/keystone-reset.c | 2 +- drivers/power/reset/st-poweroff.c | 2 +- drivers/power/reset/syscon-reboot.c | 2 +- drivers/power/reset/vexpress-poweroff.c | 2 +- drivers/power/reset/xgene-reboot.c | 2 +- drivers/power/tps65090-charger.c | 2 +- drivers/regulator/palmas-regulator.c | 2 +- drivers/reset/sti/reset-stih407.c | 2 +- drivers/reset/sti/reset-stih415.c | 2 +- drivers/reset/sti/reset-stih416.c | 2 +- drivers/soc/ti/knav_dma.c | 2 +- drivers/soc/ti/knav_qmss_queue.c | 2 +- drivers/spi/spi-mpc512x-psc.c | 2 +- drivers/spi/spi-octeon.c | 2 +- drivers/spi/spi-st-ssc4.c | 2 +- drivers/staging/octeon-usb/octeon-hcd.c | 2 +- drivers/staging/octeon/ethernet.c | 2 +- drivers/thermal/st/st_thermal_memmap.c | 2 +- drivers/thermal/st/st_thermal_syscfg.c | 2 +- drivers/tty/hvc/hvc_opal.c | 2 +- drivers/tty/serial/apbuart.c | 2 +- drivers/tty/serial/cpm_uart/cpm_uart_core.c | 2 +- drivers/tty/serial/fsl_lpuart.c | 2 +- drivers/tty/serial/mpc52xx_uart.c | 2 +- drivers/tty/serial/mxs-auart.c | 2 +- drivers/tty/serial/of_serial.c | 4 ++-- drivers/tty/serial/pmac_zilog.c | 2 +- drivers/tty/serial/pxa.c | 2 +- drivers/tty/serial/serial-tegra.c | 2 +- drivers/tty/serial/sirfsoc_uart.c | 2 +- drivers/tty/serial/st-asc.c | 2 +- drivers/tty/serial/uartlite.c | 2 +- drivers/tty/serial/ucc_uart.c | 2 +- drivers/tty/serial/xilinx_uartps.c | 2 +- drivers/uio/uio_pdrv_genirq.c | 2 +- drivers/usb/gadget/udc/pxa27x_udc.c | 2 +- drivers/video/backlight/gpio_backlight.c | 2 +- drivers/video/backlight/pwm_bl.c | 2 +- drivers/video/fbdev/fsl-diu-fb.c | 2 +- drivers/video/fbdev/grvga.c | 2 +- drivers/video/fbdev/mb862xx/mb862xxfbdrv.c | 2 +- drivers/video/fbdev/ocfb.c | 2 +- drivers/video/fbdev/platinumfb.c | 2 +- drivers/video/fbdev/xilinxfb.c | 2 +- drivers/virtio/virtio_mmio.c | 2 +- drivers/w1/masters/mxc_w1.c | 2 +- drivers/w1/masters/omap_hdq.c | 2 +- drivers/w1/masters/w1-gpio.c | 2 +- 170 files changed, 185 insertions(+), 185 deletions(-)
Signature · 1 line
2.1.0
PATCH 1/35 ata: constify of_device_id array
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/ata/pata_macio.c | 2 +- drivers/ata/pata_mpc52xx.c | 2 +- drivers/ata/pata_octeon_cf.c | 2 +- drivers/ata/pata_of_platform.c | 2 +- drivers/ata/sata_fsl.c | 2 +- drivers/ata/sata_mv.c | 2 +- drivers/ata/sata_rcar.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
drivers/ata/pata_macio.c +1 -1
@@ -1328,7 +1328,7 @@ static int pata_macio_pci_resume(struct pci_dev *pdev) }#endif /* CONFIG_PM_SLEEP */ -static struct of_device_id pata_macio_match[] = +static const struct of_device_id pata_macio_match[] = { { .name ="IDE" ,
drivers/ata/pata_mpc52xx.c +1 -1
@@ -847,7 +847,7 @@ mpc52xx_ata_resume(struct platform_device *op) }#endif -static struct of_device_id mpc52xx_ata_of_match[] = { +static const struct of_device_id mpc52xx_ata_of_match[] = { { .compatible ="fsl,mpc5200-ata" , }, { .compatible ="mpc5200-ata" , }, {},
drivers/ata/pata_octeon_cf.c +1 -1
@@ -1047,7 +1047,7 @@ static void octeon_cf_shutdown(struct device *dev) } } -static struct of_device_id octeon_cf_match[] = { +static const struct of_device_id octeon_cf_match[] = { { .compatible ="cavium,ebt3000-compact-flash" , },
drivers/ata/pata_of_platform.c +1 -1
@@ -72,7 +72,7 @@ static int pata_of_platform_probe(struct platform_device *ofdev) reg_shift, pio_mask, &pata_platform_sht); } -static struct of_device_id pata_of_platform_match[] = { +static const struct of_device_id pata_of_platform_match[] = { { .compatible ="ata-generic" , }, { }, };
drivers/ata/sata_fsl.c +1 -1
@@ -1611,7 +1611,7 @@ static int sata_fsl_resume(struct platform_device *op) }#endif -static struct of_device_id fsl_sata_match[] = { +static const struct of_device_id fsl_sata_match[] = { { .compatible ="fsl,pq-sata" , },
drivers/ata/sata_mv.c +1 -1
@@ -4263,7 +4263,7 @@ static int mv_platform_resume(struct platform_device *pdev)#endif #ifdef CONFIG_OF -static struct of_device_id mv_sata_dt_ids[] = { +static const struct of_device_id mv_sata_dt_ids[] = { { .compatible ="marvell,armada-370-sata" , }, { .compatible ="marvell,orion-sata" , }, {},
drivers/ata/sata_rcar.c +1 -1
@@ -828,7 +828,7 @@ static void sata_rcar_init_controller(struct ata_host *host)iowrite32 (ATAPI_INT_ENABLE_SATAINT , base +ATAPI_INT_ENABLE_REG ); } -static struct of_device_id sata_rcar_match[] = { +static const struct of_device_id sata_rcar_match[] = { {/* Deprecated by "renesas,sata-r8a7779" */ .compatible ="renesas,rcar-sata" ,
Signature · 1 line
2.1.0
Re: [PATCH 01/35 linux-next] ata: constify of_device_id array
Fabian,
Quoted 2 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)
Do you know the gcc plugin-system?
You could improve the const plugin in to find more interesting structs to constify them.
http://grsecurity.net/~ephox/const_plugin/
Please check also the latest grsecurity patch.
Signature · 2 lines
Thanks, //richard
Re: [PATCH 01/35 linux-next] ata: constify of_device_id array
Quoted 9 lines
On 16 March 2015 at 23:16 Richard Weinberger <[email protected]> wrote:
Fabian,
On Mon, Mar 16, 2015 at 8:17 PM, Fabian Frederick <[email protected]> wrote:
Quoted 8 lines
Quoted 2 lines
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Do you know the gcc plugin-system?
You could improve the const plugin in to find more interesting structs to constify them.
http://grsecurity.net/~ephox/const_plugin/
Please check also the latest grsecurity patch.
Thanks a lot for information Richard, I didn't know about that project.
Regards,
Fabian
Quoted 4 lines
--
Thanks,
//richard
PATCH 2/35 regulator: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/regulator/palmas-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/palmas-regulator.c +1 -1
@@ -1505,7 +1505,7 @@ static void palmas_dt_to_pdata(struct device *dev, pdata->ldo6_vibrator =of_property_read_bool (node,"ti,ldo6-vibrator" ); } -static struct of_device_id of_palmas_match_tbl[] = { +static const struct of_device_id of_palmas_match_tbl[] = { { .compatible ="ti,palmas-pmic" , .data = &palmas_ddata,
Signature · 1 line
2.1.0
Re: [PATCH 02/35 linux-next] regulator: constify of_device_id array
Quoted 2 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)
Applied, thanks. Please remember to always include people in the cover letter for patch serieses so they know what's going on with regard to dependencies and so on.
Re: [PATCH 02/35 linux-next] regulator: constify of_device_id array
Quoted 12 lines · On 17 March 2015 at 13:11 Mark Brown <[email protected]> wrote:
Quoted 2 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Applied, thanks. Please remember to always include people in the cover letter for patch serieses so they know what's going on with regard to dependencies and so on.
Thanks Mark, I used a --cc-cmd script by Joe Perches with git send-email which uses --nom for cover-letter.
This limits recipients to mailing lists: 37 instead of 123 in this case. I guess it's better to reduce the noise :)
Regards,
Fabian
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Mark Brown
maintainerRe: [PATCH 02/35 linux-next] regulator: constify of_device_id array
Quoted 5 lines · Fabian Frederick
Thanks Mark, I used a --cc-cmd script by Joe Perches with git send-email which uses --nom for cover-letter.
This limits recipients to mailing lists: 37 instead of 123 in this case. I guess it's better to reduce the noise :)
Well, another thing to do if there's no dependencies is to just send each patch separately - there's no real relationship between the patches. This also avoids the issue.
Re: [PATCH 02/35 linux-next] regulator: constify of_device_id array
Quoted 10 lines · On 17 March 2015 at 18:19 Mark Brown <[email protected]> wrote:
Quoted 2 lines · Fabian Frederick
Thanks Mark, I used a --cc-cmd script by Joe Perches with git send-email which uses --nom for cover-letter.
Quoted 6 lines
Quoted 2 lines
This limits recipients to mailing lists: 37 instead of 123 in this case. I guess it's better to reduce the noise :)
Well, another thing to do if there's no dependencies is to just send each patch separately - there's no real relationship between the patches. This also avoids the issue.
Such trivial updates are generally applied by David or Greg after receiving some ack. That's the reason for the patchset :)
Mark Brown
maintainerRe: [PATCH 02/35 linux-next] regulator: constify of_device_id array
Quoted 8 lines · Fabian Frederick
Quoted 5 lines · On 17 March 2015 at 18:19 Mark Brown <[email protected]> wrote:
Well, another thing to do if there's no dependencies is to just send each patch separately - there's no real relationship between the patches. This also avoids the issue.
Such trivial updates are generally applied by David or Greg after receiving some ack. That's the reason for the patchset :)
It's pretty disappointing if that's the case, though it might be something connected with the submission style - for most of the kernel patches would normally be handled directly by the maintainer.
PATCH 3/35 thermal: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/thermal/st/st_thermal_memmap.c | 2 +- drivers/thermal/st/st_thermal_syscfg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/thermal/st/st_thermal_memmap.c +1 -1
@@ -174,7 +174,7 @@ const struct st_thermal_compat_data st_407_cdata = { .crit_temp = 120, }; -static struct of_device_id st_mmap_thermal_of_match[] = { +static const struct of_device_id st_mmap_thermal_of_match[] = { { .compatible ="st,stih416-mpe-thermal" , .data = &st_416mpe_cdata }, { .compatible ="st,stih407-thermal" , .data = &st_407_cdata }, {/* sentinel */ }
drivers/thermal/st/st_thermal_syscfg.c +1 -1
@@ -143,7 +143,7 @@ const struct st_thermal_compat_data st_127_cdata = { .crit_temp = 120, }; -static struct of_device_id st_syscfg_thermal_of_match[] = { +static const struct of_device_id st_syscfg_thermal_of_match[] = { { .compatible ="st,stih415-sas-thermal" , .data = &st_415sas_cdata }, { .compatible ="st,stih415-mpe-thermal" , .data = &st_415mpe_cdata }, { .compatible ="st,stih416-sas-thermal" , .data = &st_416sas_cdata },
Signature · 1 line
2.1.0
PATCH 4/35 tty/hvc_opal: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/tty/hvc/hvc_opal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/hvc/hvc_opal.c +1 -1
@@ -41,7 +41,7 @@static const char hvc_opal_name[] ="hvc_opal" ; -static struct of_device_id hvc_opal_match[] = { +static const struct of_device_id hvc_opal_match[] = { { .name ="serial" , .compatible ="ibm,opal-console-raw" }, { .name ="serial" , .compatible ="ibm,opal-console-hvsi" }, { },
Signature · 1 line
2.1.0
PATCH 5/35 tty: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/tty/serial/apbuart.c | 2 +- drivers/tty/serial/cpm_uart/cpm_uart_core.c | 2 +- drivers/tty/serial/fsl_lpuart.c | 2 +- drivers/tty/serial/mpc52xx_uart.c | 2 +- drivers/tty/serial/mxs-auart.c | 2 +- drivers/tty/serial/of_serial.c | 4 ++-- drivers/tty/serial/pmac_zilog.c | 2 +- drivers/tty/serial/pxa.c | 2 +- drivers/tty/serial/serial-tegra.c | 2 +- drivers/tty/serial/sirfsoc_uart.c | 2 +- drivers/tty/serial/st-asc.c | 2 +- drivers/tty/serial/uartlite.c | 2 +- drivers/tty/serial/ucc_uart.c | 2 +- drivers/tty/serial/xilinx_uartps.c | 2 +- 14 files changed, 15 insertions(+), 15 deletions(-)
drivers/tty/serial/apbuart.c +1 -1
@@ -572,7 +572,7 @@ static int apbuart_probe(struct platform_device *op)return 0 ; } -static struct of_device_id apbuart_match[] = { +static const struct of_device_id apbuart_match[] = { { .name ="GAISLER_APBUART" , },
drivers/tty/serial/cpm_uart/cpm_uart_core.c +1 -1
@@ -1435,7 +1435,7 @@ static int cpm_uart_remove(struct platform_device *ofdev)return uart_remove_one_port (&cpm_reg, &pinfo->port); } -static struct of_device_id cpm_uart_match[] = { +static const struct of_device_id cpm_uart_match[] = { { .compatible ="fsl,cpm1-smc-uart" , },
drivers/tty/serial/fsl_lpuart.c +1 -1
@@ -257,7 +257,7 @@ struct lpuart_port {struct timer_list lpuart_timer; }; -static struct of_device_id lpuart_dt_ids[] = { +static const struct of_device_id lpuart_dt_ids[] = { { .compatible ="fsl,vf610-lpuart" , },
drivers/tty/serial/mpc52xx_uart.c +1 -1
@@ -1717,7 +1717,7 @@ static struct uart_driver mpc52xx_uart_driver = {/* OF Platform Driver */ /* ======================================================================== */ -static struct of_device_id mpc52xx_uart_of_match[] = { +static const struct of_device_id mpc52xx_uart_of_match[] = { #ifdef CONFIG_PPC_MPC52xx { .compatible ="fsl,mpc5200b-psc-uart" , .data = &mpc5200b_psc_ops, }, { .compatible = "fsl,mpc5200-psc-uart", .data = &mpc52xx_psc_ops, },
drivers/tty/serial/mxs-auart.c +1 -1
@@ -176,7 +176,7 @@ static struct platform_device_id mxs_auart_devtype[] = { };MODULE_DEVICE_TABLE (platform, mxs_auart_devtype); -static struct of_device_id mxs_auart_dt_ids[] = { +static const struct of_device_id mxs_auart_dt_ids[] = { { .compatible ="fsl,imx28-auart" , .data = &mxs_auart_devtype[IMX28_AUART ]
drivers/tty/serial/of_serial.c +2 -2
@@ -155,7 +155,7 @@ out:/* * Try to register a serial port */ -static struct of_device_id of_platform_serial_table[]; +static const struct of_device_id of_platform_serial_table[];static int of_platform_serial_probe (struct platform_device *ofdev) {const struct of_device_id *match;
@@ -320,7 +320,7 @@ static SIMPLE_DEV_PM_OPS(of_serial_pm_ops, of_serial_suspend, of_serial_resume);/* * A few common types, add more as needed. */ -static struct of_device_id of_platform_serial_table[] = { +static const struct of_device_id of_platform_serial_table[] = { { .compatible ="ns8250" , .data = (void *)PORT_8250 , }, { .compatible ="ns16450" , .data = (void *)PORT_16450 , }, { .compatible ="ns16550a" , .data = (void *)PORT_16550A , },
drivers/tty/serial/pmac_zilog.c +1 -1
@@ -1846,7 +1846,7 @@ static int __init pmz_register(void) #ifdef CONFIG_PPC_PMAC -static struct of_device_id pmz_match[] = +static const struct of_device_id pmz_match[] = { { .name = "ch-a",
drivers/tty/serial/pxa.c +1 -1
@@ -824,7 +824,7 @@ static const struct dev_pm_ops serial_pxa_pm_ops = { };#endif -static struct of_device_id serial_pxa_dt_ids[] = { +static const struct of_device_id serial_pxa_dt_ids[] = { { .compatible ="mrvl,pxa-uart" , }, { .compatible ="mrvl,mmp-uart" , }, {}
drivers/tty/serial/serial-tegra.c +1 -1
@@ -1251,7 +1251,7 @@ static struct tegra_uart_chip_data tegra30_uart_chip_data = { .support_clk_src_div = true, }; -static struct of_device_id tegra_uart_of_match[] = { +static const struct of_device_id tegra_uart_of_match[] = { { .compatible ="nvidia,tegra30-hsuart" , .data = &tegra30_uart_chip_data,
drivers/tty/serial/sirfsoc_uart.c +1 -1
@@ -1269,7 +1269,7 @@ static struct uart_driver sirfsoc_uart_drv = {#endif }; -static struct of_device_id sirfsoc_uart_ids[] = { +static const struct of_device_id sirfsoc_uart_ids[] = { { .compatible ="sirf,prima2-uart" , .data = &sirfsoc_uart,}, { .compatible ="sirf,atlas7-uart" , .data = &sirfsoc_uart}, { .compatible ="sirf,prima2-usp-uart" , .data = &sirfsoc_usp},
drivers/tty/serial/st-asc.c +1 -1
@@ -720,7 +720,7 @@ static struct asc_port *asc_of_get_asc_port(struct platform_device *pdev) }#ifdef CONFIG_OF -static struct of_device_id asc_match[] = { +static const struct of_device_id asc_match[] = { { .compatible ="st,asc" , }, {}, };
drivers/tty/serial/uartlite.c +1 -1
@@ -622,7 +622,7 @@ static int ulite_release(struct device *dev)#if defined(CONFIG_OF )/* Match table for of_platform binding */ -static struct of_device_id ulite_of_match[] = { +static const struct of_device_id ulite_of_match[] = { { .compatible ="xlnx,opb-uartlite-1.00.b" , }, { .compatible ="xlnx,xps-uartlite-1.00.a" , }, {}
drivers/tty/serial/ucc_uart.c +1 -1
@@ -1473,7 +1473,7 @@ static int ucc_uart_remove(struct platform_device *ofdev)return 0 ; } -static struct of_device_id ucc_uart_match[] = { +static const struct of_device_id ucc_uart_match[] = { { .type ="serial" , .compatible ="ucc_uart" ,
drivers/tty/serial/xilinx_uartps.c +1 -1
@@ -1459,7 +1459,7 @@ static int cdns_uart_remove(struct platform_device *pdev) }/* Match table for of_platform binding */ -static struct of_device_id cdns_uart_of_match[] = { +static const struct of_device_id cdns_uart_of_match[] = { { .compatible ="xlnx,xuartps" , }, { .compatible ="cdns,uart-r1p8" , }, {}
Signature · 1 line
2.1.0
Re: [PATCH 05/35 linux-next] tty: constify of_device_id array
Quoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick<[email protected]>
...
Quoted 1 line
drivers/tty/serial/ucc_uart.c | 2 +-
For this driver:
Re: [PATCH 05/35 linux-next] tty: constify of_device_id array
In reply to Fabian FrederickQuoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabian" == Fabian Frederick <[email protected]> writes:
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>---
For this:
Quoted 1 line
drivers/tty/serial/uartlite.c | 2 +-
Signature · 1 line
Bye, Peter Korsgaard
Re: [PATCH 05/35 linux-next] tty: constify of_device_id array
In reply to Fabian FrederickHi Fabian
Quoted 5 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>---
....
Quoted 2 lines
drivers/tty/serial/st-asc.c | 2 +-
For this driver
Thanks
PATCH 6/35 power: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/power/charger-manager.c | 2 +- drivers/power/reset/at91-poweroff.c | 2 +- drivers/power/reset/at91-reset.c | 4 ++-- drivers/power/reset/hisi-reboot.c | 2 +- drivers/power/reset/keystone-reset.c | 2 +- drivers/power/reset/st-poweroff.c | 2 +- drivers/power/reset/syscon-reboot.c | 2 +- drivers/power/reset/vexpress-poweroff.c | 2 +- drivers/power/reset/xgene-reboot.c | 2 +- drivers/power/tps65090-charger.c | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-)
drivers/power/charger-manager.c +1 -1
@@ -1459,7 +1459,7 @@ static int cm_init_thermal_data(struct charger_manager *cm,return ret; } -static struct of_device_id charger_manager_match[] = { +static const struct of_device_id charger_manager_match[] = { { .compatible ="charger-manager" , },
drivers/power/reset/at91-poweroff.c +1 -1
@@ -140,7 +140,7 @@ static int at91_poweroff_probe(struct platform_device *pdev)return 0 ; } -static struct of_device_id at91_poweroff_of_match[] = { +static const struct of_device_id at91_poweroff_of_match[] = { { .compatible ="atmel,at91sam9260-shdwc" , }, { .compatible ="atmel,at91sam9rl-shdwc" , }, { .compatible ="atmel,at91sam9x5-shdwc" , },
drivers/power/reset/at91-reset.c +2 -2
@@ -152,14 +152,14 @@ static void __init at91_reset_status(struct platform_device *pdev)pr_info ("AT91: Starting after %s\n" , reason); } -static struct of_device_id at91_ramc_of_match[] = { +static const struct of_device_id at91_ramc_of_match[] = { { .compatible ="atmel,at91sam9260-sdramc" , }, { .compatible ="atmel,at91sam9g45-ddramc" , }, { .compatible ="atmel,sama5d3-ddramc" , }, {/* sentinel */ } }; -static struct of_device_id at91_reset_of_match[] = { +static const struct of_device_id at91_reset_of_match[] = { { .compatible ="atmel,at91sam9260-rstc" , .data = at91sam9260_restart }, { .compatible ="atmel,at91sam9g45-rstc" , .data = at91sam9g45_restart }, {/* sentinel */ }
drivers/power/reset/hisi-reboot.c +1 -1
@@ -64,7 +64,7 @@ static int hisi_reboot_probe(struct platform_device *pdev)return err; } -static struct of_device_id hisi_reboot_of_match[] = { +static const struct of_device_id hisi_reboot_of_match[] = { { .compatible ="hisilicon,sysctrl" }, {} };
drivers/power/reset/keystone-reset.c +1 -1
@@ -70,7 +70,7 @@ static struct notifier_block rsctrl_restart_nb = { .priority = 128, }; -static struct of_device_id rsctrl_of_match[] = { +static const struct of_device_id rsctrl_of_match[] = { {.compatible ="ti,keystone-reset" , }, {}, };
drivers/power/reset/st-poweroff.c +1 -1
@@ -97,7 +97,7 @@ static struct notifier_block st_restart_nb = { .priority = 192, }; -static struct of_device_id st_reset_of_match[] = { +static const struct of_device_id st_reset_of_match[] = { { .compatible ="st,stih415-restart" , .data = (void *)&stih415_reset,
drivers/power/reset/syscon-reboot.c +1 -1
@@ -76,7 +76,7 @@ static int syscon_reboot_probe(struct platform_device *pdev)return err; } -static struct of_device_id syscon_reboot_of_match[] = { +static const struct of_device_id syscon_reboot_of_match[] = { { .compatible ="syscon-reboot" }, {} };
drivers/power/reset/vexpress-poweroff.c +1 -1
@@ -80,7 +80,7 @@ DEVICE_ATTR(active, S_IRUGO | S_IWUSR, vexpress_reset_active_show,enum vexpress_reset_func {FUNC_RESET ,FUNC_SHUTDOWN ,FUNC_REBOOT }; -static struct of_device_id vexpress_reset_of_match[] = { +static const struct of_device_id vexpress_reset_of_match[] = { { .compatible ="arm,vexpress-reset" , .data = (void *)FUNC_RESET ,
drivers/power/reset/xgene-reboot.c +1 -1
@@ -87,7 +87,7 @@ static int xgene_reboot_probe(struct platform_device *pdev)return err; } -static struct of_device_id xgene_reboot_of_match[] = { +static const struct of_device_id xgene_reboot_of_match[] = { { .compatible ="apm,xgene-reboot" }, {} };
drivers/power/tps65090-charger.c +1 -1
@@ -344,7 +344,7 @@ static int tps65090_charger_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id of_tps65090_charger_match[] = { +static const struct of_device_id of_tps65090_charger_match[] = { { .compatible ="ti,tps65090-charger" , }, {/* end */ } };
Signature · 1 line
2.1.0
Re: [PATCH 06/35 linux-next] power: constify of_device_id array
Quoted 3 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)
Not sure if you really need acks for simple change like this, anyways for vexpress parts in patch 06, 26 and 32
Regards,
Sudeep
Re: [PATCH 06/35 linux-next] power: constify of_device_id array
In reply to Fabian FrederickHi Fabian,
Quoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Thanks, applied:
http://git.infradead.org/battery-2.6.git/commit/8fb0885504cc029bd48877fa89ba91c33c0110b5
-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150320/f070b921/attachment-0001.sig>
PATCH 7/35 char: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/char/hw_random/pasemi-rng.c | 2 +- drivers/char/hw_random/powernv-rng.c | 2 +- drivers/char/hw_random/ppc4xx-rng.c | 2 +- drivers/char/ipmi/ipmi_si_intf.c | 4 ++-- drivers/char/xillybus/xillybus_of.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
drivers/char/hw_random/pasemi-rng.c +1 -1
@@ -133,7 +133,7 @@ static int rng_remove(struct platform_device *dev)return 0 ; } -static struct of_device_id rng_match[] = { +static const struct of_device_id rng_match[] = { { .compatible ="1682m-rng" , }, { .compatible ="pasemi,pwrficient-rng" , }, { },
drivers/char/hw_random/powernv-rng.c +1 -1
@@ -61,7 +61,7 @@ static int powernv_rng_probe(struct platform_device *pdev)return 0 ; } -static struct of_device_id powernv_rng_match[] = { +static const struct of_device_id powernv_rng_match[] = { { .compatible ="ibm,power-rng" ,}, {}, };
drivers/char/hw_random/ppc4xx-rng.c +1 -1
@@ -123,7 +123,7 @@ static int ppc4xx_rng_remove(struct platform_device *dev)return 0 ; } -static struct of_device_id ppc4xx_rng_match[] = { +static const struct of_device_id ppc4xx_rng_match[] = { { .compatible ="ppc4xx-rng" , }, { .compatible ="amcc,ppc460ex-rng" , }, { .compatible ="amcc,ppc440epx-rng" , },
drivers/char/ipmi/ipmi_si_intf.c +2 -2
@@ -2664,7 +2664,7 @@ static struct pci_driver ipmi_pci_driver = { };#endif /* CONFIG_PCI */ -static struct of_device_id ipmi_match[]; +static const struct of_device_id ipmi_match[];static int ipmi_probe (struct platform_device *dev) {#ifdef CONFIG_OF
@@ -2761,7 +2761,7 @@ static int ipmi_remove(struct platform_device *dev)return 0 ; } -static struct of_device_id ipmi_match[] = +static const struct of_device_id ipmi_match[] = { { .type ="ipmi" , .compatible ="ipmi-kcs" , .data = (void *)(unsigned long )SI_KCS },
drivers/char/xillybus/xillybus_of.c +1 -1
@@ -31,7 +31,7 @@ MODULE_LICENSE("GPL v2");static const char xillyname[] ="xillybus_of" ;/* Match table for of_platform binding */ -static struct of_device_id xillybus_of_match[] = { +static const struct of_device_id xillybus_of_match[] = { { .compatible ="xillybus,xillybus-1.00.a" , }, { .compatible ="xlnx,xillybus-1.00.a" , },/* Deprecated */ {}
Signature · 1 line
2.1.0
PATCH 8/35 dma: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/dma/bestcomm/bestcomm.c | 4 ++-- drivers/dma/k3dma.c | 2 +- drivers/dma/mmp_pdma.c | 2 +- drivers/dma/mmp_tdma.c | 2 +- drivers/dma/mpc512x_dma.c | 2 +- drivers/dma/mv_xor.c | 2 +- drivers/dma/sirf-dma.c | 2 +- drivers/dma/sun6i-dma.c | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-)
drivers/dma/bestcomm/bestcomm.c +2 -2
@@ -30,7 +30,7 @@#define DRIVER_NAME "bestcomm-core"/* MPC5200 device tree match tables */ -static struct of_device_id mpc52xx_sram_ids[] = { +static const struct of_device_id mpc52xx_sram_ids[] = { { .compatible ="fsl,mpc5200-sram" , }, { .compatible ="mpc5200-sram" , }, {}
@@ -481,7 +481,7 @@ static int mpc52xx_bcom_remove(struct platform_device *op)return 0 ; } -static struct of_device_id mpc52xx_bcom_of_match[] = { +static const struct of_device_id mpc52xx_bcom_of_match[] = { { .compatible ="fsl,mpc5200-bestcomm" , }, { .compatible ="mpc5200-bestcomm" , }, {},
drivers/dma/k3dma.c +1 -1
@@ -654,7 +654,7 @@ static void k3_dma_free_desc(struct virt_dma_desc *vd)kfree (ds); } -static struct of_device_id k3_pdma_dt_ids[] = { +static const struct of_device_id k3_pdma_dt_ids[] = { { .compatible ="hisilicon,k3-dma-1.0" , }, {} };
drivers/dma/mmp_pdma.c +1 -1
@@ -973,7 +973,7 @@ static int mmp_pdma_chan_init(struct mmp_pdma_device *pdev, int idx, int irq)return 0 ; } -static struct of_device_id mmp_pdma_dt_ids[] = { +static const struct of_device_id mmp_pdma_dt_ids[] = { { .compatible ="marvell,pdma-1.0" , }, {} };
drivers/dma/mmp_tdma.c +1 -1
@@ -613,7 +613,7 @@ struct dma_chan *mmp_tdma_xlate(struct of_phandle_args *dma_spec,return dma_request_channel (mask, mmp_tdma_filter_fn, ¶m); } -static struct of_device_id mmp_tdma_dt_ids[] = { +static const struct of_device_id mmp_tdma_dt_ids[] = { { .compatible ="marvell,adma-1.0" , .data = (void *)MMP_AUD_TDMA }, { .compatible ="marvell,pxa910-squ" , .data = (void *)PXA910_SQU }, {}
drivers/dma/mpc512x_dma.c +1 -1
@@ -1072,7 +1072,7 @@ static int mpc_dma_remove(struct platform_device *op)return 0 ; } -static struct of_device_id mpc_dma_match[] = { +static const struct of_device_id mpc_dma_match[] = { { .compatible ="fsl,mpc5121-dma" , }, { .compatible ="fsl,mpc8308-dma" , }, {},
drivers/dma/mv_xor.c +1 -1
@@ -1249,7 +1249,7 @@ static int mv_xor_remove(struct platform_device *pdev) }#ifdef CONFIG_OF -static struct of_device_id mv_xor_dt_ids[] = { +static const struct of_device_id mv_xor_dt_ids[] = { { .compatible ="marvell,orion-xor" , }, {}, };
drivers/dma/sirf-dma.c +1 -1
@@ -896,7 +896,7 @@ static const struct dev_pm_ops sirfsoc_dma_pm_ops = {SET_SYSTEM_SLEEP_PM_OPS (sirfsoc_dma_pm_suspend, sirfsoc_dma_pm_resume) }; -static struct of_device_id sirfsoc_dma_match[] = { +static const struct of_device_id sirfsoc_dma_match[] = { { .compatible ="sirf,prima2-dmac" , }, { .compatible ="sirf,marco-dmac" , }, {},
drivers/dma/sun6i-dma.c +1 -1
@@ -896,7 +896,7 @@ static struct sun6i_dma_config sun8i_a23_dma_cfg = { .nr_max_vchans = 37, }; -static struct of_device_id sun6i_dma_match[] = { +static const struct of_device_id sun6i_dma_match[] = { { .compatible ="allwinner,sun6i-a31-dma" , .data = &sun6i_a31_dma_cfg }, { .compatible ="allwinner,sun8i-a23-dma" , .data = &sun8i_a23_dma_cfg }, {/* sentinel */ }
Signature · 1 line
2.1.0
Vinod Koul
AppliedRe: [PATCH 08/35 linux-next] dma: constify of_device_id array
Quoted 3 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)
Applied, thanks
Signature · 1 line
~Vinod
PATCH 9/35 iio: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/iio/common/ssp_sensors/ssp_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/common/ssp_sensors/ssp_dev.c +1 -1
@@ -437,7 +437,7 @@ int ssp_queue_ssp_refresh_task(struct ssp_data *data, unsigned int delay) } #ifdef CONFIG_OF -static struct of_device_id ssp_of_match[] = { +static const struct of_device_id ssp_of_match[] = { { .compatible = "samsung,sensorhub-rinato", .data = &ssp_rinato_info,
Signature · 1 line
2.1.0
Jonathan Cameron
maintainerRe: [PATCH 09/35 linux-next] iio: constify of_device_id array
Quoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Applied to the togreg branch of iio.git - initially pushed out as testing for the autobuilders to play with it.
thanks,
Jonathan
Quoted 18 lines
--- drivers/iio/common/ssp_sensors/ssp_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/common/ssp_sensors/ssp_dev.c +1
-1@@ -437,7 +437,7 @@ int ssp_queue_ssp_refresh_task(struct ssp_data *data, unsigned int delay) } #ifdef CONFIG_OF -static struct of_device_id ssp_of_match[] = { +static const struct of_device_id ssp_of_match[] = { { .compatible = "samsung,sensorhub-rinato", .data = &ssp_rinato_info,
PATCH 10/35 misc: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/misc/carma/carma-fpga-program.c | 2 +- drivers/misc/carma/carma-fpga.c | 2 +- drivers/misc/lis3lv02d/lis3lv02d_i2c.c | 2 +- drivers/misc/lis3lv02d/lis3lv02d_spi.c | 2 +- drivers/misc/sram.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
drivers/misc/carma/carma-fpga-program.c +1 -1
@@ -1142,7 +1142,7 @@ out_return:return ret; } -static struct of_device_id fpga_of_match[] = { +static const struct of_device_id fpga_of_match[] = { { .compatible ="carma,fpga-programmer" , }, {}, };
drivers/misc/carma/carma-fpga.c +1 -1
@@ -1486,7 +1486,7 @@ static int data_of_remove(struct platform_device *op)return 0 ; } -static struct of_device_id data_of_match[] = { +static const struct of_device_id data_of_match[] = { { .compatible ="carma,carma-fpga" , }, {}, };
drivers/misc/lis3lv02d/lis3lv02d_i2c.c +1 -1
@@ -106,7 +106,7 @@ static union axis_conversion lis3lv02d_axis_map = { .as_array = { LIS3_DEV_X, LIS3_DEV_Y, LIS3_DEV_Z } };#ifdef CONFIG_OF -static struct of_device_id lis3lv02d_i2c_dt_ids[] = { +static const struct of_device_id lis3lv02d_i2c_dt_ids[] = { { .compatible ="st,lis3lv02d" }, {} };
drivers/misc/lis3lv02d/lis3lv02d_spi.c +1 -1
@@ -61,7 +61,7 @@ static union axis_conversion lis3lv02d_axis_normal = { .as_array = { 1, 2, 3 } };#ifdef CONFIG_OF -static struct of_device_id lis302dl_spi_dt_ids[] = { +static const struct of_device_id lis302dl_spi_dt_ids[] = { { .compatible ="st,lis302dl-spi" }, {} };
drivers/misc/sram.c +1 -1
@@ -205,7 +205,7 @@ static int sram_remove(struct platform_device *pdev) }#ifdef CONFIG_OF -static struct of_device_id sram_dt_ids[] = { +static const struct of_device_id sram_dt_ids[] = { { .compatible ="mmio-sram" }, {} };
Signature · 1 line
2.1.0
PATCH 11/35 usb: gadget: constify of_device_id array
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/usb/gadget/udc/pxa27x_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/udc/pxa27x_udc.c +1 -1
@@ -2387,7 +2387,7 @@ static struct pxa_udc memory = { };#if defined(CONFIG_OF ) -static struct of_device_id udc_pxa_dt_ids[] = { +static const struct of_device_id udc_pxa_dt_ids[] = { { .compatible ="marvell,pxa270-udc" }, {} };
Signature · 1 line
2.1.0
PATCH 12/35 mtd: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/mtd/devices/docg3.c | 2 +- drivers/mtd/maps/physmap_of.c | 4 ++-- drivers/mtd/nand/mpc5121_nfc.c | 2 +- drivers/mtd/spi-nor/fsl-quadspi.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
drivers/mtd/devices/docg3.c +1 -1
@@ -2117,7 +2117,7 @@ static int __exit docg3_release(struct platform_device *pdev) }#ifdef CONFIG_OF -static struct of_device_id docg3_dt_ids[] = { +static const struct of_device_id docg3_dt_ids[] = { { .compatible ="m-systems,diskonchip-g3" }, {} };
drivers/mtd/maps/physmap_of.c +2 -2
@@ -147,7 +147,7 @@ static void of_free_probes(const char * const *probes)kfree (probes); } -static struct of_device_id of_flash_match[]; +static const struct of_device_id of_flash_match[];static int of_flash_probe (struct platform_device *dev) {const char *const *part_probe_types;
@@ -327,7 +327,7 @@ err_flash_remove:return err; } -static struct of_device_id of_flash_match[] = { +static const struct of_device_id of_flash_match[] = { { .compatible ="cfi-flash" , .data = (void *)"cfi_probe" ,
drivers/mtd/nand/mpc5121_nfc.c +1 -1
@@ -837,7 +837,7 @@ static int mpc5121_nfc_remove(struct platform_device *op)return 0 ; } -static struct of_device_id mpc5121_nfc_match[] = { +static const struct of_device_id mpc5121_nfc_match[] = { { .compatible ="fsl,mpc5121-nfc" , }, {}, };
drivers/mtd/spi-nor/fsl-quadspi.c +1 -1
@@ -663,7 +663,7 @@ static int fsl_qspi_nor_setup_last(struct fsl_qspi *q)return 0 ; } -static struct of_device_id fsl_qspi_dt_ids[] = { +static const struct of_device_id fsl_qspi_dt_ids[] = { { .compatible ="fsl,vf610-qspi" , .data = (void *)&vybrid_data, }, { .compatible ="fsl,imx6sx-qspi" , .data = (void *)&imx6sx_data, }, {/* sentinel */ }
Signature · 1 line
2.1.0
Brian Norris
AppliedRe: [PATCH 12/35 linux-next] mtd: constify of_device_id array
Quoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Applied to l2-mtd.git.
PATCH 13/35 w1: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/w1/masters/mxc_w1.c | 2 +- drivers/w1/masters/omap_hdq.c | 2 +- drivers/w1/masters/w1-gpio.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/w1/masters/mxc_w1.c +1 -1
@@ -166,7 +166,7 @@ static int mxc_w1_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id mxc_w1_dt_ids[] = { +static const struct of_device_id mxc_w1_dt_ids[] = { { .compatible ="fsl,imx21-owire" }, {/* sentinel */ } };
drivers/w1/masters/omap_hdq.c +1 -1
@@ -72,7 +72,7 @@ struct hdq_data {static int omap_hdq_probe (struct platform_device *pdev);static int omap_hdq_remove (struct platform_device *pdev); -static struct of_device_id omap_hdq_dt_ids[] = { +static const struct of_device_id omap_hdq_dt_ids[] = { { .compatible ="ti,omap3-1w" }, {} };
drivers/w1/masters/w1-gpio.c +1 -1
@@ -68,7 +68,7 @@ static u8 w1_gpio_read_bit(void *data) }#if defined(CONFIG_OF ) -static struct of_device_id w1_gpio_dt_ids[] = { +static const struct of_device_id w1_gpio_dt_ids[] = { { .compatible ="w1-gpio" }, {} };
Signature · 1 line
2.1.0
PATCH 14/35 ide: pmac: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/ide/pmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ide/pmac.c +1 -1
@@ -1370,7 +1370,7 @@ static void pmac_ide_macio_mb_event(struct macio_dev* mdev, int mb_state)#endif /* CONFIG_PMAC_MEDIABAY */ -static struct of_device_id pmac_ide_macio_match[] = +static const struct of_device_id pmac_ide_macio_match[] = { { .name ="IDE" ,
Signature · 1 line
2.1.0
PATCH 15/35 spi: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/spi/spi-mpc512x-psc.c | 2 +- drivers/spi/spi-octeon.c | 2 +- drivers/spi/spi-st-ssc4.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/spi/spi-mpc512x-psc.c +1 -1
@@ -588,7 +588,7 @@ static int mpc512x_psc_spi_of_remove(struct platform_device *op)return mpc512x_psc_spi_do_remove (&op->dev); } -static struct of_device_id mpc512x_psc_spi_of_match[] = { +static const struct of_device_id mpc512x_psc_spi_of_match[] = { { .compatible ="fsl,mpc5121-psc-spi" , }, {}, };
drivers/spi/spi-octeon.c +1 -1
@@ -238,7 +238,7 @@ static int octeon_spi_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id octeon_spi_match[] = { +static const struct of_device_id octeon_spi_match[] = { { .compatible ="cavium,octeon-3010-spi" , }, {}, };
drivers/spi/spi-st-ssc4.c +1 -1
@@ -482,7 +482,7 @@ static const struct dev_pm_ops spi_st_pm = { SET_RUNTIME_PM_OPS(spi_st_runtime_suspend, spi_st_runtime_resume, NULL) }; -static struct of_device_id stm_spi_match[] = { +static const struct of_device_id stm_spi_match[] = { { .compatible ="st,comms-ssc4-spi" , }, {}, };
Signature · 1 line
2.1.0
Re: [PATCH 15/35 linux-next] spi: constify of_device_id array
Quoted 2 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)
Applied, thanks.
PATCH 16/35 video: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/video/backlight/gpio_backlight.c | 2 +- drivers/video/backlight/pwm_bl.c | 2 +- drivers/video/fbdev/fsl-diu-fb.c | 2 +- drivers/video/fbdev/grvga.c | 2 +- drivers/video/fbdev/mb862xx/mb862xxfbdrv.c | 2 +- drivers/video/fbdev/ocfb.c | 2 +- drivers/video/fbdev/platinumfb.c | 2 +- drivers/video/fbdev/xilinxfb.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-)
drivers/video/backlight/gpio_backlight.c +1 -1
@@ -142,7 +142,7 @@ static int gpio_backlight_probe(struct platform_device *pdev) }#ifdef CONFIG_OF -static struct of_device_id gpio_backlight_of_match[] = { +static const struct of_device_id gpio_backlight_of_match[] = { { .compatible ="gpio-backlight" }, {/* sentinel */ } };
drivers/video/backlight/pwm_bl.c +1 -1
@@ -178,7 +178,7 @@ static int pwm_backlight_parse_dt(struct device *dev,return 0 ; } -static struct of_device_id pwm_backlight_of_match[] = { +static const struct of_device_id pwm_backlight_of_match[] = { { .compatible ="pwm-backlight" }, { } };
drivers/video/fbdev/fsl-diu-fb.c +1 -1
@@ -1865,7 +1865,7 @@ static int __init fsl_diu_setup(char *options) }#endif -static struct of_device_id fsl_diu_match[] = { +static const struct of_device_id fsl_diu_match[] = { #ifdef CONFIG_PPC_MPC512x { .compatible ="fsl,mpc5121-diu" ,
drivers/video/fbdev/grvga.c +1 -1
@@ -535,7 +535,7 @@ static int grvga_remove(struct platform_device *device)return 0 ; } -static struct of_device_id svgactrl_of_match[] = { +static const struct of_device_id svgactrl_of_match[] = { { .name ="GAISLER_SVGACTRL" , },
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c +1 -1
@@ -821,7 +821,7 @@ static int of_platform_mb862xx_remove(struct platform_device *ofdev)/* * common types */ -static struct of_device_id of_platform_mb862xx_tbl[] = { +static const struct of_device_id of_platform_mb862xx_tbl[] = { { .compatible ="fujitsu,MB86276" , }, { .compatible ="fujitsu,lime" , }, { .compatible ="fujitsu,MB86277" , },
drivers/video/fbdev/ocfb.c +1 -1
@@ -395,7 +395,7 @@ static int ocfb_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id ocfb_match[] = { +static const struct of_device_id ocfb_match[] = { { .compatible ="opencores,ocfb" , }, {}, };
drivers/video/fbdev/platinumfb.c +1 -1
@@ -667,7 +667,7 @@ static int platinumfb_remove(struct platform_device* odev)return 0 ; } -static struct of_device_id platinumfb_match[] = +static const struct of_device_id platinumfb_match[] = { { .name ="platinum" ,
drivers/video/fbdev/xilinxfb.c +1 -1
@@ -482,7 +482,7 @@ static int xilinxfb_of_remove(struct platform_device *op) }/* Match table for of_platform binding */ -static struct of_device_id xilinxfb_of_match[] = { +static const struct of_device_id xilinxfb_of_match[] = { { .compatible ="xlnx,xps-tft-1.00.a" , }, { .compatible ="xlnx,xps-tft-2.00.a" , }, { .compatible ="xlnx,xps-tft-2.01.a" , },
Signature · 1 line
2.1.0
Re: [PATCH 16/35 linux-next] video: constify of_device_id array
Quoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick<[email protected]>
...
Quoted 1 line
drivers/video/fbdev/fsl-diu-fb.c | 2 +-
For this driver:
PATCH 17/35 coresight-replicator: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/coresight/coresight-replicator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/coresight/coresight-replicator.c +1 -1
@@ -107,7 +107,7 @@ static int replicator_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id replicator_match[] = { +static const struct of_device_id replicator_match[] = { {.compatible ="arm,coresight-replicator" }, {} };
Signature · 1 line
2.1.0
PATCH 18/35 macintosh: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/macintosh/mediabay.c | 2 +- drivers/macintosh/rack-meter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/macintosh/mediabay.c +1 -1
@@ -707,7 +707,7 @@ static const struct mb_ops keylargo_mb_ops = {* Therefore we do it all by polling the media bay once each tick. */ -static struct of_device_id media_bay_match[] = +static const struct of_device_id media_bay_match[] = { { .name ="media-bay" ,
drivers/macintosh/rack-meter.c +1 -1
@@ -578,7 +578,7 @@ static int rackmeter_shutdown(struct macio_dev* mdev)return 0 ; } -static struct of_device_id rackmeter_match[] = { +static const struct of_device_id rackmeter_match[] = { { .name ="i2s" }, { } };
Signature · 1 line
2.1.0
PATCH 19/35 virtio_mmio: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/virtio/virtio_mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/virtio_mmio.c +1 -1
@@ -671,7 +671,7 @@ static void vm_unregister_cmdline_devices(void)/* Platform driver */ -static struct of_device_id virtio_mmio_match[] = { +static const struct of_device_id virtio_mmio_match[] = { { .compatible ="virtio,mmio" , }, {}, };
Signature · 1 line
2.1.0
PATCH 19/35 virtio_mmio: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/virtio/virtio_mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/virtio_mmio.c +1 -1
@@ -671,7 +671,7 @@ static void vm_unregister_cmdline_devices(void)/* Platform driver */ -static struct of_device_id virtio_mmio_match[] = { +static const struct of_device_id virtio_mmio_match[] = { { .compatible ="virtio,mmio" , }, {}, };
Signature · 1 line
2.1.0
Re: [PATCH 19/35 linux-next] virtio_mmio: constify of_device_id array
Quoted 13 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>--- drivers/virtio/virtio_mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/virtio/virtio_mmio.c +0
-0
drivers/virtio/virtio_mmio.c static void vm_unregister_cmdline_devices(void) · line 677
Quoted 8 lines
drivers/virtio/virtio_mmio.c +1
-1@@ -671,7 +671,7 @@ static void vm_unregister_cmdline_devices(void)/* Platform driver */ -static struct of_device_id virtio_mmio_match[] = { +static const struct of_device_id virtio_mmio_match[] = { { .compatible ="virtio,mmio" , }, {}, };
Thanks!
Pawel
PATCH 20/35 swim3: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/block/swim3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/swim3.c +1 -1
@@ -1245,7 +1245,7 @@ static int swim3_attach(struct macio_dev *mdev,return 0 ; } -static struct of_device_id swim3_match[] = +static const struct of_device_id swim3_match[] = { { .name ="swim3" ,
Signature · 1 line
2.1.0
PATCH 21/35 mfd: constify of_device_id array
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/mfd/hi6421-pmic-core.c | 2 +- drivers/mfd/rk808.c | 2 +- drivers/mfd/twl4030-power.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/mfd/hi6421-pmic-core.c +1 -1
@@ -93,7 +93,7 @@ static int hi6421_pmic_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id of_hi6421_pmic_match_tbl[] = { +static const struct of_device_id of_hi6421_pmic_match_tbl[] = { { .compatible ="hisilicon,hi6421-pmic" , }, { }, };
drivers/mfd/rk808.c +1 -1
@@ -246,7 +246,7 @@ static int rk808_remove(struct i2c_client *client)return 0 ; } -static struct of_device_id rk808_of_match[] = { +static const struct of_device_id rk808_of_match[] = { { .compatible ="rockchip,rk808" }, { }, };
drivers/mfd/twl4030-power.c +1 -1
@@ -829,7 +829,7 @@ static struct twl4030_power_data osc_off_idle = { .board_config = osc_off_rconfig, }; -static struct of_device_id twl4030_power_of_match[] = { +static const struct of_device_id twl4030_power_of_match[] = { { .compatible ="ti,twl4030-power" , },
Signature · 1 line
2.1.0
Lee Jones
AppliedRe: [PATCH 21/35 linux-next] mfd: constify of_device_id array
Quoted 9 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>--- drivers/mfd/hi6421-pmic-core.c | 2 +- drivers/mfd/rk808.c | 2 +- drivers/mfd/twl4030-power.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
Applied, thanks.
Quoted 39 lines
drivers/mfd/hi6421-pmic-core.c +1
-1@@ -93,7 +93,7 @@ static int hi6421_pmic_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id of_hi6421_pmic_match_tbl[] = { +static const struct of_device_id of_hi6421_pmic_match_tbl[] = { { .compatible ="hisilicon,hi6421-pmic" , }, { }, };drivers/mfd/rk808.c +1
-1@@ -246,7 +246,7 @@ static int rk808_remove(struct i2c_client *client)return 0 ; } -static struct of_device_id rk808_of_match[] = { +static const struct of_device_id rk808_of_match[] = { { .compatible ="rockchip,rk808" }, { }, };drivers/mfd/twl4030-power.c +1
-1@@ -829,7 +829,7 @@ static struct twl4030_power_data osc_off_idle = { .board_config = osc_off_rconfig, }; -static struct of_device_id twl4030_power_of_match[] = { +static const struct of_device_id twl4030_power_of_match[] = { { .compatible ="ti,twl4030-power" , },
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH 22/35 soc: ti: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/soc/ti/knav_dma.c | 2 +- drivers/soc/ti/knav_qmss_queue.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/soc/ti/knav_dma.c +1 -1
@@ -791,7 +791,7 @@ static int knav_dma_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id of_match[] = { +static const struct of_device_id of_match[] = { { .compatible ="ti,keystone-navigator-dma" , }, {}, };
drivers/soc/ti/knav_qmss_queue.c +1 -1
@@ -1803,7 +1803,7 @@ static int knav_queue_remove(struct platform_device *pdev) }/* Match table for of_platform binding */ -static struct of_device_id keystone_qmss_of_match[] = { +static const struct of_device_id keystone_qmss_of_match[] = { { .compatible ="ti,keystone-navigator-qmss" , }, {}, };
Signature · 1 line
2.1.0
PATCH 23/35 constify of_device_id array
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/media/i2c/adv7604.c | 2 +- drivers/media/platform/fsl-viu.c | 2 +- drivers/media/platform/soc_camera/rcar_vin.c | 2 +- drivers/media/rc/gpio-ir-recv.c | 2 +- drivers/media/rc/ir-hix5hd2.c | 2 +- drivers/media/rc/st_rc.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
drivers/media/i2c/adv7604.c +1 -1
@@ -2598,7 +2598,7 @@ static struct i2c_device_id adv7604_i2c_id[] = { };MODULE_DEVICE_TABLE (i2c, adv7604_i2c_id); -static struct of_device_id adv7604_of_id[]__maybe_unused = { +static const struct of_device_id adv7604_of_id[]__maybe_unused = { { .compatible ="adi,adv7611" , .data = &adv7604_chip_info[ADV7611 ] }, { } };
drivers/media/platform/fsl-viu.c +1 -1
@@ -1664,7 +1664,7 @@ static int viu_resume(struct platform_device *op)/* * Initialization and module stuff */ -static struct of_device_id mpc512x_viu_of_match[] = { +static const struct of_device_id mpc512x_viu_of_match[] = { { .compatible ="fsl,mpc5121-viu" , },
drivers/media/platform/soc_camera/rcar_vin.c +1 -1
@@ -1818,7 +1818,7 @@ static struct soc_camera_host_ops rcar_vin_host_ops = { };#ifdef CONFIG_OF -static struct of_device_id rcar_vin_of_table[] = { +static const struct of_device_id rcar_vin_of_table[] = { { .compatible ="renesas,vin-r8a7794" , .data = (void *)RCAR_GEN2 }, { .compatible ="renesas,vin-r8a7793" , .data = (void *)RCAR_GEN2 }, { .compatible = "renesas,vin-r8a7791", .data = (void *)RCAR_GEN2 },
drivers/media/rc/gpio-ir-recv.c +1 -1
@@ -59,7 +59,7 @@ static int gpio_ir_recv_get_devtree_pdata(struct device *dev,return 0 ; } -static struct of_device_id gpio_ir_recv_of_match[] = { +static const struct of_device_id gpio_ir_recv_of_match[] = { { .compatible ="gpio-ir-receiver" , }, { }, };
drivers/media/rc/ir-hix5hd2.c +1 -1
@@ -327,7 +327,7 @@ static int hix5hd2_ir_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(hix5hd2_ir_pm_ops, hix5hd2_ir_suspend, hix5hd2_ir_resume); -static struct of_device_id hix5hd2_ir_table[] = { +static const struct of_device_id hix5hd2_ir_table[] = { { .compatible ="hisilicon,hix5hd2-ir" , }, {}, };
drivers/media/rc/st_rc.c +1 -1
@@ -381,7 +381,7 @@ static int st_rc_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(st_rc_pm_ops, st_rc_suspend, st_rc_resume);#ifdef CONFIG_OF -static struct of_device_id st_rc_match[] = { +static const struct of_device_id st_rc_match[] = { { .compatible ="st,comms-irb" , }, {}, };
Signature · 1 line
2.1.0
Hi Fabian
Quoted 5 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>---
...
Quoted 1 line
drivers/media/rc/st_rc.c | 2 +-
For this driver
Thanks
PATCH 24/35 Input: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/input/misc/palmas-pwrbutton.c | 2 +- drivers/input/misc/regulator-haptic.c | 2 +- drivers/input/misc/tps65218-pwrbutton.c | 2 +- drivers/input/touchscreen/ar1021_i2c.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/input/misc/palmas-pwrbutton.c +1 -1
@@ -304,7 +304,7 @@ static SIMPLE_DEV_PM_OPS(palmas_pwron_pm, palmas_pwron_suspend, palmas_pwron_resume);#ifdef CONFIG_OF -static struct of_device_id of_palmas_pwr_match[] = { +static const struct of_device_id of_palmas_pwr_match[] = { { .compatible ="ti,palmas-pwrbutton" }, { }, };
drivers/input/misc/regulator-haptic.c +1 -1
@@ -245,7 +245,7 @@ static int __maybe_unused regulator_haptic_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(regulator_haptic_pm_ops, regulator_haptic_suspend, regulator_haptic_resume); -static struct of_device_id regulator_haptic_dt_match[] = { +static const struct of_device_id regulator_haptic_dt_match[] = { { .compatible ="regulator-haptic" }, {/* sentinel */ }, };
drivers/input/misc/tps65218-pwrbutton.c +1 -1
@@ -106,7 +106,7 @@ static int tps65218_pwron_probe(struct platform_device *pdev)return 0 ; } -static struct of_device_id of_tps65218_pwr_match[] = { +static const struct of_device_id of_tps65218_pwr_match[] = { { .compatible ="ti,tps65218-pwrbutton" }, { }, };
drivers/input/touchscreen/ar1021_i2c.c +1 -1
@@ -157,7 +157,7 @@ static const struct i2c_device_id ar1021_i2c_id[] = { };MODULE_DEVICE_TABLE (i2c, ar1021_i2c_id); -static struct of_device_id ar1021_i2c_of_match[] = { +static const struct of_device_id ar1021_i2c_of_match[] = { { .compatible ="microchip,ar1021-i2c" , }, { } };
Signature · 1 line
2.1.0
Re: [PATCH 24/35 linux-next] Input: constify of_device_id array
Quoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Applied, thank you.
Quoted 62 lines
--- drivers/input/misc/palmas-pwrbutton.c | 2 +- drivers/input/misc/regulator-haptic.c | 2 +- drivers/input/misc/tps65218-pwrbutton.c | 2 +- drivers/input/touchscreen/ar1021_i2c.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)drivers/input/misc/palmas-pwrbutton.c +1
-1@@ -304,7 +304,7 @@ static SIMPLE_DEV_PM_OPS(palmas_pwron_pm, palmas_pwron_suspend, palmas_pwron_resume);#ifdef CONFIG_OF -static struct of_device_id of_palmas_pwr_match[] = { +static const struct of_device_id of_palmas_pwr_match[] = { { .compatible ="ti,palmas-pwrbutton" }, { }, };drivers/input/misc/regulator-haptic.c +1
-1@@ -245,7 +245,7 @@ static int __maybe_unused regulator_haptic_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(regulator_haptic_pm_ops, regulator_haptic_suspend, regulator_haptic_resume); -static struct of_device_id regulator_haptic_dt_match[] = { +static const struct of_device_id regulator_haptic_dt_match[] = { { .compatible ="regulator-haptic" }, {/* sentinel */ }, };drivers/input/misc/tps65218-pwrbutton.c +1
-1@@ -106,7 +106,7 @@ static int tps65218_pwron_probe(struct platform_device *pdev)return 0 ; } -static struct of_device_id of_tps65218_pwr_match[] = { +static const struct of_device_id of_tps65218_pwr_match[] = { { .compatible ="ti,tps65218-pwrbutton" }, { }, };drivers/input/touchscreen/ar1021_i2c.c +1
-1@@ -157,7 +157,7 @@ static const struct i2c_device_id ar1021_i2c_id[] = { };MODULE_DEVICE_TABLE (i2c, ar1021_i2c_id); -static struct of_device_id ar1021_i2c_of_match[] = { +static const struct of_device_id ar1021_i2c_of_match[] = { { .compatible ="microchip,ar1021-i2c" , }, { } };Signature · 1 line
2.1.0
Signature · 1 line
Dmitry
PATCH 25/35 PCI: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/gpio/gpio-mpc8xxx.c | 2 +- drivers/gpio/gpio-octeon.c | 2 +- drivers/gpio/gpio-tz1090-pdc.c | 2 +- drivers/gpio/gpio-tz1090.c | 2 +- drivers/gpio/gpio-zynq.c | 2 +- drivers/pci/host/pci-rcar-gen2.c | 2 +- drivers/pci/host/pcie-xilinx.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
drivers/gpio/gpio-mpc8xxx.c +1 -1
@@ -334,7 +334,7 @@ static struct irq_domain_ops mpc8xxx_gpio_irq_ops = { .xlate = irq_domain_xlate_twocell, }; -static struct of_device_id mpc8xxx_gpio_ids[] = { +static const struct of_device_id mpc8xxx_gpio_ids[] = { { .compatible ="fsl,mpc8349-gpio" , }, { .compatible ="fsl,mpc8572-gpio" , }, { .compatible ="fsl,mpc8610-gpio" , },
drivers/gpio/gpio-octeon.c +1 -1
@@ -133,7 +133,7 @@ static int octeon_gpio_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id octeon_gpio_match[] = { +static const struct of_device_id octeon_gpio_match[] = { { .compatible ="cavium,octeon-3860-gpio" , },
drivers/gpio/gpio-tz1090-pdc.c +1 -1
@@ -222,7 +222,7 @@ static int tz1090_pdc_gpio_probe(struct platform_device *pdev)return 0 ; } -static struct of_device_id tz1090_pdc_gpio_of_match[] = { +static const struct of_device_id tz1090_pdc_gpio_of_match[] = { { .compatible ="img,tz1090-pdc-gpio" }, { }, };
drivers/gpio/gpio-tz1090.c +1 -1
@@ -585,7 +585,7 @@ static int tz1090_gpio_probe(struct platform_device *pdev)return 0 ; } -static struct of_device_id tz1090_gpio_of_match[] = { +static const struct of_device_id tz1090_gpio_of_match[] = { { .compatible ="img,tz1090-gpio" }, { }, };
drivers/gpio/gpio-zynq.c +1 -1
@@ -695,7 +695,7 @@ static int zynq_gpio_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id zynq_gpio_of_match[] = { +static const struct of_device_id zynq_gpio_of_match[] = { { .compatible ="xlnx,zynq-gpio-1.0" , }, {/* end of table */ } };
drivers/pci/host/pci-rcar-gen2.c +1 -1
@@ -356,7 +356,7 @@ static int rcar_pci_probe(struct platform_device *pdev)return 0 ; } -static struct of_device_id rcar_pci_of_match[] = { +static const struct of_device_id rcar_pci_of_match[] = { { .compatible ="renesas,pci-r8a7790" , }, { .compatible ="renesas,pci-r8a7791" , }, { },
drivers/pci/host/pcie-xilinx.c +1 -1
@@ -869,7 +869,7 @@ static int xilinx_pcie_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id xilinx_pcie_of_match[] = { +static const struct of_device_id xilinx_pcie_of_match[] = { { .compatible ="xlnx,axi-pcie-host-1.00.a" , }, {} };
Signature · 1 line
2.1.0
Re: [PATCH 25/35 linux-next] PCI: constify of_device_id array
Hello.
Quoted 10 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>--- drivers/gpio/gpio-mpc8xxx.c | 2 +- drivers/gpio/gpio-octeon.c | 2 +- drivers/gpio/gpio-tz1090-pdc.c | 2 +- drivers/gpio/gpio-tz1090.c | 2 +- drivers/gpio/gpio-zynq.c | 2 +-
What the GPIO driver changes are doing here, in the PCI patch?
Quoted 3 lines
drivers/pci/host/pci-rcar-gen2.c | 2 +- drivers/pci/host/pcie-xilinx.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
[...]
WBR, Sergei
Re: [PATCH 25/35 linux-next] PCI: constify of_device_id array
Quoted 21 lines
On 16 March 2015 at 21:23 Sergei Shtylyov <[email protected]> wrote:
Hello.
Quoted 10 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>---
? ?drivers/gpio/gpio-mpc8xxx.c? ? ? | 2 +- ? ?drivers/gpio/gpio-octeon.c? ? ? ?| 2 +- ? ?drivers/gpio/gpio-tz1090-pdc.c? ?| 2 +- ? ?drivers/gpio/gpio-tz1090.c? ? ? ?| 2 +- ? ?drivers/gpio/gpio-zynq.c? ? ? ? ?| 2 +-
Quoted 1 line
? ? ?What the GPIO driver changes are doing here, in the PCI patch?
Nice catch :) I'll split that patch and only send those to avoid too much noise.
Thanks,
Fabian
Quoted 9 lines
Quoted 4 lines
? ?drivers/pci/host/pci-rcar-gen2.c | 2 +- ? ?drivers/pci/host/pcie-xilinx.c? ?| 2 +- ? ?7 files changed, 7 insertions(+), 7 deletions(-)
[...]
WBR, Sergei
PATCH 26/35 hwmon: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/hwmon/pwm-fan.c | 2 +- drivers/hwmon/vexpress.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/hwmon/pwm-fan.c +1 -1
@@ -322,7 +322,7 @@ static int pwm_fan_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(pwm_fan_pm, pwm_fan_suspend, pwm_fan_resume); -static struct of_device_id of_pwm_fan_match[] = { +static const struct of_device_id of_pwm_fan_match[] = { { .compatible ="pwm-fan" , }, {}, };
drivers/hwmon/vexpress.c +1 -1
@@ -193,7 +193,7 @@ static struct vexpress_hwmon_type vexpress_hwmon_energy = { }, }; -static struct of_device_id vexpress_hwmon_of_match[] = { +static const struct of_device_id vexpress_hwmon_of_match[] = { #if !defined(CONFIG_REGULATOR_VEXPRESS) { .compatible ="arm,vexpress-volt" ,
Signature · 1 line
2.1.0
Re: [PATCH 26/35 linux-next] hwmon: constify of_device_id array
Quoted 5 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>---
Applied to hwmon-next.
Thanks,
Guenter
PATCH 27/35 reset: sti: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/reset/sti/reset-stih407.c | 2 +- drivers/reset/sti/reset-stih415.c | 2 +- drivers/reset/sti/reset-stih416.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/reset/sti/reset-stih407.c +1 -1
@@ -126,7 +126,7 @@ static const struct syscfg_reset_controller_data stih407_picophyreset_controller .channels = stih407_picophyresets, }; -static struct of_device_id stih407_reset_match[] = { +static const struct of_device_id stih407_reset_match[] = { { .compatible ="st,stih407-powerdown" , .data = &stih407_powerdown_controller,
drivers/reset/sti/reset-stih415.c +1 -1
@@ -89,7 +89,7 @@ static struct syscfg_reset_controller_data stih415_softreset_controller = { .channels = stih415_softresets, }; -static struct of_device_id stih415_reset_match[] = { +static const struct of_device_id stih415_reset_match[] = { { .compatible ="st,stih415-powerdown" , .data = &stih415_powerdown_controller, }, { .compatible ="st,stih415-softreset" ,
drivers/reset/sti/reset-stih416.c +1 -1
@@ -120,7 +120,7 @@ static struct syscfg_reset_controller_data stih416_softreset_controller = { .channels = stih416_softresets, }; -static struct of_device_id stih416_reset_match[] = { +static const struct of_device_id stih416_reset_match[] = { { .compatible ="st,stih416-powerdown" , .data = &stih416_powerdown_controller, }, { .compatible ="st,stih416-softreset" ,
Signature · 1 line
2.1.0
Re: [PATCH 27/35 linux-next] reset: sti: constify of_device_id array
Hi Fabian
Quoted 41 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>--- drivers/reset/sti/reset-stih407.c | 2 +- drivers/reset/sti/reset-stih415.c | 2 +- drivers/reset/sti/reset-stih416.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)drivers/reset/sti/reset-stih407.c +1
-1@@ -126,7 +126,7 @@ static const struct syscfg_reset_controller_data stih407_picophyreset_controller .channels = stih407_picophyresets, }; -static struct of_device_id stih407_reset_match[] = { +static const struct of_device_id stih407_reset_match[] = { { .compatible ="st,stih407-powerdown" , .data = &stih407_powerdown_controller,drivers/reset/sti/reset-stih415.c +1
-1@@ -89,7 +89,7 @@ static struct syscfg_reset_controller_data stih415_softreset_controller = { .channels = stih415_softresets, }; -static struct of_device_id stih415_reset_match[] = { +static const struct of_device_id stih415_reset_match[] = { { .compatible ="st,stih415-powerdown" , .data = &stih415_powerdown_controller, }, { .compatible ="st,stih415-softreset" ,drivers/reset/sti/reset-stih416.c +0
-0
drivers/reset/sti/reset-stih416.c static struct syscfg_reset_controller_data stih416_softreset_controller = { · line 126
Quoted 8 lines
drivers/reset/sti/reset-stih416.c +1
-1@@ -120,7 +120,7 @@ static struct syscfg_reset_controller_data stih416_softreset_controller = { .channels = stih416_softresets, }; -static struct of_device_id stih416_reset_match[] = { +static const struct of_device_id stih416_reset_match[] = { { .compatible ="st,stih416-powerdown" , .data = &stih416_powerdown_controller, }, { .compatible ="st,stih416-softreset" ,
Thanks
Re: [PATCH 27/35 linux-next] reset: sti: constify of_device_id array
In reply to Fabian FrederickQuoted 11 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>--- drivers/reset/sti/reset-stih407.c | 2 +- drivers/reset/sti/reset-stih415.c | 2 +- drivers/reset/sti/reset-stih416.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
Thanks!
Maxime
Re: [PATCH 27/35 linux-next] reset: sti: constify of_device_id array
In reply to Fabian FrederickHi Fabian,
Am Montag, den 16.03.2015, 20:54 +0100 schrieb Fabian Frederick:
Quoted 41 lines
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>--- drivers/reset/sti/reset-stih407.c | 2 +- drivers/reset/sti/reset-stih415.c | 2 +- drivers/reset/sti/reset-stih416.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)drivers/reset/sti/reset-stih407.c +1
-1@@ -126,7 +126,7 @@ static const struct syscfg_reset_controller_data stih407_picophyreset_controller .channels = stih407_picophyresets, }; -static struct of_device_id stih407_reset_match[] = { +static const struct of_device_id stih407_reset_match[] = { { .compatible ="st,stih407-powerdown" , .data = &stih407_powerdown_controller,drivers/reset/sti/reset-stih415.c +1
-1@@ -89,7 +89,7 @@ static struct syscfg_reset_controller_data stih415_softreset_controller = { .channels = stih415_softresets, }; -static struct of_device_id stih415_reset_match[] = { +static const struct of_device_id stih415_reset_match[] = { { .compatible ="st,stih415-powerdown" , .data = &stih415_powerdown_controller, }, { .compatible ="st,stih415-softreset" ,drivers/reset/sti/reset-stih416.c +0
-0
drivers/reset/sti/reset-stih416.c static struct syscfg_reset_controller_data stih416_softreset_controller = { · line 126
Quoted 8 lines
drivers/reset/sti/reset-stih416.c +1
-1@@ -120,7 +120,7 @@ static struct syscfg_reset_controller_data stih416_softreset_controller = { .channels = stih416_softresets, }; -static struct of_device_id stih416_reset_match[] = { +static const struct of_device_id stih416_reset_match[] = { { .compatible ="st,stih416-powerdown" , .data = &stih416_powerdown_controller, }, { .compatible ="st,stih416-softreset" ,
Applied, thanks!
regards
Philipp
PATCH 28/35 uio: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/uio/uio_pdrv_genirq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/uio/uio_pdrv_genirq.c +1 -1
@@ -252,7 +252,7 @@ static const struct dev_pm_ops uio_pdrv_genirq_dev_pm_ops = { };#ifdef CONFIG_OF -static struct of_device_id uio_of_genirq_match[] = { +static const struct of_device_id uio_of_genirq_match[] = { {/* This is filled with module_parm */ }, {/* Sentinel */ }, };
Signature · 1 line
2.1.0
PATCH 29/35 gpu: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/gpu/drm/armada/armada_crtc.c | 2 +- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 2 +- drivers/gpu/drm/exynos/exynos_hdmi.c | 2 +- drivers/gpu/drm/exynos/exynos_mixer.c | 2 +- drivers/gpu/drm/panel/panel-ld9040.c | 2 +- drivers/gpu/drm/panel/panel-s6e8aa0.c | 2 +- drivers/gpu/drm/sti/sti_dvo.c | 2 +- drivers/gpu/drm/sti/sti_hqvdp.c | 2 +- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 4 ++-- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 2 +- drivers/gpu/drm/tilcdc/tilcdc_slave.c | 4 ++-- drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 4 ++-- drivers/gpu/host1x/dev.c | 2 +- drivers/gpu/host1x/mipi.c | 2 +- 14 files changed, 17 insertions(+), 17 deletions(-)
drivers/gpu/drm/armada/armada_crtc.c +1 -1
@@ -1201,7 +1201,7 @@ static int armada_lcd_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id armada_lcd_of_match[] = { +static const struct of_device_id armada_lcd_of_match[] = { { .compatible ="marvell,dove-lcd" , .data = &armada510_ops,
drivers/gpu/drm/exynos/exynos_drm_dsi.c +1 -1
@@ -330,7 +330,7 @@ static struct exynos_dsi_driver_data exynos5_dsi_driver_data = { .plltmr_reg = 0x58, }; -static struct of_device_id exynos_dsi_of_match[] = { +static const struct of_device_id exynos_dsi_of_match[] = { { .compatible ="samsung,exynos3250-mipi-dsi" , .data = &exynos3_dsi_driver_data }, { .compatible ="samsung,exynos4210-mipi-dsi" ,
drivers/gpu/drm/exynos/exynos_hdmi.c +1 -1
@@ -2274,7 +2274,7 @@ err_data:return NULL ; } -static struct of_device_id hdmi_match_types[] = { +static const struct of_device_id hdmi_match_types[] = { { .compatible ="samsung,exynos5-hdmi" , .data = &exynos5_hdmi_driver_data,
drivers/gpu/drm/exynos/exynos_mixer.c +1 -1
@@ -1224,7 +1224,7 @@ static struct platform_device_id mixer_driver_types[] = { } }; -static struct of_device_id mixer_match_types[] = { +static const struct of_device_id mixer_match_types[] = { { .compatible ="samsung,exynos4210-mixer" , .data = &exynos4210_mxr_drv_data,
drivers/gpu/drm/panel/panel-ld9040.c +1 -1
@@ -367,7 +367,7 @@ static int ld9040_remove(struct spi_device *spi)return 0 ; } -static struct of_device_id ld9040_of_match[] = { +static const struct of_device_id ld9040_of_match[] = { { .compatible ="samsung,ld9040" }, { } };
drivers/gpu/drm/panel/panel-s6e8aa0.c +1 -1
@@ -1041,7 +1041,7 @@ static int s6e8aa0_remove(struct mipi_dsi_device *dsi)return 0 ; } -static struct of_device_id s6e8aa0_of_match[] = { +static const struct of_device_id s6e8aa0_of_match[] = { { .compatible ="samsung,s6e8aa0" }, { } };
drivers/gpu/drm/sti/sti_dvo.c +1 -1
@@ -537,7 +537,7 @@ static int sti_dvo_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id dvo_of_match[] = { +static const struct of_device_id dvo_of_match[] = { { .compatible ="st,stih407-dvo" , }, {/* end node */ } };
drivers/gpu/drm/sti/sti_hqvdp.c +1 -1
@@ -1050,7 +1050,7 @@ static int sti_hqvdp_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id hqvdp_of_match[] = { +static const struct of_device_id hqvdp_of_match[] = { { .compatible ="st,stih407-hqvdp" , }, {/* end node */ } };
drivers/gpu/drm/tilcdc/tilcdc_drv.c +2 -2
@@ -47,7 +47,7 @@ void tilcdc_slave_probedefer(bool defered) slave_probing = defered; } -static struct of_device_id tilcdc_of_match[]; +static const struct of_device_id tilcdc_of_match[];static struct drm_framebuffer *tilcdc_fb_create (struct drm_device *dev,struct drm_file *file_priv,struct drm_mode_fb_cmd2 *mode_cmd)
@@ -634,7 +634,7 @@ static int tilcdc_pdev_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id tilcdc_of_match[] = { +static const struct of_device_id tilcdc_of_match[] = { { .compatible ="ti,am33xx-tilcdc" , }, { }, };
drivers/gpu/drm/tilcdc/tilcdc_panel.c +1 -1
@@ -450,7 +450,7 @@ static int panel_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id panel_of_match[] = { +static const struct of_device_id panel_of_match[] = { { .compatible ="ti,tilcdc,panel" , }, { }, };
drivers/gpu/drm/tilcdc/tilcdc_slave.c +2 -2
@@ -304,7 +304,7 @@ static const struct tilcdc_module_ops slave_module_ops = {* Device: */ -static struct of_device_id slave_of_match[]; +static const struct of_device_id slave_of_match[];static int slave_probe (struct platform_device *pdev) {
@@ -385,7 +385,7 @@ static int slave_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id slave_of_match[] = { +static const struct of_device_id slave_of_match[] = { { .compatible ="ti,tilcdc,slave" , }, { }, };
drivers/gpu/drm/tilcdc/tilcdc_tfp410.c +2 -2
@@ -304,7 +304,7 @@ static const struct tilcdc_module_ops tfp410_module_ops = {* Device: */ -static struct of_device_id tfp410_of_match[]; +static const struct of_device_id tfp410_of_match[];static int tfp410_probe (struct platform_device *pdev) {
@@ -394,7 +394,7 @@ static int tfp410_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id tfp410_of_match[] = { +static const struct of_device_id tfp410_of_match[] = { { .compatible ="ti,tilcdc,tfp410" , }, { }, };
drivers/gpu/host1x/dev.c +1 -1
@@ -87,7 +87,7 @@ static const struct host1x_info host1x04_info = { .sync_offset = 0x2100, }; -static struct of_device_id host1x_of_match[] = { +static const struct of_device_id host1x_of_match[] = { { .compatible ="nvidia,tegra124-host1x" , .data = &host1x04_info, }, { .compatible ="nvidia,tegra114-host1x" , .data = &host1x02_info, }, { .compatible ="nvidia,tegra30-host1x" , .data = &host1x01_info, },
drivers/gpu/host1x/mipi.c +1 -1
@@ -277,7 +277,7 @@ static const struct tegra_mipi_soc tegra124_mipi_soc = { .num_pads = ARRAY_SIZE(tegra124_mipi_pads), }; -static struct of_device_id tegra_mipi_of_match[] = { +static const struct of_device_id tegra_mipi_of_match[] = { { .compatible ="nvidia,tegra114-mipi" , .data = &tegra114_mipi_soc }, { .compatible ="nvidia,tegra124-mipi" , .data = &tegra124_mipi_soc }, { },
Signature · 1 line
2.1.0
PATCH 30/35 devfreq: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/devfreq/event/exynos-ppmu.c | 2 +- drivers/devfreq/tegra-devfreq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/devfreq/event/exynos-ppmu.c +1 -1
@@ -354,7 +354,7 @@ static int exynos_ppmu_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id exynos_ppmu_id_match[] = { +static const struct of_device_id exynos_ppmu_id_match[] = { { .compatible ="samsung,exynos-ppmu" , }, {/* sentinel */ }, };
drivers/devfreq/tegra-devfreq.c +1 -1
@@ -695,7 +695,7 @@ static SIMPLE_DEV_PM_OPS(tegra_devfreq_pm_ops, tegra_devfreq_suspend, tegra_devfreq_resume); -static struct of_device_id tegra_devfreq_of_match[] = { +static const struct of_device_id tegra_devfreq_of_match[] = { { .compatible ="nvidia,tegra124-actmon" }, { }, };
Signature · 1 line
2.1.0
PATCH 31/35 EDAC: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/edac/highbank_mc_edac.c | 2 +- drivers/edac/mpc85xx_edac.c | 4 ++-- drivers/edac/ppc4xx_edac.c | 2 +- drivers/edac/synopsys_edac.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
drivers/edac/highbank_mc_edac.c +1 -1
@@ -146,7 +146,7 @@ static struct hb_mc_settings mw_settings = { .int_offset = MW_DDR_ECC_INT_BASE, }; -static struct of_device_id hb_ddr_ctrl_of_match[] = { +static const struct of_device_id hb_ddr_ctrl_of_match[] = { { .compatible ="calxeda,hb-ddr-ctrl" , .data = &hb_settings }, { .compatible ="calxeda,ecx-2000-ddr-ctrl" , .data = &mw_settings }, {},
drivers/edac/mpc85xx_edac.c +2 -2
@@ -670,7 +670,7 @@ static int mpc85xx_l2_err_remove(struct platform_device *op)return 0 ; } -static struct of_device_id mpc85xx_l2_err_of_match[] = { +static const struct of_device_id mpc85xx_l2_err_of_match[] = {/* deprecate the fsl,85.. forms in the future, 2.6.30? */ { .compatible ="fsl,8540-l2-cache-controller" , }, { .compatible ="fsl,8541-l2-cache-controller" , },
@@ -1160,7 +1160,7 @@ static int mpc85xx_mc_err_remove(struct platform_device *op)return 0 ; } -static struct of_device_id mpc85xx_mc_err_of_match[] = { +static const struct of_device_id mpc85xx_mc_err_of_match[] = {/* deprecate the fsl,85.. forms in the future, 2.6.30? */ { .compatible ="fsl,8540-memory-controller" , }, { .compatible ="fsl,8541-memory-controller" , },
drivers/edac/ppc4xx_edac.c +1 -1
@@ -193,7 +193,7 @@ static int ppc4xx_edac_remove(struct platform_device *device);* Device tree node type and compatible tuples this driver can match * on. */ -static struct of_device_id ppc4xx_edac_match[] = { +static const struct of_device_id ppc4xx_edac_match[] = { { .compatible ="ibm,sdram-4xx-ddr2" },
drivers/edac/synopsys_edac.c +1 -1
@@ -512,7 +512,7 @@ static int synps_edac_mc_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id synps_edac_match[] = { +static const struct of_device_id synps_edac_match[] = { { .compatible ="xlnx,zynq-ddrc-a05" , }, {/* end of table */ } };
Signature · 1 line
2.1.0
Re: [PATCH 31/35 linux-next] EDAC: constify of_device_id array
Quoted 10 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>--- drivers/edac/highbank_mc_edac.c | 2 +- drivers/edac/mpc85xx_edac.c | 4 ++-- drivers/edac/ppc4xx_edac.c | 2 +- drivers/edac/synopsys_edac.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
Applied, thanks.
Signature · 5 lines
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--PATCH 32/35 clk: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/clk/clk-palmas.c | 2 +- drivers/clk/st/clkgen-fsyn.c | 2 +- drivers/clk/st/clkgen-mux.c | 8 ++++---- drivers/clk/st/clkgen-pll.c | 4 ++-- drivers/clk/ti/clk-dra7-atl.c | 2 +- drivers/clk/ti/clockdomain.c | 2 +- drivers/clk/versatile/clk-vexpress-osc.c | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-)
drivers/clk/clk-palmas.c +1 -1
@@ -161,7 +161,7 @@ static struct palmas_clks_of_match_data palmas_of_clk32kgaudio = { }, }; -static struct of_device_id palmas_clks_of_match[] = { +static const struct of_device_id palmas_clks_of_match[] = { { .compatible ="ti,palmas-clk32kg" , .data = &palmas_of_clk32kg,
drivers/clk/st/clkgen-fsyn.c +1 -1
@@ -1057,7 +1057,7 @@ static struct clk * __init st_clk_register_quadfs_fsynth(return clk; } -static struct of_device_id quadfs_of_match[] = { +static const struct of_device_id quadfs_of_match[] = { { .compatible ="st,stih416-quadfs216" , .data = &st_fs216c65_416
drivers/clk/st/clkgen-mux.c +4 -4
@@ -341,7 +341,7 @@ static struct clkgena_divmux_data st_divmux_c32odf3 = { .fb_start_bit_idx = 24, }; -static struct of_device_id clkgena_divmux_of_match[] = { +static const struct of_device_id clkgena_divmux_of_match[] = { { .compatible ="st,clkgena-divmux-c65-hs" , .data = &st_divmux_c65hs,
@@ -479,7 +479,7 @@ static struct clkgena_prediv_data prediv_c32_data = { .table = prediv_table16, }; -static struct of_device_id clkgena_prediv_of_match[] = { +static const struct of_device_id clkgena_prediv_of_match[] = { { .compatible ="st,clkgena-prediv-c65" , .data = &prediv_c65_data }, { .compatible ="st,clkgena-prediv-c32" , .data = &prediv_c32_data }, {}
@@ -586,7 +586,7 @@ static struct clkgen_mux_data stih407_a9_mux_data = { .width = 2, }; -static struct of_device_id mux_of_match[] = { +static const struct of_device_id mux_of_match[] = { { .compatible ="st,stih416-clkgenc-vcc-hd" , .data = &clkgen_mux_c_vcc_hd_416,
@@ -693,7 +693,7 @@ static struct clkgen_vcc_data st_clkgenf_vcc_416 = { .lock = &clkgenf_lock, }; -static struct of_device_id vcc_of_match[] = { +static const struct of_device_id vcc_of_match[] = { { .compatible ="st,stih416-clkgenc" , .data = &st_clkgenc_vcc_416 }, { .compatible ="st,stih416-clkgenf" , .data = &st_clkgenf_vcc_416 }, {}
drivers/clk/st/clkgen-pll.c +2 -2
@@ -593,7 +593,7 @@ static struct clk * __init clkgen_odf_register(const char *parent_name,return clk; } -static struct of_device_id c32_pll_of_match[] = { +static const struct of_device_id c32_pll_of_match[] = { { .compatible ="st,plls-c32-a1x-0" , .data = &st_pll3200c32_a1x_0,
@@ -708,7 +708,7 @@ err: }CLK_OF_DECLARE (clkgen_c32_pll,"st,clkgen-plls-c32" , clkgen_c32_pll_setup); -static struct of_device_id c32_gpu_pll_of_match[] = { +static const struct of_device_id c32_gpu_pll_of_match[] = { { .compatible ="st,stih415-gpu-pll-c32" , .data = &st_pll1200c32_gpu_415,
drivers/clk/ti/clk-dra7-atl.c +1 -1
@@ -294,7 +294,7 @@ static int of_dra7_atl_clk_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id of_dra7_atl_clk_match_tbl[] = { +static const struct of_device_id of_dra7_atl_clk_match_tbl[] = { { .compatible ="ti,dra7-atl" , }, {}, };
drivers/clk/ti/clockdomain.c +1 -1
@@ -52,7 +52,7 @@ static void __init of_ti_clockdomain_setup(struct device_node *node) } } -static struct of_device_id ti_clkdm_match_table[]__initdata = { +static const struct of_device_id ti_clkdm_match_table[]__initconst = { { .compatible ="ti,clockdomain" }, { } };
drivers/clk/versatile/clk-vexpress-osc.c +1 -1
@@ -110,7 +110,7 @@ static int vexpress_osc_probe(struct platform_device *pdev)return 0 ; } -static struct of_device_id vexpress_osc_of_match[] = { +static const struct of_device_id vexpress_osc_of_match[] = { { .compatible ="arm,vexpress-osc" , }, {} };
Signature · 1 line
2.1.0
PATCH 33/35 mmc: constify of_device_id array
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/mmc/host/mmc_spi.c | 2 +- drivers/mmc/host/wmt-sdmmc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/mmc_spi.c +1 -1
@@ -1507,7 +1507,7 @@ static int mmc_spi_remove(struct spi_device *spi)return 0 ; } -static struct of_device_id mmc_spi_of_match_table[] = { +static const struct of_device_id mmc_spi_of_match_table[] = { { .compatible ="mmc-spi-slot" , }, {}, };
drivers/mmc/host/wmt-sdmmc.c +1 -1
@@ -744,7 +744,7 @@ static struct wmt_mci_caps wm8505_caps = { .max_blk_size = 2048, }; -static struct of_device_id wmt_mci_dt_ids[] = { +static const struct of_device_id wmt_mci_dt_ids[] = { { .compatible ="wm,wm8505-sdhc" , .data = &wm8505_caps }, {/* Sentinel */ }, };
Signature · 1 line
2.1.0
Re: [PATCH 33/35 linux-next] mmc: constify of_device_id array
Quoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Quoted 34 lines
--- drivers/mmc/host/mmc_spi.c | 2 +- drivers/mmc/host/wmt-sdmmc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/mmc/host/mmc_spi.c +1
-1@@ -1507,7 +1507,7 @@ static int mmc_spi_remove(struct spi_device *spi)return 0 ; } -static struct of_device_id mmc_spi_of_match_table[] = { +static const struct of_device_id mmc_spi_of_match_table[] = { { .compatible ="mmc-spi-slot" , }, {}, };drivers/mmc/host/wmt-sdmmc.c +1
-2@@ -744,7 +744,7 @@ static struct wmt_mci_caps wm8505_caps = { .max_blk_size = 2048, }; -static struct of_device_id wmt_mci_dt_ids[] = { +static const struct of_device_id wmt_mci_dt_ids[] = { { .compatible ="wm,wm8505-sdhc" , .data = &wm8505_caps }, {/* Sentinel */ }, }; --2.1.0
Re: [PATCH 33/35 linux-next] mmc: constify of_device_id array
Quoted 7 lines · Ulf Hansson
Quoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>Acked-by Ulf Hansson <[email protected]>
I realized that you might wanted me to pick this up and queue it through my mmc tree? Just tell me if that's what you want.
Kind regards
Uffe
Quoted 35 lines
Quoted 35 lines
--- drivers/mmc/host/mmc_spi.c | 2 +- drivers/mmc/host/wmt-sdmmc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/mmc/host/mmc_spi.c +1
-1@@ -1507,7 +1507,7 @@ static int mmc_spi_remove(struct spi_device *spi)return 0 ; } -static struct of_device_id mmc_spi_of_match_table[] = { +static const struct of_device_id mmc_spi_of_match_table[] = { { .compatible ="mmc-spi-slot" , }, {}, };drivers/mmc/host/wmt-sdmmc.c +1
-2@@ -744,7 +744,7 @@ static struct wmt_mci_caps wm8505_caps = { .max_blk_size = 2048, }; -static struct of_device_id wmt_mci_dt_ids[] = { +static const struct of_device_id wmt_mci_dt_ids[] = { { .compatible ="wm,wm8505-sdhc" , .data = &wm8505_caps }, {/* Sentinel */ }, }; --2.1.0
Re: [PATCH 33/35 linux-next] mmc: constify of_device_id array
Quoted 12 lines · On 20 March 2015 at 09:56 Ulf Hansson <[email protected]> wrote:
Quoted 6 lines · Ulf Hansson
Quoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Quoted 7 lines
Quoted 1 line
Acked-by Ulf Hansson <[email protected]>I realized that you might wanted me to pick this up and queue it through my mmc tree? Just tell me if that's what you want.
Kind regards
Uffe
Hi Ulf,
? ? ? ? Yes of course :) (it has not been added to linux-next yet).
Thanks,
Fabian
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
---
?drivers/mmc/host/mmc_spi.c? ?| 2 +-
?drivers/mmc/host/wmt-sdmmc.c| 2 +-
? 2 files changed, 2 insertions(+), 2 deletions(-)drivers/mmc/host/mmc_spi.c +1
-1@@ -1507,7 +1507,7 @@ static int mmc_spi_remove(struct spi_device *spi) ? ? ? ? ?return 0; ? } -static struct of_device_id mmc_spi_of_match_table[] = { +static const struct of_device_id mmc_spi_of_match_table[] = { ? ? ? ? ?{ .compatible = "mmc-spi-slot", }, ? ? ? ? ?{}, ? };drivers/mmc/host/wmt-sdmmc.c +1
-2@@ -744,7 +744,7 @@ static struct wmt_mci_caps wm8505_caps = { ? ? ? ? ?.max_blk_size = 2048, ? }; -static struct of_device_id wmt_mci_dt_ids[] = { +static const struct of_device_id wmt_mci_dt_ids[] = { ? ? ? ? ?{ .compatible = "wm,wm8505-sdhc", .data = &wm8505_caps }, ? ? ? ? ?{ /* Sentinel */ }, ? }; --2.1.0
Ulf Hansson
AppliedRe: [PATCH 33/35 linux-next] mmc: constify of_device_id array
Quoted 17 lines · Fabian Frederick
Quoted 17 lines · On 20 March 2015 at 09:56 Ulf Hansson <[email protected]> wrote:
Quoted 7 lines · Ulf Hansson
Quoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>Acked-by Ulf Hansson <[email protected]>I realized that you might wanted me to pick this up and queue it through my mmc tree? Just tell me if that's what you want.
Quoted 6 lines
Quoted 2 lines
Kind regards
UffeHi Ulf,
Yes of course :) (it has not been added to linux-next yet).
Thanks! Applied.
Kind regards
Uffe
Quoted 39 lines
Thanks,
FabianQuoted 36 lines
Quoted 36 lines
Quoted 36 lines
--- drivers/mmc/host/mmc_spi.c | 2 +- drivers/mmc/host/wmt-sdmmc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/mmc/host/mmc_spi.c +1
-1@@ -1507,7 +1507,7 @@ static int mmc_spi_remove(struct spi_device *spi)return 0 ; } -static struct of_device_id mmc_spi_of_match_table[] = { +static const struct of_device_id mmc_spi_of_match_table[] = { { .compatible ="mmc-spi-slot" , }, {}, };drivers/mmc/host/wmt-sdmmc.c +1
-2@@ -744,7 +744,7 @@ static struct wmt_mci_caps wm8505_caps = { .max_blk_size = 2048, }; -static struct of_device_id wmt_mci_dt_ids[] = { +static const struct of_device_id wmt_mci_dt_ids[] = { { .compatible ="wm,wm8505-sdhc" , .data = &wm8505_caps }, {/* Sentinel */ }, }; --2.1.0
PATCH 34/35 Staging: octeon: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/staging/octeon-usb/octeon-hcd.c | 2 +- drivers/staging/octeon/ethernet.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/octeon-usb/octeon-hcd.c +1 -1
@@ -3885,7 +3885,7 @@ static int octeon_usb_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id octeon_usb_match[] = { +static const struct of_device_id octeon_usb_match[] = { { .compatible ="cavium,octeon-5750-usbc" , },
drivers/staging/octeon/ethernet.c +1 -1
@@ -859,7 +859,7 @@ static int cvm_oct_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id cvm_oct_match[] = { +static const struct of_device_id cvm_oct_match[] = { { .compatible ="cavium,octeon-3860-pip" , },
Signature · 1 line
2.1.0
PATCH 35/35 pinctrl: constify of_device_id array
In reply to Fabian Frederickof_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
--- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8135.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8173.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-370.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-375.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-38x.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-39x.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-xp.c | 2 +- drivers/pinctrl/mvebu/pinctrl-kirkwood.c | 2 +- drivers/pinctrl/mvebu/pinctrl-orion.c | 2 +- drivers/pinctrl/pinctrl-as3722.c | 2 +- drivers/pinctrl/pinctrl-at91.c | 4 ++-- drivers/pinctrl/pinctrl-palmas.c | 2 +- drivers/pinctrl/pinctrl-single.c | 4 ++-- drivers/pinctrl/pinctrl-st.c | 2 +- drivers/pinctrl/pinctrl-tz1090-pdc.c | 2 +- drivers/pinctrl/pinctrl-tz1090.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun5i-a10s.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun6i-a31s.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun7i-a20.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun8i-a23-r.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun8i-a23.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c | 2 +- drivers/pinctrl/vt8500/pinctrl-vt8500.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8505.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8650.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8750.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8850.c | 2 +- 32 files changed, 34 insertions(+), 34 deletions(-)
drivers/pinctrl/bcm/pinctrl-bcm2835.c +1 -1
@@ -1051,7 +1051,7 @@ static int bcm2835_pinctrl_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id bcm2835_pinctrl_match[] = { +static const struct of_device_id bcm2835_pinctrl_match[] = { { .compatible ="brcm,bcm2835-gpio" }, {} };
drivers/pinctrl/mediatek/pinctrl-mt8135.c +1 -1
@@ -347,7 +347,7 @@ static int mt8135_pinctrl_probe(struct platform_device *pdev)return mtk_pctrl_init (pdev, &mt8135_pinctrl_data); } -static struct of_device_id mt8135_pctrl_match[] = { +static const struct of_device_id mt8135_pctrl_match[] = { { .compatible ="mediatek,mt8135-pinctrl" , }, {
drivers/pinctrl/mediatek/pinctrl-mt8173.c +1 -1
@@ -427,7 +427,7 @@ static int mt8173_pinctrl_probe(struct platform_device *pdev)return mtk_pctrl_init (pdev, &mt8173_pinctrl_data); } -static struct of_device_id mt8173_pctrl_match[] = { +static const struct of_device_id mt8173_pctrl_match[] = { { .compatible ="mediatek,mt8173-pinctrl" , }, {
drivers/pinctrl/mvebu/pinctrl-armada-370.c +1 -1
@@ -379,7 +379,7 @@ static struct mvebu_mpp_mode mv88f6710_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_370_pinctrl_info; -static struct of_device_id armada_370_pinctrl_of_match[] = { +static const struct of_device_id armada_370_pinctrl_of_match[] = { { .compatible ="marvell,mv88f6710-pinctrl" }, { }, };
drivers/pinctrl/mvebu/pinctrl-armada-375.c +1 -1
@@ -399,7 +399,7 @@ static struct mvebu_mpp_mode mv88f6720_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_375_pinctrl_info; -static struct of_device_id armada_375_pinctrl_of_match[] = { +static const struct of_device_id armada_375_pinctrl_of_match[] = { { .compatible ="marvell,mv88f6720-pinctrl" }, { }, };
drivers/pinctrl/mvebu/pinctrl-armada-38x.c +1 -1
@@ -389,7 +389,7 @@ static struct mvebu_mpp_mode armada_38x_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_38x_pinctrl_info; -static struct of_device_id armada_38x_pinctrl_of_match[] = { +static const struct of_device_id armada_38x_pinctrl_of_match[] = { { .compatible ="marvell,mv88f6810-pinctrl" , .data = (void *)V_88F6810 ,
drivers/pinctrl/mvebu/pinctrl-armada-39x.c +1 -1
@@ -362,7 +362,7 @@ static struct mvebu_mpp_mode armada_39x_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_39x_pinctrl_info; -static struct of_device_id armada_39x_pinctrl_of_match[] = { +static const struct of_device_id armada_39x_pinctrl_of_match[] = { { .compatible ="marvell,mv88f6920-pinctrl" , .data = (void *)V_88F6920 ,
drivers/pinctrl/mvebu/pinctrl-armada-xp.c +1 -1
@@ -361,7 +361,7 @@ static struct mvebu_mpp_mode armada_xp_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_xp_pinctrl_info; -static struct of_device_id armada_xp_pinctrl_of_match[] = { +static const struct of_device_id armada_xp_pinctrl_of_match[] = { { .compatible ="marvell,mv78230-pinctrl" , .data = (void *)V_MV78230 ,
drivers/pinctrl/mvebu/pinctrl-kirkwood.c +1 -1
@@ -456,7 +456,7 @@ static struct mvebu_pinctrl_soc_info mv98dx4122_info = { .ngpioranges = ARRAY_SIZE(mv88f628x_gpio_ranges), }; -static struct of_device_id kirkwood_pinctrl_of_match[] = { +static const struct of_device_id kirkwood_pinctrl_of_match[] = { { .compatible ="marvell,88f6180-pinctrl" , .data = &mv88f6180_info }, { .compatible ="marvell,88f6190-pinctrl" , .data = &mv88f6190_info }, { .compatible ="marvell,88f6192-pinctrl" , .data = &mv88f6192_info },
drivers/pinctrl/mvebu/pinctrl-orion.c +1 -1
@@ -211,7 +211,7 @@ static struct mvebu_pinctrl_soc_info mv88f5281_info = {* There are multiple variants of the Orion SoCs, but in terms of pin * muxing, they are identical. */ -static struct of_device_id orion_pinctrl_of_match[] = { +static const struct of_device_id orion_pinctrl_of_match[] = { { .compatible ="marvell,88f5181l-pinctrl" , .data = &mv88f5181l_info }, { .compatible ="marvell,88f5182-pinctrl" , .data = &mv88f5182_info }, { .compatible ="marvell,88f5281-pinctrl" , .data = &mv88f5281_info },
drivers/pinctrl/pinctrl-as3722.c +1 -1
@@ -625,7 +625,7 @@ static int as3722_pinctrl_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id as3722_pinctrl_of_match[] = { +static const struct of_device_id as3722_pinctrl_of_match[] = { { .compatible ="ams,as3722-pinctrl" , }, { }, };
drivers/pinctrl/pinctrl-at91.c +2 -2
@@ -1114,7 +1114,7 @@ static int at91_pinctrl_parse_functions(struct device_node *np,return 0 ; } -static struct of_device_id at91_pinctrl_of_match[] = { +static const struct of_device_id at91_pinctrl_of_match[] = { { .compatible ="atmel,sama5d3-pinctrl" , .data = &sama5d3_ops }, { .compatible ="atmel,at91sam9x5-pinctrl" , .data = &at91sam9x5_ops }, { .compatible ="atmel,at91rm9200-pinctrl" , .data = &at91rm9200_ops },
@@ -1690,7 +1690,7 @@ static struct gpio_chip at91_gpio_template = { .ngpio = MAX_NB_GPIO_PER_BANK, }; -static struct of_device_id at91_gpio_of_match[] = { +static const struct of_device_id at91_gpio_of_match[] = { { .compatible ="atmel,at91sam9x5-gpio" , .data = &at91sam9x5_ops, }, { .compatible ="atmel,at91rm9200-gpio" , .data = &at91rm9200_ops }, {/* sentinel */ }
drivers/pinctrl/pinctrl-palmas.c +1 -1
@@ -987,7 +987,7 @@ static struct palmas_pinctrl_data tps80036_pinctrl_data = { .num_pin_groups = ARRAY_SIZE(tps80036_pingroups), }; -static struct of_device_id palmas_pinctrl_of_match[] = { +static const struct of_device_id palmas_pinctrl_of_match[] = { { .compatible ="ti,palmas-pinctrl" , .data = &tps65913_pinctrl_data}, { .compatible ="ti,tps65913-pinctrl" , .data = &tps65913_pinctrl_data}, { .compatible ="ti,tps80036-pinctrl" , .data = &tps80036_pinctrl_data},
drivers/pinctrl/pinctrl-single.c +2 -2
@@ -1501,7 +1501,7 @@ static void pcs_free_resources(struct pcs_device *pcs) } \ }while (0 ); -static struct of_device_id pcs_of_match[]; +static const struct of_device_id pcs_of_match[];static int pcs_add_gpio_func (struct device_node *node,struct pcs_device *pcs) {
@@ -2000,7 +2000,7 @@ static const struct pcs_soc_data pinconf_single = { .flags = PCS_FEAT_PINCONF, }; -static struct of_device_id pcs_of_match[] = { +static const struct of_device_id pcs_of_match[] = { { .compatible ="ti,omap3-padconf" , .data = &pinctrl_single_omap_wkup }, { .compatible ="ti,omap4-padconf" , .data = &pinctrl_single_omap_wkup }, { .compatible ="ti,omap5-padconf" , .data = &pinctrl_single_omap_wkup },
drivers/pinctrl/pinctrl-st.c +1 -1
@@ -1531,7 +1531,7 @@ static int st_gpiolib_register_bank(struct st_pinctrl *info,return 0 ; } -static struct of_device_id st_pctl_of_match[] = { +static const struct of_device_id st_pctl_of_match[] = { { .compatible ="st,stih415-sbc-pinctrl" , .data = &stih415_sbc_data }, { .compatible ="st,stih415-rear-pinctrl" , .data = &stih415_rear_data }, { .compatible ="st,stih415-left-pinctrl" , .data = &stih415_left_data },
drivers/pinctrl/pinctrl-tz1090-pdc.c +1 -1
@@ -969,7 +969,7 @@ static int tz1090_pdc_pinctrl_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id tz1090_pdc_pinctrl_of_match[] = { +static const struct of_device_id tz1090_pdc_pinctrl_of_match[] = { { .compatible ="img,tz1090-pdc-pinctrl" , }, { }, };
drivers/pinctrl/pinctrl-tz1090.c +1 -1
@@ -1984,7 +1984,7 @@ static int tz1090_pinctrl_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id tz1090_pinctrl_of_match[] = { +static const struct of_device_id tz1090_pinctrl_of_match[] = { { .compatible ="img,tz1090-pinctrl" , }, { }, };
drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c +1 -1
@@ -1019,7 +1019,7 @@ static int sun4i_a10_pinctrl_probe(struct platform_device *pdev) &sun4i_a10_pinctrl_data); } -static struct of_device_id sun4i_a10_pinctrl_match[] = { +static const struct of_device_id sun4i_a10_pinctrl_match[] = { { .compatible ="allwinner,sun4i-a10-pinctrl" , }, {} };
drivers/pinctrl/sunxi/pinctrl-sun5i-a10s.c +1 -1
@@ -670,7 +670,7 @@ static int sun5i_a10s_pinctrl_probe(struct platform_device *pdev) &sun5i_a10s_pinctrl_data); } -static struct of_device_id sun5i_a10s_pinctrl_match[] = { +static const struct of_device_id sun5i_a10s_pinctrl_match[] = { { .compatible ="allwinner,sun5i-a10s-pinctrl" , }, {} };
drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c +1 -1
@@ -388,7 +388,7 @@ static int sun5i_a13_pinctrl_probe(struct platform_device *pdev) &sun5i_a13_pinctrl_data); } -static struct of_device_id sun5i_a13_pinctrl_match[] = { +static const struct of_device_id sun5i_a13_pinctrl_match[] = { { .compatible ="allwinner,sun5i-a13-pinctrl" , }, {} };
drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c +1 -1
@@ -120,7 +120,7 @@ static int sun6i_a31_r_pinctrl_probe(struct platform_device *pdev)return ret; } -static struct of_device_id sun6i_a31_r_pinctrl_match[] = { +static const struct of_device_id sun6i_a31_r_pinctrl_match[] = { { .compatible ="allwinner,sun6i-a31-r-pinctrl" , }, {} };
drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c +1 -1
@@ -922,7 +922,7 @@ static int sun6i_a31_pinctrl_probe(struct platform_device *pdev) &sun6i_a31_pinctrl_data); } -static struct of_device_id sun6i_a31_pinctrl_match[] = { +static const struct of_device_id sun6i_a31_pinctrl_match[] = { { .compatible ="allwinner,sun6i-a31-pinctrl" , }, {} };
drivers/pinctrl/sunxi/pinctrl-sun6i-a31s.c +1 -1
@@ -794,7 +794,7 @@ static int sun6i_a31s_pinctrl_probe(struct platform_device *pdev) &sun6i_a31s_pinctrl_data); } -static struct of_device_id sun6i_a31s_pinctrl_match[] = { +static const struct of_device_id sun6i_a31s_pinctrl_match[] = { { .compatible ="allwinner,sun6i-a31s-pinctrl" , }, {} };
drivers/pinctrl/sunxi/pinctrl-sun7i-a20.c +1 -1
@@ -1045,7 +1045,7 @@ static int sun7i_a20_pinctrl_probe(struct platform_device *pdev) &sun7i_a20_pinctrl_data); } -static struct of_device_id sun7i_a20_pinctrl_match[] = { +static const struct of_device_id sun7i_a20_pinctrl_match[] = { { .compatible ="allwinner,sun7i-a20-pinctrl" , }, {} };
drivers/pinctrl/sunxi/pinctrl-sun8i-a23-r.c +1 -1
@@ -119,7 +119,7 @@ static int sun8i_a23_r_pinctrl_probe(struct platform_device *pdev)return ret; } -static struct of_device_id sun8i_a23_r_pinctrl_match[] = { +static const struct of_device_id sun8i_a23_r_pinctrl_match[] = { { .compatible ="allwinner,sun8i-a23-r-pinctrl" , }, {} };
drivers/pinctrl/sunxi/pinctrl-sun8i-a23.c +1 -1
@@ -571,7 +571,7 @@ static int sun8i_a23_pinctrl_probe(struct platform_device *pdev) &sun8i_a23_pinctrl_data); } -static struct of_device_id sun8i_a23_pinctrl_match[] = { +static const struct of_device_id sun8i_a23_pinctrl_match[] = { { .compatible ="allwinner,sun8i-a23-pinctrl" , }, {} };
drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c +1 -1
@@ -729,7 +729,7 @@ static int sun9i_a80_pinctrl_probe(struct platform_device *pdev) &sun9i_a80_pinctrl_data); } -static struct of_device_id sun9i_a80_pinctrl_match[] = { +static const struct of_device_id sun9i_a80_pinctrl_match[] = { { .compatible ="allwinner,sun9i-a80-pinctrl" , }, {} };
drivers/pinctrl/vt8500/pinctrl-vt8500.c +1 -1
@@ -478,7 +478,7 @@ static int vt8500_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="via,vt8500-pinctrl" }, {/* sentinel */ }, };
drivers/pinctrl/vt8500/pinctrl-wm8505.c +1 -1
@@ -509,7 +509,7 @@ static int wm8505_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="wm,wm8505-pinctrl" }, {/* sentinel */ }, };
drivers/pinctrl/vt8500/pinctrl-wm8650.c +1 -1
@@ -347,7 +347,7 @@ static int wm8650_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="wm,wm8650-pinctrl" }, {/* sentinel */ }, };
drivers/pinctrl/vt8500/pinctrl-wm8750.c +1 -1
@@ -386,7 +386,7 @@ static int wm8750_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="wm,wm8750-pinctrl" }, {/* sentinel */ }, };
drivers/pinctrl/vt8500/pinctrl-wm8850.c +1 -1
@@ -365,7 +365,7 @@ static int wm8850_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="wm,wm8850-pinctrl" }, {/* sentinel */ }, };
Signature · 1 line
2.1.0
Re: [PATCH 35/35 linux-next] pinctrl: constify of_device_id array
Quoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Best Regards,
J.
Quoted 472 lines
--- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8135.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8173.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-370.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-375.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-38x.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-39x.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-xp.c | 2 +- drivers/pinctrl/mvebu/pinctrl-kirkwood.c | 2 +- drivers/pinctrl/mvebu/pinctrl-orion.c | 2 +- drivers/pinctrl/pinctrl-as3722.c | 2 +- drivers/pinctrl/pinctrl-at91.c | 4 ++-- drivers/pinctrl/pinctrl-palmas.c | 2 +- drivers/pinctrl/pinctrl-single.c | 4 ++-- drivers/pinctrl/pinctrl-st.c | 2 +- drivers/pinctrl/pinctrl-tz1090-pdc.c | 2 +- drivers/pinctrl/pinctrl-tz1090.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun5i-a10s.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun6i-a31s.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun7i-a20.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun8i-a23-r.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun8i-a23.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c | 2 +- drivers/pinctrl/vt8500/pinctrl-vt8500.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8505.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8650.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8750.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8850.c | 2 +- 32 files changed, 34 insertions(+), 34 deletions(-)drivers/pinctrl/bcm/pinctrl-bcm2835.c +1
-1@@ -1051,7 +1051,7 @@ static int bcm2835_pinctrl_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id bcm2835_pinctrl_match[] = { +static const struct of_device_id bcm2835_pinctrl_match[] = { { .compatible ="brcm,bcm2835-gpio" }, {} };drivers/pinctrl/mediatek/pinctrl-mt8135.c +1
-1@@ -347,7 +347,7 @@ static int mt8135_pinctrl_probe(struct platform_device *pdev)return mtk_pctrl_init (pdev, &mt8135_pinctrl_data); } -static struct of_device_id mt8135_pctrl_match[] = { +static const struct of_device_id mt8135_pctrl_match[] = { { .compatible ="mediatek,mt8135-pinctrl" , }, {drivers/pinctrl/mediatek/pinctrl-mt8173.c +1
-1@@ -427,7 +427,7 @@ static int mt8173_pinctrl_probe(struct platform_device *pdev)return mtk_pctrl_init (pdev, &mt8173_pinctrl_data); } -static struct of_device_id mt8173_pctrl_match[] = { +static const struct of_device_id mt8173_pctrl_match[] = { { .compatible ="mediatek,mt8173-pinctrl" , }, {drivers/pinctrl/mvebu/pinctrl-armada-370.c +1
-1@@ -379,7 +379,7 @@ static struct mvebu_mpp_mode mv88f6710_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_370_pinctrl_info; -static struct of_device_id armada_370_pinctrl_of_match[] = { +static const struct of_device_id armada_370_pinctrl_of_match[] = { { .compatible ="marvell,mv88f6710-pinctrl" }, { }, };drivers/pinctrl/mvebu/pinctrl-armada-375.c +1
-1@@ -399,7 +399,7 @@ static struct mvebu_mpp_mode mv88f6720_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_375_pinctrl_info; -static struct of_device_id armada_375_pinctrl_of_match[] = { +static const struct of_device_id armada_375_pinctrl_of_match[] = { { .compatible ="marvell,mv88f6720-pinctrl" }, { }, };drivers/pinctrl/mvebu/pinctrl-armada-38x.c +1
-1@@ -389,7 +389,7 @@ static struct mvebu_mpp_mode armada_38x_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_38x_pinctrl_info; -static struct of_device_id armada_38x_pinctrl_of_match[] = { +static const struct of_device_id armada_38x_pinctrl_of_match[] = { { .compatible ="marvell,mv88f6810-pinctrl" , .data = (void *)V_88F6810 ,drivers/pinctrl/mvebu/pinctrl-armada-39x.c +1
-1@@ -362,7 +362,7 @@ static struct mvebu_mpp_mode armada_39x_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_39x_pinctrl_info; -static struct of_device_id armada_39x_pinctrl_of_match[] = { +static const struct of_device_id armada_39x_pinctrl_of_match[] = { { .compatible ="marvell,mv88f6920-pinctrl" , .data = (void *)V_88F6920 ,drivers/pinctrl/mvebu/pinctrl-armada-xp.c +1
-1@@ -361,7 +361,7 @@ static struct mvebu_mpp_mode armada_xp_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_xp_pinctrl_info; -static struct of_device_id armada_xp_pinctrl_of_match[] = { +static const struct of_device_id armada_xp_pinctrl_of_match[] = { { .compatible ="marvell,mv78230-pinctrl" , .data = (void *)V_MV78230 ,drivers/pinctrl/mvebu/pinctrl-kirkwood.c +1
-1@@ -456,7 +456,7 @@ static struct mvebu_pinctrl_soc_info mv98dx4122_info = { .ngpioranges = ARRAY_SIZE(mv88f628x_gpio_ranges), }; -static struct of_device_id kirkwood_pinctrl_of_match[] = { +static const struct of_device_id kirkwood_pinctrl_of_match[] = { { .compatible ="marvell,88f6180-pinctrl" , .data = &mv88f6180_info }, { .compatible ="marvell,88f6190-pinctrl" , .data = &mv88f6190_info }, { .compatible ="marvell,88f6192-pinctrl" , .data = &mv88f6192_info },drivers/pinctrl/mvebu/pinctrl-orion.c +1
-1@@ -211,7 +211,7 @@ static struct mvebu_pinctrl_soc_info mv88f5281_info = {* There are multiple variants of the Orion SoCs, but in terms of pin * muxing, they are identical. */ -static struct of_device_id orion_pinctrl_of_match[] = { +static const struct of_device_id orion_pinctrl_of_match[] = { { .compatible ="marvell,88f5181l-pinctrl" , .data = &mv88f5181l_info }, { .compatible ="marvell,88f5182-pinctrl" , .data = &mv88f5182_info }, { .compatible ="marvell,88f5281-pinctrl" , .data = &mv88f5281_info },drivers/pinctrl/pinctrl-as3722.c +1
-1@@ -625,7 +625,7 @@ static int as3722_pinctrl_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id as3722_pinctrl_of_match[] = { +static const struct of_device_id as3722_pinctrl_of_match[] = { { .compatible ="ams,as3722-pinctrl" , }, { }, };drivers/pinctrl/pinctrl-at91.c +2
-2@@ -1114,7 +1114,7 @@ static int at91_pinctrl_parse_functions(struct device_node *np,return 0 ; } -static struct of_device_id at91_pinctrl_of_match[] = { +static const struct of_device_id at91_pinctrl_of_match[] = { { .compatible ="atmel,sama5d3-pinctrl" , .data = &sama5d3_ops }, { .compatible ="atmel,at91sam9x5-pinctrl" , .data = &at91sam9x5_ops }, { .compatible ="atmel,at91rm9200-pinctrl" , .data = &at91rm9200_ops },@@ -1690,7 +1690,7 @@ static struct gpio_chip at91_gpio_template = { .ngpio = MAX_NB_GPIO_PER_BANK, }; -static struct of_device_id at91_gpio_of_match[] = { +static const struct of_device_id at91_gpio_of_match[] = { { .compatible ="atmel,at91sam9x5-gpio" , .data = &at91sam9x5_ops, }, { .compatible ="atmel,at91rm9200-gpio" , .data = &at91rm9200_ops }, {/* sentinel */ }drivers/pinctrl/pinctrl-palmas.c +1
-1@@ -987,7 +987,7 @@ static struct palmas_pinctrl_data tps80036_pinctrl_data = { .num_pin_groups = ARRAY_SIZE(tps80036_pingroups), }; -static struct of_device_id palmas_pinctrl_of_match[] = { +static const struct of_device_id palmas_pinctrl_of_match[] = { { .compatible ="ti,palmas-pinctrl" , .data = &tps65913_pinctrl_data}, { .compatible ="ti,tps65913-pinctrl" , .data = &tps65913_pinctrl_data}, { .compatible ="ti,tps80036-pinctrl" , .data = &tps80036_pinctrl_data},drivers/pinctrl/pinctrl-single.c +2
-2@@ -1501,7 +1501,7 @@ static void pcs_free_resources(struct pcs_device *pcs) } \ }while (0 ); -static struct of_device_id pcs_of_match[]; +static const struct of_device_id pcs_of_match[];static int pcs_add_gpio_func (struct device_node *node,struct pcs_device *pcs) {@@ -2000,7 +2000,7 @@ static const struct pcs_soc_data pinconf_single = { .flags = PCS_FEAT_PINCONF, }; -static struct of_device_id pcs_of_match[] = { +static const struct of_device_id pcs_of_match[] = { { .compatible ="ti,omap3-padconf" , .data = &pinctrl_single_omap_wkup }, { .compatible ="ti,omap4-padconf" , .data = &pinctrl_single_omap_wkup }, { .compatible ="ti,omap5-padconf" , .data = &pinctrl_single_omap_wkup },drivers/pinctrl/pinctrl-st.c +1
-1@@ -1531,7 +1531,7 @@ static int st_gpiolib_register_bank(struct st_pinctrl *info,return 0 ; } -static struct of_device_id st_pctl_of_match[] = { +static const struct of_device_id st_pctl_of_match[] = { { .compatible ="st,stih415-sbc-pinctrl" , .data = &stih415_sbc_data }, { .compatible ="st,stih415-rear-pinctrl" , .data = &stih415_rear_data }, { .compatible ="st,stih415-left-pinctrl" , .data = &stih415_left_data },drivers/pinctrl/pinctrl-tz1090-pdc.c +1
-1@@ -969,7 +969,7 @@ static int tz1090_pdc_pinctrl_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id tz1090_pdc_pinctrl_of_match[] = { +static const struct of_device_id tz1090_pdc_pinctrl_of_match[] = { { .compatible ="img,tz1090-pdc-pinctrl" , }, { }, };drivers/pinctrl/pinctrl-tz1090.c +1
-1@@ -1984,7 +1984,7 @@ static int tz1090_pinctrl_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id tz1090_pinctrl_of_match[] = { +static const struct of_device_id tz1090_pinctrl_of_match[] = { { .compatible ="img,tz1090-pinctrl" , }, { }, };drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c +1
-1@@ -1019,7 +1019,7 @@ static int sun4i_a10_pinctrl_probe(struct platform_device *pdev) &sun4i_a10_pinctrl_data); } -static struct of_device_id sun4i_a10_pinctrl_match[] = { +static const struct of_device_id sun4i_a10_pinctrl_match[] = { { .compatible ="allwinner,sun4i-a10-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun5i-a10s.c +1
-1@@ -670,7 +670,7 @@ static int sun5i_a10s_pinctrl_probe(struct platform_device *pdev) &sun5i_a10s_pinctrl_data); } -static struct of_device_id sun5i_a10s_pinctrl_match[] = { +static const struct of_device_id sun5i_a10s_pinctrl_match[] = { { .compatible ="allwinner,sun5i-a10s-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c +1
-1@@ -388,7 +388,7 @@ static int sun5i_a13_pinctrl_probe(struct platform_device *pdev) &sun5i_a13_pinctrl_data); } -static struct of_device_id sun5i_a13_pinctrl_match[] = { +static const struct of_device_id sun5i_a13_pinctrl_match[] = { { .compatible ="allwinner,sun5i-a13-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c +1
-1@@ -120,7 +120,7 @@ static int sun6i_a31_r_pinctrl_probe(struct platform_device *pdev)return ret; } -static struct of_device_id sun6i_a31_r_pinctrl_match[] = { +static const struct of_device_id sun6i_a31_r_pinctrl_match[] = { { .compatible ="allwinner,sun6i-a31-r-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c +1
-1@@ -922,7 +922,7 @@ static int sun6i_a31_pinctrl_probe(struct platform_device *pdev) &sun6i_a31_pinctrl_data); } -static struct of_device_id sun6i_a31_pinctrl_match[] = { +static const struct of_device_id sun6i_a31_pinctrl_match[] = { { .compatible ="allwinner,sun6i-a31-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun6i-a31s.c +1
-1@@ -794,7 +794,7 @@ static int sun6i_a31s_pinctrl_probe(struct platform_device *pdev) &sun6i_a31s_pinctrl_data); } -static struct of_device_id sun6i_a31s_pinctrl_match[] = { +static const struct of_device_id sun6i_a31s_pinctrl_match[] = { { .compatible ="allwinner,sun6i-a31s-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun7i-a20.c +1
-1@@ -1045,7 +1045,7 @@ static int sun7i_a20_pinctrl_probe(struct platform_device *pdev) &sun7i_a20_pinctrl_data); } -static struct of_device_id sun7i_a20_pinctrl_match[] = { +static const struct of_device_id sun7i_a20_pinctrl_match[] = { { .compatible ="allwinner,sun7i-a20-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun8i-a23-r.c +1
-1@@ -119,7 +119,7 @@ static int sun8i_a23_r_pinctrl_probe(struct platform_device *pdev)return ret; } -static struct of_device_id sun8i_a23_r_pinctrl_match[] = { +static const struct of_device_id sun8i_a23_r_pinctrl_match[] = { { .compatible ="allwinner,sun8i-a23-r-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun8i-a23.c +1
-1@@ -571,7 +571,7 @@ static int sun8i_a23_pinctrl_probe(struct platform_device *pdev) &sun8i_a23_pinctrl_data); } -static struct of_device_id sun8i_a23_pinctrl_match[] = { +static const struct of_device_id sun8i_a23_pinctrl_match[] = { { .compatible ="allwinner,sun8i-a23-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c +1
-1@@ -729,7 +729,7 @@ static int sun9i_a80_pinctrl_probe(struct platform_device *pdev) &sun9i_a80_pinctrl_data); } -static struct of_device_id sun9i_a80_pinctrl_match[] = { +static const struct of_device_id sun9i_a80_pinctrl_match[] = { { .compatible ="allwinner,sun9i-a80-pinctrl" , }, {} };drivers/pinctrl/vt8500/pinctrl-vt8500.c +1
-1@@ -478,7 +478,7 @@ static int vt8500_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="via,vt8500-pinctrl" }, {/* sentinel */ }, };drivers/pinctrl/vt8500/pinctrl-wm8505.c +1
-1@@ -509,7 +509,7 @@ static int wm8505_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="wm,wm8505-pinctrl" }, {/* sentinel */ }, };drivers/pinctrl/vt8500/pinctrl-wm8650.c +1
-1@@ -347,7 +347,7 @@ static int wm8650_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="wm,wm8650-pinctrl" }, {/* sentinel */ }, };drivers/pinctrl/vt8500/pinctrl-wm8750.c +1
-1@@ -386,7 +386,7 @@ static int wm8750_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="wm,wm8750-pinctrl" }, {/* sentinel */ }, };drivers/pinctrl/vt8500/pinctrl-wm8850.c +1
-1@@ -365,7 +365,7 @@ static int wm8850_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="wm,wm8850-pinctrl" }, {/* sentinel */ }, };Signature · 1 line
2.1.0
Re: [PATCH 35/35 linux-next] pinctrl: constify of_device_id array
In reply to Fabian FrederickHi Fabian
Quoted 5 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>---
...
Quoted 2 lines
drivers/pinctrl/pinctrl-st.c | 2 +-
For this driver
Thanks
Re: [PATCH 35/35 linux-next] pinctrl: constify of_device_id array
In reply to Fabian FrederickQuoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Quoted 17 lines
--- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8135.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8173.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-370.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-375.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-38x.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-39x.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-xp.c | 2 +- drivers/pinctrl/mvebu/pinctrl-kirkwood.c | 2 +- drivers/pinctrl/mvebu/pinctrl-orion.c | 2 +- drivers/pinctrl/pinctrl-as3722.c | 2 +- drivers/pinctrl/pinctrl-at91.c | 4 ++-- drivers/pinctrl/pinctrl-palmas.c | 2 +- drivers/pinctrl/pinctrl-single.c | 4 ++-- drivers/pinctrl/pinctrl-st.c | 2 +-
For the pinctrl-st driver, you can add my:
Thanks!
Maxime
Re: [PATCH 35/35 linux-next] pinctrl: constify of_device_id array
In reply to Fabian FrederickQuoted 9 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>--- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8135.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8173.c | 2 +-
For the pinctrl-mt81xx driver,
By the way, Axel has sent same patch to linux-gpio.
http://article.gmane.org/gmane.linux.kernel.gpio/6815
Thanks.
Hongzhou
Re: [PATCH 35/35 linux-next] pinctrl: constify of_device_id array
Quoted 16 lines · On 19 March 2015 at 02:58 Hongzhou Yang <[email protected]> wrote:
Quoted 9 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>---
? drivers/pinctrl/bcm/pinctrl-bcm2835.c? ? ? ?| 2 +- ? drivers/pinctrl/mediatek/pinctrl-mt8135.c? ?| 2 +- ? drivers/pinctrl/mediatek/pinctrl-mt8173.c? ?| 2 +-?
Quoted 9 lines
For the pinctrl-mt81xx driver,
Acked-by Hongzhou Yang <[email protected]>By the way, Axel has sent same patch to linux-gpio.
http://article.gmane.org/gmane.linux.kernel.gpio/6815Thanks.
Hongzhou
Axel's version is better (it also improves display) but doesn't include bcm. I'll resend if necessary.
Regards,
Fabian
Re: [PATCH 35/35 linux-next] pinctrl: constify of_device_id array
Quoted 21 lines · Fabian Frederick
Quoted 21 lines · On 19 March 2015 at 02:58 Hongzhou Yang <[email protected]> wrote:
Quoted 9 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>--- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8135.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8173.c | 2 +-For the pinctrl-mt81xx driver,
Acked-by Hongzhou Yang <[email protected]>By the way, Axel has sent same patch to linux-gpio.
http://article.gmane.org/gmane.linux.kernel.gpio/6815
Quoted 8 lines
Quoted 3 lines
Thanks.
HongzhouAxel's version is better (it also improves display) but doesn't include bcm. I'll resend if necessary.
Regards,
Fabian
Hi Fabian,
Sorry, it's my fault. Our patch only include pinctrl-mt8135.c and pinctrl-mt8173.c, bcm is not ours.
Thank you.
Yours,
Hongzhou
Re: [PATCH 35/35 linux-next] pinctrl: constify of_device_id array
In reply to Fabian FrederickQuoted 6 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>--- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 +-
Quoted 467 lines
drivers/pinctrl/mediatek/pinctrl-mt8135.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8173.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-370.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-375.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-38x.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-39x.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-xp.c | 2 +- drivers/pinctrl/mvebu/pinctrl-kirkwood.c | 2 +- drivers/pinctrl/mvebu/pinctrl-orion.c | 2 +- drivers/pinctrl/pinctrl-as3722.c | 2 +- drivers/pinctrl/pinctrl-at91.c | 4 ++-- drivers/pinctrl/pinctrl-palmas.c | 2 +- drivers/pinctrl/pinctrl-single.c | 4 ++-- drivers/pinctrl/pinctrl-st.c | 2 +- drivers/pinctrl/pinctrl-tz1090-pdc.c | 2 +- drivers/pinctrl/pinctrl-tz1090.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun5i-a10s.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun6i-a31s.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun7i-a20.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun8i-a23-r.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun8i-a23.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c | 2 +- drivers/pinctrl/vt8500/pinctrl-vt8500.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8505.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8650.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8750.c | 2 +- drivers/pinctrl/vt8500/pinctrl-wm8850.c | 2 +- 32 files changed, 34 insertions(+), 34 deletions(-)drivers/pinctrl/bcm/pinctrl-bcm2835.c +1
-1@@ -1051,7 +1051,7 @@ static int bcm2835_pinctrl_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id bcm2835_pinctrl_match[] = { +static const struct of_device_id bcm2835_pinctrl_match[] = { { .compatible ="brcm,bcm2835-gpio" }, {} };drivers/pinctrl/mediatek/pinctrl-mt8135.c +1
-1@@ -347,7 +347,7 @@ static int mt8135_pinctrl_probe(struct platform_device *pdev)return mtk_pctrl_init (pdev, &mt8135_pinctrl_data); } -static struct of_device_id mt8135_pctrl_match[] = { +static const struct of_device_id mt8135_pctrl_match[] = { { .compatible ="mediatek,mt8135-pinctrl" , }, {drivers/pinctrl/mediatek/pinctrl-mt8173.c +1
-1@@ -427,7 +427,7 @@ static int mt8173_pinctrl_probe(struct platform_device *pdev)return mtk_pctrl_init (pdev, &mt8173_pinctrl_data); } -static struct of_device_id mt8173_pctrl_match[] = { +static const struct of_device_id mt8173_pctrl_match[] = { { .compatible ="mediatek,mt8173-pinctrl" , }, {drivers/pinctrl/mvebu/pinctrl-armada-370.c +1
-1@@ -379,7 +379,7 @@ static struct mvebu_mpp_mode mv88f6710_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_370_pinctrl_info; -static struct of_device_id armada_370_pinctrl_of_match[] = { +static const struct of_device_id armada_370_pinctrl_of_match[] = { { .compatible ="marvell,mv88f6710-pinctrl" }, { }, };drivers/pinctrl/mvebu/pinctrl-armada-375.c +1
-1@@ -399,7 +399,7 @@ static struct mvebu_mpp_mode mv88f6720_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_375_pinctrl_info; -static struct of_device_id armada_375_pinctrl_of_match[] = { +static const struct of_device_id armada_375_pinctrl_of_match[] = { { .compatible ="marvell,mv88f6720-pinctrl" }, { }, };drivers/pinctrl/mvebu/pinctrl-armada-38x.c +1
-1@@ -389,7 +389,7 @@ static struct mvebu_mpp_mode armada_38x_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_38x_pinctrl_info; -static struct of_device_id armada_38x_pinctrl_of_match[] = { +static const struct of_device_id armada_38x_pinctrl_of_match[] = { { .compatible ="marvell,mv88f6810-pinctrl" , .data = (void *)V_88F6810 ,drivers/pinctrl/mvebu/pinctrl-armada-39x.c +1
-1@@ -362,7 +362,7 @@ static struct mvebu_mpp_mode armada_39x_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_39x_pinctrl_info; -static struct of_device_id armada_39x_pinctrl_of_match[] = { +static const struct of_device_id armada_39x_pinctrl_of_match[] = { { .compatible ="marvell,mv88f6920-pinctrl" , .data = (void *)V_88F6920 ,drivers/pinctrl/mvebu/pinctrl-armada-xp.c +1
-1@@ -361,7 +361,7 @@ static struct mvebu_mpp_mode armada_xp_mpp_modes[] = {static struct mvebu_pinctrl_soc_info armada_xp_pinctrl_info; -static struct of_device_id armada_xp_pinctrl_of_match[] = { +static const struct of_device_id armada_xp_pinctrl_of_match[] = { { .compatible ="marvell,mv78230-pinctrl" , .data = (void *)V_MV78230 ,drivers/pinctrl/mvebu/pinctrl-kirkwood.c +1
-1@@ -456,7 +456,7 @@ static struct mvebu_pinctrl_soc_info mv98dx4122_info = { .ngpioranges = ARRAY_SIZE(mv88f628x_gpio_ranges), }; -static struct of_device_id kirkwood_pinctrl_of_match[] = { +static const struct of_device_id kirkwood_pinctrl_of_match[] = { { .compatible ="marvell,88f6180-pinctrl" , .data = &mv88f6180_info }, { .compatible ="marvell,88f6190-pinctrl" , .data = &mv88f6190_info }, { .compatible ="marvell,88f6192-pinctrl" , .data = &mv88f6192_info },drivers/pinctrl/mvebu/pinctrl-orion.c +1
-1@@ -211,7 +211,7 @@ static struct mvebu_pinctrl_soc_info mv88f5281_info = {* There are multiple variants of the Orion SoCs, but in terms of pin * muxing, they are identical. */ -static struct of_device_id orion_pinctrl_of_match[] = { +static const struct of_device_id orion_pinctrl_of_match[] = { { .compatible ="marvell,88f5181l-pinctrl" , .data = &mv88f5181l_info }, { .compatible ="marvell,88f5182-pinctrl" , .data = &mv88f5182_info }, { .compatible ="marvell,88f5281-pinctrl" , .data = &mv88f5281_info },drivers/pinctrl/pinctrl-as3722.c +1
-1@@ -625,7 +625,7 @@ static int as3722_pinctrl_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id as3722_pinctrl_of_match[] = { +static const struct of_device_id as3722_pinctrl_of_match[] = { { .compatible ="ams,as3722-pinctrl" , }, { }, };drivers/pinctrl/pinctrl-at91.c +2
-2@@ -1114,7 +1114,7 @@ static int at91_pinctrl_parse_functions(struct device_node *np,return 0 ; } -static struct of_device_id at91_pinctrl_of_match[] = { +static const struct of_device_id at91_pinctrl_of_match[] = { { .compatible ="atmel,sama5d3-pinctrl" , .data = &sama5d3_ops }, { .compatible ="atmel,at91sam9x5-pinctrl" , .data = &at91sam9x5_ops }, { .compatible ="atmel,at91rm9200-pinctrl" , .data = &at91rm9200_ops },@@ -1690,7 +1690,7 @@ static struct gpio_chip at91_gpio_template = { .ngpio = MAX_NB_GPIO_PER_BANK, }; -static struct of_device_id at91_gpio_of_match[] = { +static const struct of_device_id at91_gpio_of_match[] = { { .compatible ="atmel,at91sam9x5-gpio" , .data = &at91sam9x5_ops, }, { .compatible ="atmel,at91rm9200-gpio" , .data = &at91rm9200_ops }, {/* sentinel */ }drivers/pinctrl/pinctrl-palmas.c +1
-1@@ -987,7 +987,7 @@ static struct palmas_pinctrl_data tps80036_pinctrl_data = { .num_pin_groups = ARRAY_SIZE(tps80036_pingroups), }; -static struct of_device_id palmas_pinctrl_of_match[] = { +static const struct of_device_id palmas_pinctrl_of_match[] = { { .compatible ="ti,palmas-pinctrl" , .data = &tps65913_pinctrl_data}, { .compatible ="ti,tps65913-pinctrl" , .data = &tps65913_pinctrl_data}, { .compatible ="ti,tps80036-pinctrl" , .data = &tps80036_pinctrl_data},drivers/pinctrl/pinctrl-single.c +2
-2@@ -1501,7 +1501,7 @@ static void pcs_free_resources(struct pcs_device *pcs) } \ }while (0 ); -static struct of_device_id pcs_of_match[]; +static const struct of_device_id pcs_of_match[];static int pcs_add_gpio_func (struct device_node *node,struct pcs_device *pcs) {@@ -2000,7 +2000,7 @@ static const struct pcs_soc_data pinconf_single = { .flags = PCS_FEAT_PINCONF, }; -static struct of_device_id pcs_of_match[] = { +static const struct of_device_id pcs_of_match[] = { { .compatible ="ti,omap3-padconf" , .data = &pinctrl_single_omap_wkup }, { .compatible ="ti,omap4-padconf" , .data = &pinctrl_single_omap_wkup }, { .compatible ="ti,omap5-padconf" , .data = &pinctrl_single_omap_wkup },drivers/pinctrl/pinctrl-st.c +1
-1@@ -1531,7 +1531,7 @@ static int st_gpiolib_register_bank(struct st_pinctrl *info,return 0 ; } -static struct of_device_id st_pctl_of_match[] = { +static const struct of_device_id st_pctl_of_match[] = { { .compatible ="st,stih415-sbc-pinctrl" , .data = &stih415_sbc_data }, { .compatible ="st,stih415-rear-pinctrl" , .data = &stih415_rear_data }, { .compatible ="st,stih415-left-pinctrl" , .data = &stih415_left_data },drivers/pinctrl/pinctrl-tz1090-pdc.c +1
-1@@ -969,7 +969,7 @@ static int tz1090_pdc_pinctrl_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id tz1090_pdc_pinctrl_of_match[] = { +static const struct of_device_id tz1090_pdc_pinctrl_of_match[] = { { .compatible ="img,tz1090-pdc-pinctrl" , }, { }, };drivers/pinctrl/pinctrl-tz1090.c +1
-1@@ -1984,7 +1984,7 @@ static int tz1090_pinctrl_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id tz1090_pinctrl_of_match[] = { +static const struct of_device_id tz1090_pinctrl_of_match[] = { { .compatible ="img,tz1090-pinctrl" , }, { }, };drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c +1
-1@@ -1019,7 +1019,7 @@ static int sun4i_a10_pinctrl_probe(struct platform_device *pdev) &sun4i_a10_pinctrl_data); } -static struct of_device_id sun4i_a10_pinctrl_match[] = { +static const struct of_device_id sun4i_a10_pinctrl_match[] = { { .compatible ="allwinner,sun4i-a10-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun5i-a10s.c +1
-1@@ -670,7 +670,7 @@ static int sun5i_a10s_pinctrl_probe(struct platform_device *pdev) &sun5i_a10s_pinctrl_data); } -static struct of_device_id sun5i_a10s_pinctrl_match[] = { +static const struct of_device_id sun5i_a10s_pinctrl_match[] = { { .compatible ="allwinner,sun5i-a10s-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c +1
-1@@ -388,7 +388,7 @@ static int sun5i_a13_pinctrl_probe(struct platform_device *pdev) &sun5i_a13_pinctrl_data); } -static struct of_device_id sun5i_a13_pinctrl_match[] = { +static const struct of_device_id sun5i_a13_pinctrl_match[] = { { .compatible ="allwinner,sun5i-a13-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c +1
-1@@ -120,7 +120,7 @@ static int sun6i_a31_r_pinctrl_probe(struct platform_device *pdev)return ret; } -static struct of_device_id sun6i_a31_r_pinctrl_match[] = { +static const struct of_device_id sun6i_a31_r_pinctrl_match[] = { { .compatible ="allwinner,sun6i-a31-r-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c +1
-1@@ -922,7 +922,7 @@ static int sun6i_a31_pinctrl_probe(struct platform_device *pdev) &sun6i_a31_pinctrl_data); } -static struct of_device_id sun6i_a31_pinctrl_match[] = { +static const struct of_device_id sun6i_a31_pinctrl_match[] = { { .compatible ="allwinner,sun6i-a31-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun6i-a31s.c +1
-1@@ -794,7 +794,7 @@ static int sun6i_a31s_pinctrl_probe(struct platform_device *pdev) &sun6i_a31s_pinctrl_data); } -static struct of_device_id sun6i_a31s_pinctrl_match[] = { +static const struct of_device_id sun6i_a31s_pinctrl_match[] = { { .compatible ="allwinner,sun6i-a31s-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun7i-a20.c +1
-1@@ -1045,7 +1045,7 @@ static int sun7i_a20_pinctrl_probe(struct platform_device *pdev) &sun7i_a20_pinctrl_data); } -static struct of_device_id sun7i_a20_pinctrl_match[] = { +static const struct of_device_id sun7i_a20_pinctrl_match[] = { { .compatible ="allwinner,sun7i-a20-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun8i-a23-r.c +1
-1@@ -119,7 +119,7 @@ static int sun8i_a23_r_pinctrl_probe(struct platform_device *pdev)return ret; } -static struct of_device_id sun8i_a23_r_pinctrl_match[] = { +static const struct of_device_id sun8i_a23_r_pinctrl_match[] = { { .compatible ="allwinner,sun8i-a23-r-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun8i-a23.c +1
-1@@ -571,7 +571,7 @@ static int sun8i_a23_pinctrl_probe(struct platform_device *pdev) &sun8i_a23_pinctrl_data); } -static struct of_device_id sun8i_a23_pinctrl_match[] = { +static const struct of_device_id sun8i_a23_pinctrl_match[] = { { .compatible ="allwinner,sun8i-a23-pinctrl" , }, {} };drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c +1
-1@@ -729,7 +729,7 @@ static int sun9i_a80_pinctrl_probe(struct platform_device *pdev) &sun9i_a80_pinctrl_data); } -static struct of_device_id sun9i_a80_pinctrl_match[] = { +static const struct of_device_id sun9i_a80_pinctrl_match[] = { { .compatible ="allwinner,sun9i-a80-pinctrl" , }, {} };drivers/pinctrl/vt8500/pinctrl-vt8500.c +1
-1@@ -478,7 +478,7 @@ static int vt8500_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="via,vt8500-pinctrl" }, {/* sentinel */ }, };drivers/pinctrl/vt8500/pinctrl-wm8505.c +1
-1@@ -509,7 +509,7 @@ static int wm8505_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="wm,wm8505-pinctrl" }, {/* sentinel */ }, };drivers/pinctrl/vt8500/pinctrl-wm8650.c +1
-1@@ -347,7 +347,7 @@ static int wm8650_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="wm,wm8650-pinctrl" }, {/* sentinel */ }, };drivers/pinctrl/vt8500/pinctrl-wm8750.c +1
-1@@ -386,7 +386,7 @@ static int wm8750_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="wm,wm8750-pinctrl" }, {/* sentinel */ }, };drivers/pinctrl/vt8500/pinctrl-wm8850.c +1
-1@@ -365,7 +365,7 @@ static int wm8850_pinctrl_remove(struct platform_device *pdev)return wmt_pinctrl_remove (pdev); } -static struct of_device_id wmt_pinctrl_of_match[] = { +static const struct of_device_id wmt_pinctrl_of_match[] = { { .compatible ="wm,wm8850-pinctrl" }, {/* sentinel */ }, };
Re: [PATCH 35/35 linux-next] pinctrl: constify of_device_id array
In reply to Fabian FrederickQuoted 4 lines · Fabian Frederick
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Patch applied with the ACKs. Had to do some fixup on some MTK controllers, no big deal.
Yours,
Linus Walleij
Re: [PATCH 32/35 linux-next] clk: constify of_device_id array
In reply to Fabian FrederickQuoting Fabian Frederick (2015-03-16 12:59:06)
Quoted 4 lines
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Quoted 140 lines
--- drivers/clk/clk-palmas.c | 2 +- drivers/clk/st/clkgen-fsyn.c | 2 +- drivers/clk/st/clkgen-mux.c | 8 ++++---- drivers/clk/st/clkgen-pll.c | 4 ++-- drivers/clk/ti/clk-dra7-atl.c | 2 +- drivers/clk/ti/clockdomain.c | 2 +- drivers/clk/versatile/clk-vexpress-osc.c | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-)drivers/clk/clk-palmas.c +1
-1@@ -161,7 +161,7 @@ static struct palmas_clks_of_match_data palmas_of_clk32kgaudio = { }, }; -static struct of_device_id palmas_clks_of_match[] = { +static const struct of_device_id palmas_clks_of_match[] = { { .compatible ="ti,palmas-clk32kg" , .data = &palmas_of_clk32kg,drivers/clk/st/clkgen-fsyn.c +1
-1@@ -1057,7 +1057,7 @@ static struct clk * __init st_clk_register_quadfs_fsynth(return clk; } -static struct of_device_id quadfs_of_match[] = { +static const struct of_device_id quadfs_of_match[] = { { .compatible ="st,stih416-quadfs216" , .data = &st_fs216c65_416drivers/clk/st/clkgen-mux.c +4
-4@@ -341,7 +341,7 @@ static struct clkgena_divmux_data st_divmux_c32odf3 = { .fb_start_bit_idx = 24, }; -static struct of_device_id clkgena_divmux_of_match[] = { +static const struct of_device_id clkgena_divmux_of_match[] = { { .compatible ="st,clkgena-divmux-c65-hs" , .data = &st_divmux_c65hs,@@ -479,7 +479,7 @@ static struct clkgena_prediv_data prediv_c32_data = { .table = prediv_table16, }; -static struct of_device_id clkgena_prediv_of_match[] = { +static const struct of_device_id clkgena_prediv_of_match[] = { { .compatible ="st,clkgena-prediv-c65" , .data = &prediv_c65_data }, { .compatible ="st,clkgena-prediv-c32" , .data = &prediv_c32_data }, {}@@ -586,7 +586,7 @@ static struct clkgen_mux_data stih407_a9_mux_data = { .width = 2, }; -static struct of_device_id mux_of_match[] = { +static const struct of_device_id mux_of_match[] = { { .compatible ="st,stih416-clkgenc-vcc-hd" , .data = &clkgen_mux_c_vcc_hd_416,@@ -693,7 +693,7 @@ static struct clkgen_vcc_data st_clkgenf_vcc_416 = { .lock = &clkgenf_lock, }; -static struct of_device_id vcc_of_match[] = { +static const struct of_device_id vcc_of_match[] = { { .compatible ="st,stih416-clkgenc" , .data = &st_clkgenc_vcc_416 }, { .compatible ="st,stih416-clkgenf" , .data = &st_clkgenf_vcc_416 }, {}drivers/clk/st/clkgen-pll.c +2
-2@@ -593,7 +593,7 @@ static struct clk * __init clkgen_odf_register(const char *parent_name,return clk; } -static struct of_device_id c32_pll_of_match[] = { +static const struct of_device_id c32_pll_of_match[] = { { .compatible ="st,plls-c32-a1x-0" , .data = &st_pll3200c32_a1x_0,@@ -708,7 +708,7 @@ err: }CLK_OF_DECLARE (clkgen_c32_pll,"st,clkgen-plls-c32" , clkgen_c32_pll_setup); -static struct of_device_id c32_gpu_pll_of_match[] = { +static const struct of_device_id c32_gpu_pll_of_match[] = { { .compatible ="st,stih415-gpu-pll-c32" , .data = &st_pll1200c32_gpu_415,drivers/clk/ti/clk-dra7-atl.c +1
-1@@ -294,7 +294,7 @@ static int of_dra7_atl_clk_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id of_dra7_atl_clk_match_tbl[] = { +static const struct of_device_id of_dra7_atl_clk_match_tbl[] = { { .compatible ="ti,dra7-atl" , }, {}, };drivers/clk/ti/clockdomain.c +1
-1@@ -52,7 +52,7 @@ static void __init of_ti_clockdomain_setup(struct device_node *node) } } -static struct of_device_id ti_clkdm_match_table[]__initdata = { +static const struct of_device_id ti_clkdm_match_table[]__initconst = { { .compatible ="ti,clockdomain" }, { } };drivers/clk/versatile/clk-vexpress-osc.c +1
-1@@ -110,7 +110,7 @@ static int vexpress_osc_probe(struct platform_device *pdev)return 0 ; } -static struct of_device_id vexpress_osc_of_match[] = { +static const struct of_device_id vexpress_osc_of_match[] = { { .compatible ="arm,vexpress-osc" , }, {} };Signature · 1 line
2.1.0
Re: [PATCH 32/35 linux-next] clk: constify of_device_id array
Quoted 12 lines · On 18 March 2015 at 15:15 Michael Turquette <[email protected]> wrote:
Quoting Fabian Frederick (2015-03-16 12:59:06)
Quoted 4 lines
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Thanks :)
btw, something I forgot to mention in changelog is the __initdata -> __initconst for ti_clkdm_match_table[]
I can send it again with a new changelog if necessary ...
Regards,
Fabian
Quoted 148 lines
Quoted 148 lines
---
? drivers/clk/clk-palmas.c? ? ? ? ? ? ? ? ?| 2 +- ? drivers/clk/st/clkgen-fsyn.c? ? ? ? ? ? ?| 2 +- ? drivers/clk/st/clkgen-mux.c? ? ? ? ? ? ? | 8 ++++---- ? drivers/clk/st/clkgen-pll.c? ? ? ? ? ? ? | 4 ++-- ? drivers/clk/ti/clk-dra7-atl.c? ? ? ? ? ? | 2 +- ? drivers/clk/ti/clockdomain.c? ? ? ? ? ? ?| 2 +- ? drivers/clk/versatile/clk-vexpress-osc.c | 2 +-? 7 files changed, 11 insertions(+), 11 deletions(-)
drivers/clk/clk-palmas.c +0
-0@@ -161,7 +161,7 @@ static struct palmas_clks_of_match_data palmas_of_clk32kgaudio = { ? ? ? ? ?}, ? };?
drivers/clk/clk-palmas.c +1
-1-static struct of_device_id palmas_clks_of_match[] = { +static const struct of_device_id palmas_clks_of_match[] = {? ? ? ? ?{
? ? ? ? ? ? ? ? ?.compatible = "ti,palmas-clk32kg", ? ? ? ? ? ? ? ? ?.data =&palmas_of_clk32kg,drivers/clk/st/clkgen-fsyn.c +0
-0@@ -1057,7 +1057,7 @@ static struct clk * __initst_clk_register_quadfs_fsynth(
? ? ? ? ?return clk;
? }
?drivers/clk/st/clkgen-fsyn.c +1
-1-static struct of_device_id quadfs_of_match[] = { +static const struct of_device_id quadfs_of_match[] = {? ? ? ? ?{
? ? ? ? ? ? ? ? ?.compatible = "st,stih416-quadfs216", ? ? ? ? ? ? ? ? ?.data =&st_fs216c65_416drivers/clk/st/clkgen-mux.c +0
-0@@ -341,7 +341,7 @@ static struct clkgena_divmux_data st_divmux_c32odf3 = { ? ? ? ? ?.fb_start_bit_idx = 24, ? };?
drivers/clk/st/clkgen-mux.c +1
-1-static struct of_device_id clkgena_divmux_of_match[] = { +static const struct of_device_id clkgena_divmux_of_match[] = {? ? ? ? ?{
? ? ? ? ? ? ? ? ?.compatible = "st,clkgena-divmux-c65-hs", ? ? ? ? ? ? ? ? ?.data =&st_divmux_c65hs,drivers/clk/st/clkgen-mux.c +0
-0@@ -479,7 +479,7 @@ static struct clkgena_prediv_data prediv_c32_data = { ? ? ? ? ?.table = prediv_table16, ? };?
drivers/clk/st/clkgen-mux.c +1
-1-static struct of_device_id clkgena_prediv_of_match[] = { +static const struct of_device_id clkgena_prediv_of_match[] = {? ? ? ? ?{ .compatible = "st,clkgena-prediv-c65", .data =
&prediv_c65_data}, ? ? ? ? ?{ .compatible = "st,clkgena-prediv-c32", .data =&prediv_c32_data}, ? ? ? ? ?{}drivers/clk/st/clkgen-mux.c +0
-0@@ -586,7 +586,7 @@ static struct clkgen_mux_data stih407_a9_mux_data = { ? ? ? ? ?.width = 2, ? };?
drivers/clk/st/clkgen-mux.c +1
-1-static struct of_device_id mux_of_match[] = { +static const struct of_device_id mux_of_match[] = {? ? ? ? ?{
? ? ? ? ? ? ? ? ?.compatible = "st,stih416-clkgenc-vcc-hd", ? ? ? ? ? ? ? ? ?.data =&clkgen_mux_c_vcc_hd_416,drivers/clk/st/clkgen-mux.c +0
-0@@ -693,7 +693,7 @@ static struct clkgen_vcc_data st_clkgenf_vcc_416 = { ? ? ? ? ?.lock = &clkgenf_lock, ? };?
drivers/clk/st/clkgen-mux.c +1
-1-static struct of_device_id vcc_of_match[] = { +static const struct of_device_id vcc_of_match[] = {? ? ? ? ?{ .compatible = "st,stih416-clkgenc", .data =
&st_clkgenc_vcc_416}, ? ? ? ? ?{ .compatible = "st,stih416-clkgenf", .data =&st_clkgenf_vcc_416}, ? ? ? ? ?{}drivers/clk/st/clkgen-pll.c +0
-0@@ -593,7 +593,7 @@ static struct clk * __init clkgen_odf_register(constchar *parent_name, ? ? ? ? ?return clk; ? }?
drivers/clk/st/clkgen-pll.c +1
-1-static struct of_device_id c32_pll_of_match[] = { +static const struct of_device_id c32_pll_of_match[] = {? ? ? ? ?{
? ? ? ? ? ? ? ? ?.compatible = "st,plls-c32-a1x-0", ? ? ? ? ? ? ? ? ?.data =&st_pll3200c32_a1x_0,drivers/clk/st/clkgen-pll.c +0
-0@@ -708,7 +708,7 @@ err: ? } ? CLK_OF_DECLARE(clkgen_c32_pll, "st,clkgen-plls-c32", clkgen_c32_pll_setup);?
drivers/clk/st/clkgen-pll.c +1
-1-static struct of_device_id c32_gpu_pll_of_match[] = { +static const struct of_device_id c32_gpu_pll_of_match[] = {? ? ? ? ?{
? ? ? ? ? ? ? ? ?.compatible = "st,stih415-gpu-pll-c32", ? ? ? ? ? ? ? ? ?.data =&st_pll1200c32_gpu_415,drivers/clk/ti/clk-dra7-atl.c +0
-0@@ -294,7 +294,7 @@ static int of_dra7_atl_clk_remove(struct platform_device *pdev) ? ? ? ? ?return 0; ? }?
drivers/clk/ti/clk-dra7-atl.c +1
-1-static struct of_device_id of_dra7_atl_clk_match_tbl[] = { +static const struct of_device_id of_dra7_atl_clk_match_tbl[] = {? ? ? ? ?{ .compatible = "ti,dra7-atl", },
? ? ? ? ?{},
? };drivers/clk/ti/clockdomain.c +0
-0@@ -52,7 +52,7 @@ static void __init of_ti_clockdomain_setup(struct device_node *node) ? ? ? ? ?} ? }?
drivers/clk/ti/clockdomain.c +1
-1-static struct of_device_id ti_clkdm_match_table[]__initdata = { +static const struct of_device_id ti_clkdm_match_table[]__initconst = {? ? ? ? ?{ .compatible = "ti,clockdomain" },
? ? ? ? ?{ }
? };drivers/clk/versatile/clk-vexpress-osc.c +0
-0@@ -110,7 +110,7 @@ static int vexpress_osc_probe(struct platform_device *pdev) ? ? ? ? ?return 0; ? }?
drivers/clk/versatile/clk-vexpress-osc.c +1
-1-static struct of_device_id vexpress_osc_of_match[] = { +static const struct of_device_id vexpress_osc_of_match[] = {? ? ? ? ?{ .compatible = "arm,vexpress-osc", },
? ? ? ? ?{}
? };
--
2.1.0
Re: [PATCH 32/35 linux-next] clk: constify of_device_id array
Quoted 11 lines · Fabian Frederick
Quoted 11 lines · On 18 March 2015 at 15:15 Michael Turquette <[email protected]> wrote:
Quoting Fabian Frederick (2015-03-16 12:59:06)
Quoted 4 lines
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Quoted 9 lines
Quoted 1 line
Thanks :)
btw, something I forgot to mention in changelog is the
__initdata->__initconstfor ti_clkdm_match_table[]I can send it again with a new changelog if necessary ...
Did you want us to take this through clk-next? If so please resend with the new commit text.
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Re: [PATCH 32/35 linux-next] clk: constify of_device_id array
Quoted 25 lines · On 27 March 2015 at 08:19 Stephen Boyd <[email protected]> wrote:
Quoted 19 lines · Fabian Frederick
Quoted 12 lines · On 18 March 2015 at 15:15 Michael Turquette <[email protected]> wrote:
Quoting Fabian Frederick (2015-03-16 12:59:06)
Quoted 4 lines
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>Thanks :)
btw, something I forgot to mention in changelog is the
__initdata->__initconst
for ti_clkdm_match_table[]
Quoted 5 lines
Quoted 2 lines
I can send it again with a new changelog if necessary ...
Did you want us to take this through clk-next? If so please resend with the new commit text.
Of course :) I hope V2 is ok.
Regards,
Fabian
Quoted 4 lines
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project