Skip to content

Commit

Permalink
staging:iio:light:tsl2563 constify gain level table.
Browse files Browse the repository at this point in the history
Trivial cleanup.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Apr 26, 2011
1 parent 33789dc commit 1ff7e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/iio/light/tsl2563.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1ff7e1d

Please sign in to comment.