• Jonathan Cameron's avatar
    staging:iio:core add in kernel interface mapping and getting IIO channels. · e27d75d7
    Jonathan Cameron authored
    Lifted from proposal for in kernel interface built on the out of staging
    branch.
    
    Two elements here:
    * Map as defined in "inkern.h"
    * Matching code to actually get the iio_dev and channel
    that we want from the global list of IIO devices.
    V4: Everything now built if iio is built (rather than being optional)
        Removal race condition prevented by using info pointer as a check
        of removal under a lock.
    V3: Drop the option of registering / getting channels using dev pointer.
    Stick to name only as suggested by Mark Brown (this has caused user
    confusion in the regulator framework.)
    V2: As per Greg KH suggestion, move over to registration by passing
    the tables into the provider drivers (how regulator does it).
    This does not prevent us using the original more flexible approach
    if at a later date there is a usecase that demands it.
    Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
    Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    e27d75d7
consumer.h 2.92 KB