On 22/08/14 21:48, Srinivas Pandruvada wrote: > Instead of a void function, return the trigger pointer. > > Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx> Thanks for doing this, Applied to the fixes-togreg branch of iio.git. Jonathan > --- > include/linux/iio/trigger.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/include/linux/iio/trigger.h b/include/linux/iio/trigger.h > index 4b79ffe..fa76c79 100644 > --- a/include/linux/iio/trigger.h > +++ b/include/linux/iio/trigger.h > @@ -84,10 +84,12 @@ static inline void iio_trigger_put(struct iio_trigger *trig) > put_device(&trig->dev); > } > > -static inline void iio_trigger_get(struct iio_trigger *trig) > +static inline struct iio_trigger *iio_trigger_get(struct iio_trigger *trig) > { > get_device(&trig->dev); > __module_get(trig->ops->owner); > + > + return trig; > } > > /** > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html