diff options
Diffstat (limited to 'include/charge_ramp.h')
-rw-r--r-- | include/charge_ramp.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/charge_ramp.h b/include/charge_ramp.h index 0745f5ef98..be456a64ec 100644 --- a/include/charge_ramp.h +++ b/include/charge_ramp.h @@ -1,4 +1,4 @@ -/* Copyright 2015 The Chromium OS Authors. All rights reserved. +/* Copyright 2015 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -11,10 +11,7 @@ #include "timer.h" /* Charge ramp state used for checking VBUS */ -enum chg_ramp_vbus_state { - CHG_RAMP_VBUS_RAMPING, - CHG_RAMP_VBUS_STABLE -}; +enum chg_ramp_vbus_state { CHG_RAMP_VBUS_RAMPING, CHG_RAMP_VBUS_STABLE }; /** * Check if VBUS is too low @@ -81,11 +78,15 @@ int chg_ramp_is_detected(void); * @voltage Negotiated charge voltage. */ void chg_ramp_charge_supplier_change(int port, int supplier, int current, - timestamp_t registration_time, int voltage); + timestamp_t registration_time, + int voltage); #else -static inline void chg_ramp_charge_supplier_change( - int port, int supplier, timestamp_t registration_time) { } +static inline void +chg_ramp_charge_supplier_change(int port, int supplier, + timestamp_t registration_time) +{ +} #endif #endif /* __CROS_EC_CHARGE_RAMP_H */ |