Commit c1411bfa authored by Uwe Kleine-König's avatar Uwe Kleine-König

misc/atmel_tc: make atmel_tc.tcb_config member point to const data

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

	drivers/misc/atmel_tclib.c: In function 'tc_probe':
	drivers/misc/atmel_tclib.c:170: warning: assignment discards qualifiers from pointer target type
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent e5b5d020
...@@ -63,7 +63,7 @@ struct atmel_tc { ...@@ -63,7 +63,7 @@ struct atmel_tc {
struct platform_device *pdev; struct platform_device *pdev;
struct resource *iomem; struct resource *iomem;
void __iomem *regs; void __iomem *regs;
struct atmel_tcb_config *tcb_config; const struct atmel_tcb_config *tcb_config;
int irq[3]; int irq[3];
struct clk *clk[3]; struct clk *clk[3];
struct list_head node; struct list_head node;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment