All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: trivial trigger cleanups and RFC
@ 2013-11-12 21:49 Peter Meerwald
  2013-11-12 21:49 ` [PATCH 1/2] iio: Minor kerneldoc fix for iio_trigger_write_current() Peter Meerwald
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Peter Meerwald @ 2013-11-12 21:49 UTC (permalink / raw)
  To: linux-iio

two trivial cleanups and a question: the behaviour of 
iio_trigger_write_current() currently is that all strings are 
accepted -- if the string matches a trigger's name, a new trigger
is set for the device (given the trigger passes validation); if the
string doesn't match a trigger's name, then the current trigger
is unset

so arbitrary garbage can be passed and is used to unset a trigger
(I'd have expected -EINVAL for unknown trigger names and a defined 
value such as "" to unset) -- is this what we want?

Peter Meerwald (2):
  iio: Minor kerneldoc fix for iio_trigger_write_current()
  iio: Remove redundant check that new trigger is different from old

 drivers/iio/industrialio-trigger.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
1.8.4.3


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-11-13 19:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-12 21:49 [PATCH 0/2] iio: trivial trigger cleanups and RFC Peter Meerwald
2013-11-12 21:49 ` [PATCH 1/2] iio: Minor kerneldoc fix for iio_trigger_write_current() Peter Meerwald
2013-11-13 20:32   ` Jonathan Cameron
2013-11-12 21:49 ` [PATCH 2/2] iio: Remove redundant check that new trigger is different from old Peter Meerwald
2013-11-13 20:37   ` Jonathan Cameron
2013-11-13 20:31 ` [PATCH 0/2] iio: trivial trigger cleanups and RFC Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.