mirror of
https://github.com/torvalds/linux.git
synced 2024-12-21 02:21:36 +00:00
fc948409cc
Check input to be sure it matches Semtech sx9310 specification and
can fit into debounce register.
Compare argument writen to thresh_.._period with read from same
sysfs attribute:
Before: Afer:
write | read write | read
-1 | 8 -1 fails: -EINVAL
0 | 8 0 | 0
1 | 0 1 | 0
2..15 | 2^log2(N) 2..15 | 2^log2(N)
16 | 0 >= 16 fails: -EINVAL
Fixes:
|
||
---|---|---|
.. | ||
as3935.c | ||
cros_ec_mkbp_proximity.c | ||
isl29501.c | ||
Kconfig | ||
Makefile | ||
mb1232.c | ||
ping.c | ||
pulsedlight-lidar-lite-v2.c | ||
rfd77402.c | ||
srf04.c | ||
srf08.c | ||
sx9310.c | ||
sx9500.c | ||
vcnl3020.c | ||
vl53l0x-i2c.c |