summaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorSteven Lee <steven_lee@aspeedtech.com>2021-07-12 13:03:16 +0300
committerJae Hyun Yoo <jae.hyun.yoo@intel.com>2021-09-13 19:11:30 +0300
commitcd5cf2764971cb37032d7fc570623f16c6848614 (patch)
tree14e8f12e63eab558b191345a8f49b63107aa9ef5 /lib/mpi/mpiutil.c
parent10101b592428bbf5cda004f27e594c9de6239903 (diff)
downloadlinux-cd5cf2764971cb37032d7fc570623f16c6848614.tar.xz
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 <steven_lee@aspeedtech.com> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions