]> asedeno.scripts.mit.edu Git - linux.git/commit
gpiolib: move validation of line handle flags into helper function
authorKent Gibson <warthog618@gmail.com>
Tue, 5 Nov 2019 02:04:28 +0000 (10:04 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 12 Nov 2019 15:30:30 +0000 (16:30 +0100)
commitb043ed7ef0b358d7f32dc57c218f925fd2802aba
tree4bb5908837de41b0a9505e3ec73ea361ad140372
parent64e7112ee307834680eed578fdc0cfee63263fa7
gpiolib: move validation of line handle flags into helper function

Move validation of line handle flags into helper function.
This reduces the size and complexity of linehandle_create and allows the
validation to be reused elsewhere.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpiolib.c