Fix function generating GPIO state based vector
The function was too eager shifting stuff around, this change corrects the problem. Change-Id: I4c13dbe86cb627835dae05bb74af9867c28e143d Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: http://review.coreboot.org/1291 Tested-by: build bot (Jenkins)
This commit is contained in:
parent
6097e193fc
commit
8bdbddfeea
|
@ -93,7 +93,6 @@ unsigned get_gpios(const int *gpio_num_array)
|
|||
|
||||
while (bitmask &&
|
||||
((gpio = *gpio_num_array++) != -1)) {
|
||||
vector <<= 1;
|
||||
if (get_gpio(gpio))
|
||||
vector |= bitmask;
|
||||
bitmask <<= 1;
|
||||
|
|
Loading…
Reference in New Issue