gpio fixes for v5.5-rc5

- fix coding style issues introduced in gpio-mockup during merge window
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEFp3rbAvDxGAT0sefEacuoBRx13IFAl4PbwMACgkQEacuoBRx
 13KvxBAAno+i11oKSj7jJziukycVEwrVnQIIqMdSMI60dpbS92DMJZy75M1S1gCB
 M51gm614qL10RL96pizRmHgC0UVQJNF2VrGWtUXpKt9MKC5LLR4tJ6JEPv7pgEwH
 XJ7euU0klZT64XIiVg9i8fgkqTKPrMoo39I5M6hdUD6e5KkCxvMrtHgk1U79mpuc
 Fz/RsipaCaGN4OzyvAzLQu33D3T2hq08Hi1LsDXzf+MxRWsopuVKiwkVyRkUxtsK
 SocFc9sACRtuDfy68oHJINhNTFag73CUvg16dcUecdozQhBarZh3BF8CAjfOMcRl
 MA1IYl4AH4DkzkgdRj7O9MBtTujSoHlqA/ybZCAARfnmtz0eXzoH833uROfw0jlK
 JvZT0IeiRd3Ta5C+JHua9S2DZ+tiuU8SXYmkfx66PQNAJEWZ7ZGgRlBZZSj3Fm4z
 g3BwnMqkmSqLkooF1exRwMLtDlmilpsjOI3LmImIb4Pjel3cBaOlp743xU7IvkGj
 WQ5u0oHrosVI0LHjj6IghemQsqbZjtnuH3NGL8UQibwUNzOEm6GCLH1/L4l5WOvY
 5qOXq88CYtUZy8QijsKyRpKLoJMu5WCRyimXpFS/+Z9dUhe017aDSo8jhpofzvgV
 KGot0zn4fCkmzgZz9isUZftukXo8/y2W2XDXm0q10yp/nNPYHI0=
 =hKqV
 -----END PGP SIGNATURE-----

Merge tag 'gpio-fixes-for-v5.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux into fixes

gpio fixes for v5.5-rc5

- fix coding style issues introduced in gpio-mockup during merge window
This commit is contained in:
Linus Walleij 2020-01-04 00:13:24 +01:00
commit 8bee8084ba

View File

@ -156,7 +156,7 @@ static int gpio_mockup_apply_pull(struct gpio_mockup_chip *chip,
mutex_lock(&chip->lock);
if (test_bit(FLAG_REQUESTED, &desc->flags) &&
!test_bit(FLAG_IS_OUT, &desc->flags)) {
!test_bit(FLAG_IS_OUT, &desc->flags)) {
curr = __gpio_mockup_get(chip, offset);
if (curr == value)
goto out;
@ -165,7 +165,7 @@ static int gpio_mockup_apply_pull(struct gpio_mockup_chip *chip,
irq_type = irq_get_trigger_type(irq);
if ((value == 1 && (irq_type & IRQ_TYPE_EDGE_RISING)) ||
(value == 0 && (irq_type & IRQ_TYPE_EDGE_FALLING)))
(value == 0 && (irq_type & IRQ_TYPE_EDGE_FALLING)))
irq_sim_fire(sim, offset);
}