diff options
Diffstat (limited to 'include/pwr_defs.h')
-rw-r--r-- | include/pwr_defs.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/pwr_defs.h b/include/pwr_defs.h deleted file mode 100644 index c01e602397..0000000000 --- a/include/pwr_defs.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef __CROS_EC_PWR_DEFS_H -#define __CROS_EC_PWR_DEFS_H - -#include "system.h" - -struct pwr_con_t { - uint16_t volts; - uint16_t milli_amps; -}; - -/* - * Return power (in milliwatts) corresponding to input power connection - * struct entry. - */ -inline int pwr_con_to_milliwatts(struct pwr_con_t *pwr) -{ - return (pwr->volts * pwr->milli_amps); -} - -#endif |