2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 05:04:00 +08:00

GPIO fixes for v5.1-rc2

- check the return value of a function that can fail in gpio-exar
 - fix the SPDX identifier in amd-fch
 - fix the direction_input callback in gpio-adnp
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEFp3rbAvDxGAT0sefEacuoBRx13IFAlyVBDwACgkQEacuoBRx
 13IkaRAAnInuCUdzd7a84qqSO9yFja9D/d0/zkqEZ9rIVNtlvf1jh0bkZ3bdQ9uR
 C1gBEUn2mN5STP3O55GFnv8zXvmwlR35i+sp49o7qjFW13/Kd9UlnUEsHn5nJ96k
 VJXoWUjbxxqpfg2OATWKwtNxbeiX4+WwiaTZdTespU/oLkdlRfH9VLC7kk41KC5C
 enG6ynNAgnhnJeL16STruRz7rCMX8eJXhvKov0cKcY3VzY0o5k+28nYL/u+UccLU
 ET1ebB4m64tZY8dAuVCd0IV3I7YQ6yLIgVKCPmqLgQI6OoL2hXd6KEr1TAWtPXZB
 1sT2tzSN1DbcHZFuEgs9Rb90zX953vuuctMygboOcvEMIUmidYBq58wLaS+Lqg5+
 f2WtxBR+R/9YS8AbsXLNilYN/TrNZ56E7MGthdliUrXR6o9IlVApwwQS2/rFT5D9
 CFm/ix4w7Xtqg50AbLYk/x8CzfNMeV21qhR5Wvc6BLuoVqH+cmLRLQiK+Z7l6a+A
 ulRHHETIjlLbsTIMm4fM+fQaImVoqBMSnYJ5nh4QofzzddM7DRJ2l6FslQbE91+G
 VpLvEV1ifHbskf6D4N/JrBZYbsBi1H7yHUMryy2YYRgFgossZDMydoShkXi84DJK
 4weuzDJBKOyPxxG/p86Y7LYSH/FOGrPdwFFGdjJoNmLVkpdps+A=
 =1M3G
 -----END PGP SIGNATURE-----

Merge tag 'gpio-5.1-rc2-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux into fixes

GPIO fixes for v5.1-rc2

- check the return value of a function that can fail in gpio-exar
- fix the SPDX identifier in amd-fch
- fix the direction_input callback in gpio-adnp
This commit is contained in:
Linus Walleij 2019-03-23 07:25:00 +01:00
commit 3b55cb88c3
3 changed files with 7 additions and 3 deletions

View File

@ -132,8 +132,10 @@ static int adnp_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
if (err < 0)
goto out;
if (err & BIT(pos))
err = -EACCES;
if (value & BIT(pos)) {
err = -EPERM;
goto out;
}
err = 0;

View File

@ -148,6 +148,8 @@ static int gpio_exar_probe(struct platform_device *pdev)
mutex_init(&exar_gpio->lock);
index = ida_simple_get(&ida_index, 0, 0, GFP_KERNEL);
if (index < 0)
goto err_destroy;
sprintf(exar_gpio->name, "exar_gpio%d", index);
exar_gpio->gpio_chip.label = exar_gpio->name;

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: GPL+ */
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* AMD FCH gpio driver platform-data