Merge tag 'gpio-v4.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux...
[deliverable/linux.git] / drivers / mfd / dm355evm_msp.c
index bc90efe01b59e36df6104cdd8dbde1721aefe46e..ec4438ed2fafd73415b3efb40b131e587ddbf45a 100644 (file)
@@ -147,7 +147,7 @@ static int msp_gpio_get(struct gpio_chip *chip, unsigned offset)
                return status;
        if (reg == DM355EVM_MSP_LED)
                msp_led_cache = status;
-       return status & MSP_GPIO_MASK(offset);
+       return !!(status & MSP_GPIO_MASK(offset));
 }
 
 static int msp_gpio_out(struct gpio_chip *chip, unsigned offset, int value)
This page took 0.027778 seconds and 5 git commands to generate.