cleanup: nyan: remove unnecessary dependence to pmu_tpschrome.h

Nyan uses common/charge_state instead. So, fix the dependence.
Since snow/spring/pit are using common/pmu_tps65090_charger, keep them.

BUG=None
BRANCH=Nyan
TEST=build and works fine on Nyan 3.2

Change-Id: I985f7980578ac22602b1fbffa51edf039078bc05
Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/186337
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Louis Yung-Chieh Lo
2014-02-14 11:02:47 +08:00
committed by chrome-internal-fetch
parent e7e0cf2cae
commit e43074ebcf
3 changed files with 6 additions and 2 deletions

View File

@@ -12,7 +12,6 @@
#include "i2c.h"
#include "keyboard_raw.h"
#include "lid_switch.h"
#include "pmu_tpschrome.h"
#include "power.h"
#include "power_button.h"
#include "power.h"

View File

@@ -125,6 +125,11 @@ struct charge_state_context {
*/
enum charge_state charge_get_state(void);
/**
* Return non-zero if battery is so low we want to keep AP off.
*/
int charge_keep_power_off(void);
/**
* Return current charge state flags (CHARGE_FLAG_*)
*/

View File

@@ -25,6 +25,7 @@
*
*/
#include "charge_state.h"
#include "chipset.h" /* This module implements chipset functions too */
#include "clock.h"
#include "common.h"
@@ -36,7 +37,6 @@
#include "power.h"
#include "power_button.h"
#include "power_led.h"
#include "pmu_tpschrome.h"
#include "system.h"
#include "task.h"
#include "timer.h"