staging:iio:light:tsl2563 constify gain level table.
authorJonathan Cameron <jic23@cam.ac.uk>
Mon, 18 Apr 2011 11:58:56 +0000 (12:58 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Apr 2011 00:24:30 +0000 (17:24 -0700)
Trivial cleanup.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/light/tsl2563.c

index 8c00584c53dba55af69a157a7c4b41b071616ffd..19b7215a7c569c7fcd268880515c8bbc5392acc6 100644 (file)
@@ -92,7 +92,7 @@ struct tsl2563_gainlevel_coeff {
        u16 max;
 };
 
-static struct tsl2563_gainlevel_coeff tsl2563_gainlevel_table[] = {
+static const struct tsl2563_gainlevel_coeff tsl2563_gainlevel_table[] = {
        {
                .gaintime       = TSL2563_TIMING_400MS | TSL2563_TIMING_GAIN16,
                .min            = 0,
@@ -122,7 +122,7 @@ struct tsl2563_chip {
        /* Remember state for suspend and resume functions */
        pm_message_t            state;
 
-       struct tsl2563_gainlevel_coeff *gainlevel;
+       struct tsl2563_gainlevel_coeff const *gainlevel;
 
        u16                     low_thres;
        u16                     high_thres;