Power: Use gpio_get_name instead of gpio_list

Use the gpio_get_name function instead of directly accessing the name
field in the gpio_info entry in the gpio_list array.

Signed-off-by: Anton Staaf <robotboy@chromium.org>

BRANCH=None
BUG=None
TEST=make buildall -j

Change-Id: I8cb7b5a4df8e2b17740638264b0196b07864286d
Reviewed-on: https://chromium-review.googlesource.com/321914
Commit-Ready: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Anton Staaf
2016-01-13 11:16:25 -08:00
committed by chrome-bot
parent 63eccdb090
commit fac21172bc

View File

@@ -439,7 +439,6 @@ static struct {
static void siglog_deferred(void)
{
const struct gpio_info *g = gpio_list;
unsigned int i;
timestamp_t tdiff = {.val = 0};
@@ -453,7 +452,7 @@ static void siglog_deferred(void)
tdiff.val = siglog[i].time.val - siglog[i-1].time.val;
CPRINTF(" %.6ld +%.6ld %s => %d\n",
siglog[i].time.val, tdiff.val,
g[siglog[i].signal].name,
gpio_get_name(siglog[i].signal),
siglog[i].level);
}
if (siglog_truncated)