summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2020-03-04 10:24:25 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-04-19 16:56:41 +0100
commit9b7a12c3e090cf3fba6f66f1f23abbc6e0e86021 (patch)
tree724890783416a11458579538317de763641a0038 /drivers/staging
parent587122cb8b43421ce7b90a2a3f07eb0c498da2a6 (diff)
iio: light: isl29125: fix iio_triggered_buffer_{predisable,postenable} positions
The iio_triggered_buffer_{predisable,postenable} functions attach/detach the poll functions. For the predisable hook, the disable code should occur before detaching the poll func, and for the postenable hook, the poll func should be attached before the enable code. This change reworks the predisable/postenable hooks so that the pollfunc is attached/detached in the correct position. It also balances the calls a bit, by grouping the preenable and the iio_triggered_buffer_postenable() into a single isl29125_buffer_postenable() function. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/staging')
0 files changed, 0 insertions, 0 deletions