]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:ad7291: Use event spec for threshold hysteresis
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 7 Oct 2013 14:11:00 +0000 (15:11 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 12 Oct 2013 12:04:22 +0000 (13:04 +0100)
commitae51c42adadb7c2701fb2dd26b03993a505763f1
treeb2084f5b60de018d4846703cd2d88a924448e5b8
parentc77dc3fe8123f563ec3a5214ac12fc02bc07e00f
staging:iio:ad7291: Use event spec for threshold hysteresis

Register the event threshold hysteresis attributes by using the new
IIO_EV_INFO_HYSTERESIS event spec type. This allows us to throw away a good
portion of boiler-plate code.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7291.c