iio:adc:ad799x: Write default config on probe and reset alert status on probe
authorPeter Meerwald <pmeerw@pmeerw.net>
Sat, 6 Dec 2014 05:54:00 +0000 (05:54 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 13 Jul 2014 20:57:35 +0000 (21:57 +0100)
commit0f7ddcc1bff1983d0be1573f971995371669fa4f
treec1702ce3ef24db0117f8360c0e604f8d0b3c22d2
parent89ca79afe50e9e9608ad3315bf099fdbb82c4eb5
iio:adc:ad799x: Write default config on probe and reset alert status on probe

writing ALERT_EN and BUSY_ALERT to the chip config register clears
pending alerts, BUSY_ALERT is cleared when reading back the register

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad799x.c