mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-03 11:58:42 +07:00
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68knommu update from Greg Ungerer: "Only a single change, limiting the return values for coldfire gpio get function" * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68k: coldfire/gpio: Be sure to clamp return value
This commit is contained in:
commit
19e2fc4066
@ -121,7 +121,7 @@ static int mcfgpio_direction_input(struct gpio_chip *chip, unsigned offset)
|
||||
|
||||
static int mcfgpio_get_value(struct gpio_chip *chip, unsigned offset)
|
||||
{
|
||||
return __mcfgpio_get_value(offset);
|
||||
return !!__mcfgpio_get_value(offset);
|
||||
}
|
||||
|
||||
static int mcfgpio_direction_output(struct gpio_chip *chip, unsigned offset,
|
||||
|
Loading…
Reference in New Issue
Block a user