summaryrefslogtreecommitdiff
path: root/include/linux/atmel_tc.h
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-05-21 23:57:39 +0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-09-11 10:56:37 +0400
commitc1411bfae63286fbe6e63a1ec558eb4eb812859c (patch)
tree1f4d6bdff406deeceac196275d42cd4f05bb66ae /include/linux/atmel_tc.h
parente5b5d0209f0d01cdb11ab7f7af4ab9f48d0b3031 (diff)
downloadlinux-c1411bfae63286fbe6e63a1ec558eb4eb812859c.tar.xz
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.h2
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;