lkml.org 
[lkml]   [2021]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 05/16] iio: adc: max1027: Rename a helper
    Date
    Make it clear that the *_set_trigger_state() hook is responsible for
    cnvst based conversions by renaming the helper. This may avoid
    confusions with software trigger support that is going to be
    introduced.

    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Reviewed-by: Nuno Sá <nuno.sa@analog.com>
    ---
    drivers/iio/adc/max1027.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c
    index 7c1c76673be2..e84f49f21778 100644
    --- a/drivers/iio/adc/max1027.c
    +++ b/drivers/iio/adc/max1027.c
    @@ -389,7 +389,7 @@ static int max1027_validate_trigger(struct iio_dev *indio_dev,
    return 0;
    }

    -static int max1027_set_trigger_state(struct iio_trigger *trig, bool state)
    +static int max1027_set_cnvst_trigger_state(struct iio_trigger *trig, bool state)
    {
    struct iio_dev *indio_dev = iio_trigger_get_drvdata(trig);
    struct max1027_state *st = iio_priv(indio_dev);
    @@ -450,7 +450,7 @@ static irqreturn_t max1027_trigger_handler(int irq, void *private)

    static const struct iio_trigger_ops max1027_trigger_ops = {
    .validate_device = &iio_trigger_validate_own_device,
    - .set_trigger_state = &max1027_set_trigger_state,
    + .set_trigger_state = &max1027_set_cnvst_trigger_state,
    };

    static const struct iio_info max1027_info = {
    --
    2.27.0
    \
     
     \ /
      Last update: 2021-09-21 13:55    [W:4.468 / U:0.160 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site