iio: Implement counter channel type and info constants
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Wed, 28 Sep 2016 17:59:49 +0000 (13:59 -0400)
committerJonathan Cameron <jic23@kernel.org>
Sat, 1 Oct 2016 16:06:02 +0000 (17:06 +0100)
commit1a8f324aa1f2237caef1c6633734785bbdcffeed
treee207a5ba454dff12460ec7c65578269aacfba129
parent9ecca12edde435efc6d08f7a1e877ba9929a6c93
iio: Implement counter channel type and info constants

Quadrature encoders, such as rotary encoders and linear encoders, are
devices which are capable of encoding the relative position and
direction of motion of a shaft. This patch introduces several IIO
constants for supporting quadrature encoder counter devices.

  IIO_COUNT: Current count (main data provided by the counter device)
  IIO_INDEX: Counter device index value

Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/ABI/testing/sysfs-bus-iio
drivers/iio/industrialio-core.c
include/uapi/linux/iio/types.h