diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-05-21 21:57:39 +0200 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-09-11 08:56:37 +0200 |
commit | c1411bfae63286fbe6e63a1ec558eb4eb812859c (patch) | |
tree | 1f4d6bdff406deeceac196275d42cd4f05bb66ae /include/linux/atmel_tc.h | |
parent | e5b5d0209f0d01cdb11ab7f7af4ab9f48d0b3031 (diff) | |
download | lwn-c1411bfae63286fbe6e63a1ec558eb4eb812859c.tar.gz lwn-c1411bfae63286fbe6e63a1ec558eb4eb812859c.zip |
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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'include/linux/atmel_tc.h')
-rw-r--r-- | include/linux/atmel_tc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/atmel_tc.h b/include/linux/atmel_tc.h index 1d14b1dc1aee..89a931babecf 100644 --- a/include/linux/atmel_tc.h +++ b/include/linux/atmel_tc.h @@ -63,7 +63,7 @@ struct atmel_tc { struct platform_device *pdev; struct resource *iomem; void __iomem *regs; - struct atmel_tcb_config *tcb_config; + const struct atmel_tcb_config *tcb_config; int irq[3]; struct clk *clk[3]; struct list_head node; |