]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
misc/atmel_tc: make atmel_tc.tcb_config member point to const data
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 21 May 2012 19:57:39 +0000 (21:57 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 23 Jul 2012 15:45:20 +0000 (17:45 +0200)
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>
include/linux/atmel_tc.h

index 1d14b1dc1aee69588ce68329e5fa71189d277016..89a931babecf86ebbf95c6a0e8b648840d06ad06 100644 (file)
@@ -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;