]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
iio: hx711: add triggered buffer support
authorAndreas Klinger <ak@it-klinger.de>
Wed, 13 Dec 2017 17:10:11 +0000 (18:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:42 +0000 (16:03 +0100)
commitd3bf60450d47c180d6588ae0d0bb9ea7147718df
tree98bcc6da4db876dca1fd83c67d6139b54a3817b5
parent8bcf024f06f11c0c9597ecbbfbe291a9a5092204
iio: hx711: add triggered buffer support

Add buffer to device data struct and add trigger function

Data format is quite simple:
      voltage - channel 0   32 Bit
      voltage - channel 1   32 Bit
      timestamp             64 Bit

Using both channels at the same time is working quite slow because of
changing the channel which needs a dummy read.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/Kconfig
drivers/iio/adc/hx711.c