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)
commitec87197fb8518ce3f95a96d66355d01d83376617
treeb2084f5b60de018d4846703cd2d88a924448e5b8
parentba1d79613df3e9c015ac695a22b12a6eb413794f
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