diff options
author | Brian Masney | 2018-04-21 02:41:51 +0200 |
---|---|---|
committer | Jonathan Cameron | 2018-04-28 17:17:59 +0200 |
commit | 09d0bfae7bcaf49ce596b07353f7b40abc94e235 (patch) | |
tree | 3c91d5f9ef2178e104be06553d3147859220c46f /drivers/staging/iio/light/tsl2x7x.c | |
parent | staging: iio: tsl2x7x: rename prx to prox for consistency (diff) | |
download | kernel-qcow2-linux-09d0bfae7bcaf49ce596b07353f7b40abc94e235.tar.gz kernel-qcow2-linux-09d0bfae7bcaf49ce596b07353f7b40abc94e235.tar.xz kernel-qcow2-linux-09d0bfae7bcaf49ce596b07353f7b40abc94e235.zip |
staging: iio: tsl2x7x: use device defaults for als_time, prox_time and wait_time
This patch changes the defaults of the als_time, prox_time and
wait_time to match the defaults according to the TSL2772 datasheet.
Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/staging/iio/light/tsl2x7x.c')
-rw-r--r-- | drivers/staging/iio/light/tsl2x7x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/iio/light/tsl2x7x.c b/drivers/staging/iio/light/tsl2x7x.c index 3f0b75607287..115d13f41ec2 100644 --- a/drivers/staging/iio/light/tsl2x7x.c +++ b/drivers/staging/iio/light/tsl2x7x.c @@ -209,11 +209,11 @@ static const struct tsl2x7x_lux *tsl2x7x_default_lux_table_group[] = { }; static const struct tsl2x7x_settings tsl2x7x_default_settings = { - .als_time = 219, /* 101 ms */ + .als_time = 255, /* 2.73 ms */ .als_gain = 0, - .prox_time = 254, /* 5.4 ms */ + .prox_time = 255, /* 2.73 ms */ .prox_gain = 0, - .wait_time = 245, + .wait_time = 255, .prox_config = 0, .als_gain_trim = 1000, .als_cal_target = 150, |