diff options
Diffstat (limited to 'board/brya/battery.c')
-rw-r--r-- | board/brya/battery.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/board/brya/battery.c b/board/brya/battery.c index 91faab57a3..71b46082d8 100644 --- a/board/brya/battery.c +++ b/board/brya/battery.c @@ -1,4 +1,4 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. +/* Copyright 2021 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * @@ -102,10 +102,7 @@ enum battery_present battery_hw_present(void) { enum gpio_signal batt_pres; - if (get_board_id() == 1) - batt_pres = GPIO_ID_1_EC_BATT_PRES_ODL; - else - batt_pres = GPIO_EC_BATT_PRES_ODL; + batt_pres = GPIO_EC_BATT_PRES_ODL; /* The GPIO is low when the battery is physically present */ return gpio_get_level(batt_pres) ? BP_NO : BP_YES; |