proximity: vl53l0x: Prefer pre-initialized interrupt flags
authorMarkuss Broks <markuss.broks@gmail.com>
Mon, 23 May 2022 17:53:41 +0000 (20:53 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 11 Jun 2022 13:35:28 +0000 (14:35 +0100)
commit76d1eb09eb9e962b43c9cc45cae1799bf5fb210e
tree1331516390e9b60e531bbe10ef90c68c55580739
parent2b9208963b81f6671b9b4cfa9dd92314317de156
proximity: vl53l0x: Prefer pre-initialized interrupt flags

On some boards interrupt type might be different than falling edge,
like hardcoded in driver. Leave interrupt flags as they were pre-configured
from the device-tree. If they're not provided, default to falling edge
interrupts.

Signed-off-by: Markuss Broks <markuss.broks@gmail.com>
Link: https://lore.kernel.org/r/20220523175344.5845-3-markuss.broks@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/vl53l0x-i2c.c