Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] media: platform: s5p: Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
[k.debski@samsung.com: Fix misspelling in title (s/sp5/s5p/)]
Signed-off-by: Kamil Debski <k.debski@samsung.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Krzysztof Kozlowski and committed by
Mauro Carvalho Chehab
6425f646 ef00b7ae

+3 -3
+1 -1
drivers/media/platform/s5p-g2d/g2d.c
··· 787 787 }; 788 788 MODULE_DEVICE_TABLE(of, exynos_g2d_match); 789 789 790 - static struct platform_device_id g2d_driver_ids[] = { 790 + static const struct platform_device_id g2d_driver_ids[] = { 791 791 { 792 792 .name = "s5p-g2d", 793 793 .driver_data = (unsigned long)&g2d_drvdata_v3x,
+1 -1
drivers/media/platform/s5p-mfc/s5p_mfc.c
··· 1461 1461 .fw_name[0] = "s5p-mfc-v8.fw", 1462 1462 }; 1463 1463 1464 - static struct platform_device_id mfc_driver_ids[] = { 1464 + static const struct platform_device_id mfc_driver_ids[] = { 1465 1465 { 1466 1466 .name = "s5p-mfc", 1467 1467 .driver_data = (unsigned long)&mfc_drvdata_v5,
+1 -1
drivers/media/platform/s5p-tv/hdmi_drv.c
··· 96 96 struct hdmi_resources res; 97 97 }; 98 98 99 - static struct platform_device_id hdmi_driver_types[] = { 99 + static const struct platform_device_id hdmi_driver_types[] = { 100 100 { 101 101 .name = "s5pv210-hdmi", 102 102 }, {