commit | a8947fcf3bbeda9fc6ff1205e51f8ff1b0128cc4 | [log] [tgz] |
---|---|---|
author | Sonic Zhang <sonic.adi@gmail.com> | Mon Mar 22 12:27:05 2010 +0000 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Fri Apr 30 09:30:09 2010 -0700 |
tree | 5a7774c771316cb5554743c53dc34f4f7e44eb30 | |
parent | ee58cb2bcda99ae934176ad5ae66f7699d23cd3d [diff] |
staging: iio: Function iio_get_new_idr_val() return negative value if fails. Function iio_get_new_idr_val() return negative value if fails. So, only error when ret < 0 in iio_device_register_eventset(). Signed-off-by: Sonic Zhang <sonic.adi@gmail.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>