Commit b6934681 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

USB: pl2303: make type data const

Declare constant device-type data as const.
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0e16114f
...@@ -141,7 +141,7 @@ struct pl2303_type_data { ...@@ -141,7 +141,7 @@ struct pl2303_type_data {
}; };
struct pl2303_serial_private { struct pl2303_serial_private {
struct pl2303_type_data *type; const struct pl2303_type_data *type;
unsigned long quirks; unsigned long quirks;
}; };
...@@ -153,7 +153,7 @@ struct pl2303_private { ...@@ -153,7 +153,7 @@ struct pl2303_private {
u8 line_settings[7]; 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] = { [TYPE_01] = {
.max_baud_rate = 1228800, .max_baud_rate = 1228800,
.quirks = PL2303_QUIRK_LEGACY, .quirks = PL2303_QUIRK_LEGACY,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment