summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-01-02 16:59:48 +0100
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-01-04 10:29:16 +0100
commit1979a28075470ef82472a5656ecc969f901e0d3b (patch)
tree12b01c23e316fe05b646bad05b66d5e03127789a /include/linux
parent48e1b4d369cfe2729138a128afa6b8a55d093eaf (diff)
downloadlwn-1979a28075470ef82472a5656ecc969f901e0d3b.tar.gz
lwn-1979a28075470ef82472a5656ecc969f901e0d3b.zip
gpiolib: replace the GPIO device mutex with a read-write semaphore
There are only two spots where we modify (add to or remove objects from) the GPIO device list. Readers should be able to access it concurrently. Replace the mutex with a read-write semaphore and adjust the locking operations accordingly. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions