Skip to content
  • Eva Rachel Retuya's avatar
    staging: iio: ad7192: implement IIO_CHAN_INFO_SAMP_FREQ · a13e831f
    Eva Rachel Retuya authored
    
    
    This driver predates the availability of IIO_CHAN_INFO_SAMP_FREQ
    attribute wherein usage has some advantages like it can be accessed by
    in-kernel consumers as well as reduces the code size.
    
    Therefore, use IIO_CHAN_INFO_SAMP_FREQ to implement the
    sampling_frequency attribute instead of using IIO_DEV_ATTR_SAMP_FREQ()
    macro.
    
    Move code from the functions associated with IIO_DEV_ATTR_SAMP_FREQ()
    into respective read and write hooks with the mask set to
    IIO_CHAN_INFO_SAMP_FREQ.
    
    Signed-off-by: default avatarEva Rachel Retuya <eraretuya@gmail.com>
    Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
    a13e831f