diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-19 20:07:39 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-12-01 17:48:21 +0300 |
commit | bc5d098432225e381328be0301948a6cb34f11e3 (patch) | |
tree | bbcfe60cf1d7d008c49756d9da6c172f779a3b8e /drivers/gpio/gpiolib-acpi.c | |
parent | 2ae136a34fce9bbeb7c582449b03bd4e05aac565 (diff) | |
download | linux-bc5d098432225e381328be0301948a6cb34f11e3.tar.xz |
gpiolib: acpi: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.
Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpiolib-acpi.c')
-rw-r--r-- | drivers/gpio/gpiolib-acpi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 834a12f3219e..23fa9df8241d 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -548,6 +548,7 @@ acpi_gpio_to_gpiod_flags(const struct acpi_resource_gpio *agpio) default: break; } + break; default: break; } |