diff options
author | Andy Shevchenko <[email protected]> | 2020-10-09 21:43:59 +0300 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2020-10-28 15:47:00 +0100 |
commit | 9ef6293c0659de3fa7981e795e70786c89610374 (patch) | |
tree | 568d9d7de760697b5378428c8b2f4c5f77a2db10 /lib/test_overflow.c | |
parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) |
gpiolib: Use proper type for bias enumerator in gpio_set_bias()
First of all, bias has a special type as being a part of enum pin_config_param.
Second, 0 is also defined bias which is equivalent to BUS_HOLD.
Taking into account above, change type of bias variable and refactor
gpio_set_bias() in a way that it doesn't use BUS_HOLD as a place holder.
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions