Commit 806d4113 authored by Ferry Toth's avatar Ferry Toth Committed by Greg Kroah-Hartman
Browse files

iio: light: tsl2563: Do not hardcode interrupt trigger type



[ Upstream commit 027641b5 ]

Instead of hardcoding IRQ trigger type to IRQF_TRIGGER_RAISING,
let's respect the settings specified in the firmware description.
To be compatible with the older firmware descriptions, if trigger
type is not set up there, we'll set it to default (raising edge).

Fixes: 388be488 ("staging:iio: tsl2563 abi fixes and interrupt handling")
Fixes: bdab1001 ("staging:iio:light:tsl2563 remove old style event registration.")
Signed-off-by: default avatarFerry Toth <ftoth@exalondelft.nl>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221207190348.9347-1-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0d6282dc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment