mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue