]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
USB: pl2303: make type data const
authorJohan Hovold <jhovold@gmail.com>
Thu, 2 Jan 2014 21:49:20 +0000 (22:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Jan 2014 20:42:23 +0000 (12:42 -0800)
Declare constant device-type data as const.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/pl2303.c

index 253cc9c367c15044d5b5aca95b0dc86cfca2b619..9951dfddc784aec97a218ad7a290fc95dd293ca0 100644 (file)
@@ -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,