mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
6715858577
Add IOCTLs to access battery profile data from userspace. This avoids duplicating the battery-profile data in the userspace. To support this add a character device and expose an API to set the battery profile. Change-Id: I2ecc75e3c33f9a814f02426ba8d9a22cdc661c2b Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
15 lines
635 B
C
15 lines
635 B
C
/* Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#include <uapi/linux/batterydata-interface.h>
|
|
|
|
int config_battery_data(struct bms_battery_data *profile);
|