mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
For better testability, let's move smart battery read/write functions to a stub so that we can easily mock them. BUG=chrome-os-partner:10270 TEST=build success Change-Id: I416580c6dc7911e376bc232e5f0560117d9353c2 Reviewed-on: https://gerrit.chromium.org/gerrit/26227 Reviewed-by: Rong Chang <rongchang@chromium.org> Commit-Ready: Vic Yang <victoryang@chromium.org> Tested-by: Vic Yang <victoryang@chromium.org>
24 lines
585 B
C
24 lines
585 B
C
/* Copyright (c) 2012 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.
|
|
*
|
|
* Functions needed by smart battery driver.
|
|
*/
|
|
|
|
#ifndef __CROS_EC_SMART_BATTERY_STUB_H
|
|
#define __CROS_EC_SMART_BATTERY_STUB_H
|
|
|
|
/* Read from charger */
|
|
int sbc_read(int cmd, int *param);
|
|
|
|
/* Write to charger */
|
|
int sbc_write(int cmd, int param);
|
|
|
|
/* Read from battery */
|
|
int sb_read(int cmd, int *param);
|
|
|
|
/* Write to battery */
|
|
int sb_write(int cmd, int param);
|
|
|
|
#endif /* __CROS_EC_SMART_BATTERY_STUB_H */
|