Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4dba011 authored by Uwe Kleine-König's avatar Uwe Kleine-König
Browse files

i2c/i2c-omap: add a const qualifier



This prepares *of_device_id.data becoming const. Without this change
the following warning would occur:

	drivers/i2c/busses/i2c-omap.c: In function 'omap_i2c_probe':
	drivers/i2c/busses/i2c-omap.c:1025: warning: assignment discards qualifiers from pointer target type

Reviewed-by: default avatarShubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent 01a04ddc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -944,7 +944,8 @@ omap_i2c_probe(struct platform_device *pdev)
	struct omap_i2c_dev	*dev;
	struct i2c_adapter	*adap;
	struct resource		*mem, *irq, *ioarea;
	struct omap_i2c_bus_platform_data *pdata = pdev->dev.platform_data;
	const struct omap_i2c_bus_platform_data *pdata =
		pdev->dev.platform_data;
	struct device_node	*node = pdev->dev.of_node;
	const struct of_device_id *match;
	irq_handler_t isr;