• A
    iio: adc: ti-ads1015: add threshold event support · d9f39bab
    Akinobu Mita 提交于
    The ADS1015 device provides programmable comparator that can issue an
    interrupt on the ALERT pin.  This change adds the iio threshold event
    support for that feature.
    
    The ADS1015 device only have a single config register which contains an
    input multiplexer selection, comparator settings, and etc.  So only a
    single event channel can be enabled at a time.  Also enabling both buffer
    and event are prohibited for simplicity.
    
    Cc: Daniel Baluta <daniel.baluta@gmail.com>
    Cc: Jonathan Cameron <jic23@kernel.org>
    Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
    Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
    d9f39bab
ti-ads1015.c 28.6 KB