[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>
This commit is contained in:
parent
ef00b7ae68
commit
6425f646ff
3 changed files with 3 additions and 3 deletions
|
@ -787,7 +787,7 @@ static const struct of_device_id exynos_g2d_match[] = {
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, exynos_g2d_match);
|
MODULE_DEVICE_TABLE(of, exynos_g2d_match);
|
||||||
|
|
||||||
static struct platform_device_id g2d_driver_ids[] = {
|
static const struct platform_device_id g2d_driver_ids[] = {
|
||||||
{
|
{
|
||||||
.name = "s5p-g2d",
|
.name = "s5p-g2d",
|
||||||
.driver_data = (unsigned long)&g2d_drvdata_v3x,
|
.driver_data = (unsigned long)&g2d_drvdata_v3x,
|
||||||
|
|
|
@ -1461,7 +1461,7 @@ static struct s5p_mfc_variant mfc_drvdata_v8 = {
|
||||||
.fw_name[0] = "s5p-mfc-v8.fw",
|
.fw_name[0] = "s5p-mfc-v8.fw",
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device_id mfc_driver_ids[] = {
|
static const struct platform_device_id mfc_driver_ids[] = {
|
||||||
{
|
{
|
||||||
.name = "s5p-mfc",
|
.name = "s5p-mfc",
|
||||||
.driver_data = (unsigned long)&mfc_drvdata_v5,
|
.driver_data = (unsigned long)&mfc_drvdata_v5,
|
||||||
|
|
|
@ -96,7 +96,7 @@ struct hdmi_device {
|
||||||
struct hdmi_resources res;
|
struct hdmi_resources res;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device_id hdmi_driver_types[] = {
|
static const struct platform_device_id hdmi_driver_types[] = {
|
||||||
{
|
{
|
||||||
.name = "s5pv210-hdmi",
|
.name = "s5pv210-hdmi",
|
||||||
}, {
|
}, {
|
||||||
|
|
Loading…
Add table
Reference in a new issue