counter: 104-quad-8: Add Generic Counter interface support
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Tue, 2 Apr 2019 06:30:40 +0000 (15:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 19:33:38 +0000 (21:33 +0200)
commitf1d8a071d45bf13dd9bb9f1777133ca8a1cafebe
tree042e0caf517a655bf8e1f42b8be857dc44b38579
parente854bac92bc95260985d043f3ff7bf8e6cd6905c
counter: 104-quad-8: Add Generic Counter interface support

This patch adds support for the Generic Counter interface to the
104-QUAD-8 driver. The existing 104-QUAD-8 device interface should not
be affected by this patch; all changes are intended as supplemental
additions as perceived by the user.

Generic Counter Counts are created for the eight quadrature channel
counts, as well as their respective quadrature A and B Signals (which
are associated via respective Synapse structures) and respective index
Signals.

The new Generic Counter interface sysfs attributes are intended to
expose the same functionality and data available via the existing
104-QUAD-8 IIO device interface; the Generic Counter interface serves
to provide the respective functionality and data in a standard way
expected of counter devices.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
MAINTAINERS
drivers/counter/104-quad-8.c [new file with mode: 0644]
drivers/counter/Kconfig
drivers/counter/Makefile
drivers/iio/counter/104-quad-8.c [deleted file]
drivers/iio/counter/Kconfig
drivers/iio/counter/Makefile