android_kernel_samsung_msm8976/include/linux/batterydata-interface.h
Anirudh Ghayal 6715858577 power: batterydata-lib: Add IOCTLs to read battery-profile
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>
2014-01-21 06:33:48 +05:30

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);