Skip to content
This repository was archived by the owner on Jul 16, 2020. It is now read-only.

Commit 8a4a2db

Browse files
moetayukoppajda
authored andcommitted
gpiolib: Fix OnePlus mismerge
* They backported the original patch from 4.4 but didn't notice the API difference in 3.18. Change-Id: If4f45caaab2ac75356c0ae314839884426518799
1 parent 841b09d commit 8a4a2db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpio/gpiolib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ static bool _gpiod_get_raw_value(const struct gpio_desc *desc)
11471147
value = chip->get ? chip->get(chip, offset) : 0;
11481148
}
11491149
} else {
1150-
value = chip->get ? chip->get(chip, offset) : -EIO;
1150+
value = chip->get ? chip->get(chip, offset) : 0;
11511151
trace_gpio_value(desc_to_gpio(desc), 1, value);
11521152
}
11531153
return value;

0 commit comments

Comments
 (0)