diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-05-21 15:57:39 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-09-11 02:56:37 -0400 |
commit | c1411bfae63286fbe6e63a1ec558eb4eb812859c (patch) | |
tree | 1f4d6bdff406deeceac196275d42cd4f05bb66ae /include/linux/atmel_tc.h | |
parent | e5b5d0209f0d01cdb11ab7f7af4ab9f48d0b3031 (diff) |
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 { | |||
63 | struct platform_device *pdev; | 63 | struct platform_device *pdev; |
64 | struct resource *iomem; | 64 | struct resource *iomem; |
65 | void __iomem *regs; | 65 | void __iomem *regs; |
66 | struct atmel_tcb_config *tcb_config; | 66 | const struct atmel_tcb_config *tcb_config; |
67 | int irq[3]; | 67 | int irq[3]; |
68 | struct clk *clk[3]; | 68 | struct clk *clk[3]; |
69 | struct list_head node; | 69 | struct list_head node; |