gpio: mockup: add locking
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 31 Oct 2018 13:55:47 +0000 (14:55 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 19 Feb 2019 16:42:28 +0000 (17:42 +0100)
commit9212492f6eeaf944ee0966a85054a59314bb1c39
tree1a5e6c7a405e7efe20acc6db899c28acfadc8b8d
parent8d91ecc84d1b177d9bcce6ce8e82c64347ceac9d
gpio: mockup: add locking

While no user reported any race condition problems with gpio-mockup,
let's be on the safe side and use a mutex when performing any changes
on the dummy chip structures.

Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-mockup.c