diff options
author | Steven Lee <steven_lee@aspeedtech.com> | 2021-07-12 18:03:16 +0800 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2021-08-05 21:16:54 +0200 |
commit | f43837f4f63b1a58084d7147b8b34c0f3dd261f6 (patch) | |
tree | 3908b4e379d24c4e429e72775980c5fad1442809 /drivers/mfd/wcd934x.c | |
parent | 1f857b675237d77590d439f16c5927ec3e4b1f0e (diff) | |
download | linux-f43837f4f63b1a58084d7147b8b34c0f3dd261f6.tar.bz2 |
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 'drivers/mfd/wcd934x.c')
0 files changed, 0 insertions, 0 deletions