diff options
author | Johan Hovold <jhovold@gmail.com> | 2014-01-03 01:49:20 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-04 00:42:23 +0400 |
commit | b693468155f5650dcaf01089ecf2b56ab66f9271 (patch) | |
tree | c23712581503f26084d7667d1e787c78329e3fdc /drivers/usb/serial/pl2303.c | |
parent | 0e16114f2db4838251fb64f3b550996ad3585890 (diff) | |
download | linux-b693468155f5650dcaf01089ecf2b56ab66f9271.tar.xz |
USB: pl2303: make type data const
Declare constant device-type data as const.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/pl2303.c')
-rw-r--r-- | drivers/usb/serial/pl2303.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 253cc9c367c1..9951dfddc784 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c @@ -141,7 +141,7 @@ struct pl2303_type_data { }; struct pl2303_serial_private { - struct pl2303_type_data *type; + const struct pl2303_type_data *type; unsigned long quirks; }; @@ -153,7 +153,7 @@ struct pl2303_private { u8 line_settings[7]; }; -static struct pl2303_type_data pl2303_type_data[TYPE_COUNT] = { +static const struct pl2303_type_data pl2303_type_data[TYPE_COUNT] = { [TYPE_01] = { .max_baud_rate = 1228800, .quirks = PL2303_QUIRK_LEGACY, |