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-08-03 13:58:37 +0200 |
commit | e83d17ea564b45f383f01b2d9e38b3cded7ae680 (patch) | |
tree | 3c45158f8623edef46eb4a827ff7ccea343bfcf2 /drivers/tty | |
parent | 83a01e729141bfad5e249b4a737105c525f53786 (diff) | |
download | blackbird-op-linux-e83d17ea564b45f383f01b2d9e38b3cded7ae680.tar.gz blackbird-op-linux-e83d17ea564b45f383f01b2d9e38b3cded7ae680.zip |
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index d5c689d6217e..20e911724027 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 { |