]> 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)
commit1956729a35e7c909ad7b8071e9191c0ca6617565
treeb2084f5b60de018d4846703cd2d88a924448e5b8
parent5428db08256361885ae058cb20c08e1fa49e25f7
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