Changeset 31653


Ignore:
Timestamp:
Mar 14, 2017, 4:53:17 PM (7 weeks ago)
Author:
brainslayer
Message:

fix for bad value

Location:
src/linux/universal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.10/drivers/gpio/gpiolib.c

    r26947 r31653  
    18801880        WARN_ON(chip->can_sleep);
    18811881        value = chip->get ? chip->get(chip, offset) : 0;
     1882        value = value < 0 ? value : !!value;
    18821883        trace_gpio_value(desc_to_gpio(desc), 1, value);
    18831884        return value;
  • src/linux/universal/linux-3.18/drivers/gpio/gpiolib.c

    r30017 r31653  
    11391139        offset = gpio_chip_hwgpio(desc);
    11401140        value = chip->get ? chip->get(chip, offset) : false;
     1141        value = value < 0 ? value : !!value;
    11411142        trace_gpio_value(desc_to_gpio(desc), 1, value);
    11421143        return value;
Note: See TracChangeset for help on using the changeset viewer.