staging:iio:ad799x: 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:02:19 +0000 (13:02 +0100)
commitba1d79613df3e9c015ac695a22b12a6eb413794f
treebc8aa603a986ac26773f39867343ed75bba9392f
parent69582b888408cb218a6b346c345db7a66046497b
staging:iio:ad799x: 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/ad799x_core.c