Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09d0bfae authored by Brian Masney's avatar Brian Masney Committed by Jonathan Cameron
Browse files

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: default avatarBrian Masney <masneyb@onstation.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent dc6ebdd3
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -209,11 +209,11 @@ static const struct tsl2x7x_lux *tsl2x7x_default_lux_table_group[] = {
};
};


static const struct tsl2x7x_settings tsl2x7x_default_settings = {
static const struct tsl2x7x_settings tsl2x7x_default_settings = {
	.als_time = 219, /* 101 ms */
	.als_time = 255, /* 2.73 ms */
	.als_gain = 0,
	.als_gain = 0,
	.prox_time = 254, /* 5.4 ms */
	.prox_time = 255, /* 2.73 ms */
	.prox_gain = 0,
	.prox_gain = 0,
	.wait_time = 245,
	.wait_time = 255,
	.prox_config = 0,
	.prox_config = 0,
	.als_gain_trim = 1000,
	.als_gain_trim = 1000,
	.als_cal_target = 150,
	.als_cal_target = 150,