22 Aug, 2020

1 commit

  • Make sure that the trigger function stubs are all static inline.
    Otherwise we might see compiler warnings about declared but unused
    functions.

    Fixes 77712e5fbe2e4: ("Staging: iio: Staticise non-exported functions")
    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Alexandru Ardelean
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     

21 Jun, 2020

1 commit

  • All devices using a triggered buffer need to attach and detach the trigger
    to the device in order to properly work. Instead of doing this in each and
    every driver by hand move this into the core.

    At this point in time, all drivers should have been resolved to
    attach/detach the poll-function in the same order.

    This patch removes all explicit calls of iio_triggered_buffer_postenable()
    & iio_triggered_buffer_predisable() in all drivers, since the core handles
    now the pollfunc attach/detach.

    The more peculiar change is for the 'at91-sama5d2_adc' driver, since it's
    not immediately obvious that removing the hooks doesn't break anything.
    Eugen was able to test on at91-sama5d2-adc driver, sama5d2-xplained board.
    All seems to be fine.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Alexandru Ardelean
    Tested-by: Eugen Hristev #for at91-sama5d2-adc
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     

19 Jun, 2019

1 commit

  • Based on 2 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 4122 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

04 Aug, 2013

1 commit


26 Apr, 2012

1 commit

  • Take the core support + the kfifo buffer implentation out of
    staging. Whilst we are far from done in improving this subsystem
    it is now at a stage where the userspae interfaces (provided by
    the core) can be considered stable.

    Drivers will follow over a longer time scale.

    Signed-off-by: Jonathan Cameron
    Signed-off-by: Greg Kroah-Hartman

    Jonathan Cameron