• Andreas Klinger's avatar
    iio: srf08: add sensor type srf10 · c5bf4a04
    Andreas Klinger authored
    Ultrasonic sensor srf10 is quite similar to srf08 and now also supported by
    the driver as device tree compatible string.
    
    It was necessary to prepare the source for supplementary sensors. This is
    done by enum srf08_sensor_type.
    
    The most significiant difference between srf08 and srf10 is another range
    and values of register gain (in the driver it's call sensitivity).
    Therefore the array of it is extended and dependent of the sensor type.
    Signed-off-by: default avatarAndreas Klinger <ak@it-klinger.de>
    Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
    c5bf4a04
srf08.c 12.5 KB