Bartosz Golaszewski 650b57b083 gpio: mockup: tweak gpio_mockup_event_write()
Invert the logic of the irq_enabled check and only access the private
data after the input is sanitized.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2017-06-20 09:18:47 +02:00
..
2017-03-14 10:51:28 +01:00
2016-03-30 10:38:51 +02:00
2016-01-05 11:21:05 +01:00
2016-02-16 00:19:53 +01:00
2016-12-30 09:18:10 +01:00
2016-09-13 10:35:56 +02:00
2016-12-30 09:18:10 +01:00
2017-03-16 21:52:10 +01:00
2017-05-31 02:07:29 +02:00
2017-05-31 02:13:24 +02:00