aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorSteven Lee <[email protected]>2021-07-12 18:03:16 +0800
committerBartosz Golaszewski <[email protected]>2021-08-05 21:16:54 +0200
commitf43837f4f63b1a58084d7147b8b34c0f3dd261f6 (patch)
tree3908b4e379d24c4e429e72775980c5fad1442809 /lib/test_overflow.c
parent1f857b675237d77590d439f16c5927ec3e4b1f0e (diff)
gpio: gpio-aspeed-sgpio: Return error if ngpios is not multiple of 8.
Add an else-if condition in the probe function to check whether ngpios is multiple of 8. Per AST datasheet, numbers of available serial GPIO pins in Serial GPIO Configuration Register must be n bytes. For instance, if n = 1, it means AST SoC supports 8 GPIO pins. Signed-off-by: Steven Lee <[email protected]> Reviewed-by: Andrew Jeffery <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions