blob: 253d08abc6c34196916cdaece6c8131f0bf32ee3 [file] [log] [blame] [edit]
/*
* Copyright (C) 2009 Samsung Electronics
* Minkyu Kang <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __MAX17040_BATTERY_H_
#define __MAX17040_BATTERY_H_
struct max17040_platform_data {
int (*battery_online)(void);
int (*charger_online)(void);
int (*charger_enable)(void);
bool(*is_full_charge)(void);
int (*get_bat_temp)(int *);
bool skip_reset;
int min_capacity; /* minimum allowable capacity. The reported capacity
will be scaled from [<min_capacity>,100] to
[0,100] */
void (*allow_charging)(int en);
int high_block_temp;
int high_recover_temp;
int low_block_temp;
int low_recover_temp;
int fully_charged_vol;
int recharge_vol;
int limit_charging_time;
int limit_recharging_time;
bool use_fuel_alert;
};
#endif