diff options
author | 2020-07-08 12:15:47 +0800 | |
---|---|---|
committer | 2020-07-12 10:22:00 +0200 | |
commit | c274b58a4b8a3bfbf0bb0b5f5332e3e049d75b65 (patch) | |
tree | 8b6cd41e88f3f4cbb2bb43dc0dedc794f398ebc9 /lib/xarray.c | |
parent | gpiolib: cdev: minor indentation fixes (diff) | |
download | linux-dev-c274b58a4b8a3bfbf0bb0b5f5332e3e049d75b65.tar.xz linux-dev-c274b58a4b8a3bfbf0bb0b5f5332e3e049d75b65.zip |
gpiolib: cdev: refactor gpiohandle_flags_to_desc_flags
Refactor the mapping from handle flags to desc flags into a helper
function.
The assign_bit is overkill where it is replacing the set_bit cases, as is
rechecking bits known to be clear in some circumstances, but the DRY
simplification more than makes up for any performance degradation,
especially as this is not a hot path.
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions