]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteae7c26938af25357e25933bd70aefd0d48dcdaf
tree1a5e6c7a405e7efe20acc6db899c28acfadc8b8d
parent8250e11c3c623907f86c7ba7431cd3ebd0d5c685
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