pinctrl: abx500: fix some more bitwise AND tests
Subsystems (2)
PATCH 1/1 pinctrl: abx500: fix some more bitwise AND tests
I sent a patch to fix some bitwise AND tests but I guess I missed some. Sorry about that.
Signed-off-by Dan Carpenter <[email protected]>
drivers/pinctrl/pinctrl-abx500.c +3 -3
@@ -418,7 +418,7 @@ static int abx500_set_mode(struct pinctrl_dev *pctldev, struct gpio_chip *chip, ret =abx500_gpio_set_bits (chip,AB8500_GPIO_ALTFUN_REG , af.alt_bit1, - !!(af.alta_val &&BIT (0 ))); + !!(af.alta_val &BIT (0 )));if (ret <0 ) goto out;
@@ -439,7 +439,7 @@ static int abx500_set_mode(struct pinctrl_dev *pctldev, struct gpio_chip *chip, goto out; ret =abx500_gpio_set_bits (chip,AB8500_GPIO_ALTFUN_REG , - af.alt_bit1, !!(af.altb_val &&BIT (0 ))); + af.alt_bit1, !!(af.altb_val &BIT (0 )));if (ret <0 ) goto out;
@@ -462,7 +462,7 @@ static int abx500_set_mode(struct pinctrl_dev *pctldev, struct gpio_chip *chip, goto out; ret =abx500_gpio_set_bits (chip,AB8500_GPIO_ALTFUN_REG , - af.alt_bit2, !!(af.altc_val &&BIT (1 ))); + af.alt_bit2, !!(af.altc_val &BIT (1 )));break ;default :
Quoted 4 lines · Dan Carpenter
I sent a patch to fix some bitwise AND tests but I guess I missed some. Sorry about that.
Signed-off-by Dan Carpenter <[email protected]>
Patch applied for fixes, thanks!
Yours,
Linus Walleij