]> git.baikalelectronics.ru Git - kernel.git/commit
iio: dummy_evgen: modify the return value check for irq_sim_init()
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 27 Nov 2017 10:54:49 +0000 (11:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:41 +0000 (16:03 +0100)
commitc1027e84a71196ea077fa4069779c46ea06113e3
tree05cb8dd0fcbc0bbcc6c06d2d8cace6e80fc06cca
parentac361dd509450823553e53fbe806e972605aea97
iio: dummy_evgen: modify the return value check for irq_sim_init()

As discussed with Marc Zyngier: irq_sim_init() and its devres variant
should return the base of the allocated interrupt range on success
rather than 0. This will be modified later - first, change the way
users handle the return value of these routines.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/dummy/iio_dummy_evgen.c