From: Johan Hovold Date: Thu, 2 Jan 2014 21:49:20 +0000 (+0100) Subject: USB: pl2303: make type data const X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b693468155f5650dcaf01089ecf2b56ab66f9271;p=linux-beck.git USB: pl2303: make type data const Declare constant device-type data as const. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- 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,