summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-05-21 19:57:39 (GMT)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-08-03 11:58:37 (GMT)
commite83d17ea564b45f383f01b2d9e38b3cded7ae680 (patch)
tree3c45158f8623edef46eb4a827ff7ccea343bfcf2
parent83a01e729141bfad5e249b4a737105c525f53786 (diff)
downloadlinux-e83d17ea564b45f383f01b2d9e38b3cded7ae680.tar.xz
serial/imx: make imx_port.devdata member point to const data
This prepares *of_device_id.data becoming const. Without this change the following warning would occur: drivers/tty/serial/imx.c: In function 'serial_imx_probe_dt': drivers/tty/serial/imx.c:1430:17: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-rw-r--r--drivers/tty/serial/imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index d5c689d6..20e9117 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -206,7 +206,7 @@ struct imx_port {
unsigned short trcv_delay; /* transceiver delay */
struct clk *clk_ipg;
struct clk *clk_per;
- struct imx_uart_data *devdata;
+ const struct imx_uart_data *devdata;
};
struct imx_port_ucrs {