OpenCloudOS-Kernel/drivers/counter
William Breathitt Gray 728246e8f7 counter: 104-quad-8: Return error when invalid mode during ceiling_write
The 104-QUAD-8 only has two count modes where a ceiling value makes
sense: Range Limit and Modulo-N. Outside of these two modes, setting a
ceiling value is an invalid operation -- so let's report it as such by
returning -EINVAL.

Fixes: fc06926226 ("counter: 104-quad-8: Add lock guards - generic interface")
Acked-by: Syed Nayyar Waris <syednwaris@gmail.com>
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Link: https://lore.kernel.org/r/a2147f022829b66839a1db5530a7fada47856847.1627990337.git.vilhelm.gray@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-08-09 20:17:36 +01:00
..
104-quad-8.c counter: 104-quad-8: Return error when invalid mode during ceiling_write 2021-08-09 20:17:36 +01:00
Kconfig counter: Add support for Intel Quadrature Encoder Peripheral 2021-06-03 18:24:14 +01:00
Makefile counter: Add support for Intel Quadrature Encoder Peripheral 2021-06-03 18:24:14 +01:00
counter.c counter: Simplify the count_read and count_write callbacks 2019-10-18 19:47:27 +01:00
ftm-quaddec.c counter: ftm-quaddec: Add const qualifier for actions_list array 2021-06-09 16:27:58 +01:00
intel-qep.c counter: intel-qep: Remove linux/bitops.h include 2021-07-13 19:07:10 +01:00
interrupt-cnt.c counter: interrupt-cnt: Add const qualifier for actions_list array 2021-06-13 17:00:18 +01:00
microchip-tcb-capture.c counter: microchip-tcb-capture: Add const qualifier for actions_list array 2021-06-09 16:30:34 +01:00
stm32-lptimer-cnt.c counter: stm32-lptimer-cnt: Add const qualifier for actions_list array 2021-06-09 16:31:48 +01:00
stm32-timer-cnt.c counter: stm32-timer-cnt: Add const qualifier for actions_list array 2021-06-09 16:32:47 +01:00
ti-eqep.c counter:ti-eqep: remove floor 2021-01-14 20:56:56 +00:00