blob: 67660c72acec853ba6f616a49469c17fc1a5596d (
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
|
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*/
#ifndef _BATTERY_CHARGER_H
#define _BATTERY_CHARGER_H
enum battery_charger_prop {
BATTERY_RESISTANCE,
BATTERY_CHARGER_PROP_MAX,
};
#if IS_ENABLED(CONFIG_QTI_BATTERY_CHARGER)
int qti_battery_charger_get_prop(const char *name,
enum battery_charger_prop prop_id, int *val);
#else
static inline int
qti_battery_charger_get_prop(const char *name,
enum battery_charger_prop prop_id, int *val)
{
return -EINVAL;
}
#endif
#endif
|