summaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-trigger.c
diff options
context:
space:
mode:
authorCrestez Dan Leonard2016-06-03 20:56:29 +0200
committerJonathan Cameron2016-06-11 18:38:06 +0200
commitdeb4d1fdcb5af079896f7ca5e8067e69485f6bdd (patch)
tree541c9af8d3750d8b82637dc56715012311c5657f /drivers/iio/industrialio-trigger.c
parentmailmap: update Matt Ranostay email address (diff)
downloadkernel-qcow2-linux-deb4d1fdcb5af079896f7ca5e8067e69485f6bdd.tar.gz
kernel-qcow2-linux-deb4d1fdcb5af079896f7ca5e8067e69485f6bdd.tar.xz
kernel-qcow2-linux-deb4d1fdcb5af079896f7ca5e8067e69485f6bdd.zip
iio: generic_buffer: Fix --trigger-num option
Initialize trig_num to -1 and handle trig_num=0 as a valid id. Fixes: 7c7e9dad (iio: iio_generic_buffer: Add --trigger-num option) Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-trigger.c')
0 files changed, 0 insertions, 0 deletions