21 Jan, 2016
1 commit
-
drivers/iio/industrialio-sw-trigger.c:169:1-3: WARNING: PTR_ERR_OR_ZERO can be used
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Generated by: scripts/coccinelle/api/ptr_ret.cocci
Signed-off-by: Fengguang Wu
Cc: Joel Becker
Cc: Lars-Peter Clausen
Cc: Christoph Hellwig
Cc: Hartmut Knaack
Cc: Octavian Purdila
Cc: Paul Bolle
Cc: Adriana Reus
Cc: Daniel Baluta
Cc: Cristina Opriceana
Cc: Peter Meerwald
Cc: Alexander Viro
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
06 Dec, 2015
1 commit
-
This exported element needs to be accesible to all drivers using configfs
within IIO. Previously it was in the sw_trig.h file which only convered one
such usecase. This also fixes a sparse warning as it is now in a header
that makes sense to include from industrialio-configfs.cSigned-off-by: Jonathan Cameron < jic23@kernel.org>
04 Dec, 2015
1 commit
-
A software trigger associates an IIO device trigger with a software
interrupt source (e.g: timer, sysfs). This patch adds the generic
infrastructure for handling software triggers.Software interrupts sources are kept in a iio_trigger_types_list and
registered separately when the associated kernel module is loaded.Software triggers can be created directly from drivers or from user
space via configfs interface.To sum up, this dynamically creates "triggers" group to be found under
/config/iio/triggers and offers the possibility of dynamically
creating trigger types groups. The first supported trigger type is
"hrtimer" found under /config/iio/triggers/hrtimer.Signed-off-by: Daniel Baluta
Signed-off-by: Jonathan Cameron