Changeset 31654


Ignore:
Timestamp:
Mar 14, 2017, 4:54:25 PM (4 months ago)
Author:
brainslayer
Message:

fix for bad value

File:
1 edited

Legend:

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

    r30317 r31654  
    12721272        offset = gpio_chip_hwgpio(desc);
    12731273        value = chip->get ? chip->get(chip, offset) : -EIO;
    1274         /*
    1275          * FIXME: fix all drivers to clamp to [0,1] or return negative,
    1276          * then change this to:
    1277          * value = value < 0 ? value : !!value;
    1278          * so we can properly propagate error codes.
    1279          */
    1280         value = !!value;
     1274        value = value < 0 ? value : !!value;
    12811275        trace_gpio_value(desc_to_gpio(desc), 1, value);
    12821276        return value;
Note: See TracChangeset for help on using the changeset viewer.