summaryrefstree
path: root/kernel/include/linux/battery/sec_psb.h
blob: 5acce26afe84454ae23d9c7210a80921f4b84dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * sec_psb.h
 * Samsung Mobile 'Prevent Swelling Battery' Header
 *
 * Copyright (C) 2019 Samsung Electronics, Inc.
 *
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */
#ifndef __SEC_PSB_H
#define __SEC_PSB_H __FILE__

#include <linux/battery/sec_battery.h>

extern char *sec_bat_status_str[];

int sec_bat_set_charge(struct sec_battery_info *battery, int chg_mode);
void sec_bat_set_charging_status(struct sec_battery_info *battery, int status);

void sec_bat_update_psb_level(struct sec_battery_info *battery);
void sec_bat_start_psb(struct sec_battery_info *battery);
void sec_bat_check_psb(struct sec_battery_info *battery);
void sec_bat_check_full_state(struct sec_battery_info *battery);

void sec_bat_init_psb(struct sec_battery_info *battery);
void sec_bat_remove_psb(struct sec_battery_info *battery);

#endif /* __SEC_PSB_H */