Commit 1ff7e1d8 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman

staging:iio:light:tsl2563 constify gain level table.

Trivial cleanup.
Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 33789dce
...@@ -92,7 +92,7 @@ struct tsl2563_gainlevel_coeff { ...@@ -92,7 +92,7 @@ struct tsl2563_gainlevel_coeff {
u16 max; 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, .gaintime = TSL2563_TIMING_400MS | TSL2563_TIMING_GAIN16,
.min = 0, .min = 0,
...@@ -122,7 +122,7 @@ struct tsl2563_chip { ...@@ -122,7 +122,7 @@ struct tsl2563_chip {
/* Remember state for suspend and resume functions */ /* Remember state for suspend and resume functions */
pm_message_t state; pm_message_t state;
struct tsl2563_gainlevel_coeff *gainlevel; struct tsl2563_gainlevel_coeff const *gainlevel;
u16 low_thres; u16 low_thres;
u16 high_thres; u16 high_thres;
......
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