From 385778bfee40e5925128ccd5186276c32ef252f2 Mon Sep 17 00:00:00 2001 From: Syed Rafiuddin Date: Tue, 31 Jan 2012 17:10:37 +0530 Subject: power: smb349: smb349 charger driver Smb349 battery charger driver for kai platform. Signed-off-by: Syed Rafiuddin Reviewed-on: http://git-master/r/78211 (cherry picked from commit f059c9db2735a6e0088dd9cd61a623b13b5d717e) Change-Id: Ifa401713928d29bb4235353e50b66e632c7625ba Signed-off-by: Pritesh Raithatha Reviewed-on: http://git-master/r/79980 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani Tested-by: Bharat Nihalani --- include/linux/smb349-charger.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 include/linux/smb349-charger.h (limited to 'include/linux') diff --git a/include/linux/smb349-charger.h b/include/linux/smb349-charger.h new file mode 100644 index 000000000000..7c48a7370b19 --- /dev/null +++ b/include/linux/smb349-charger.h @@ -0,0 +1,40 @@ +/* + * include/linux/smb349-charger.h + * + * Battery charger driver interface for Summit SMB349 + * + * Copyright (C) 2012 NVIDIA Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License 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. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef __LINUX_SMB349_CHARGER_H +#define __LINUX_SMB349_CHARGER_H + +#include + +struct smb349_charger { + struct i2c_client *client; + struct device *dev; +}; + +/* + * Register the callback function for the client. + */ +extern int smb349_battery_online(void); +extern int smb349_charging_status(void); +extern int smb349_charger_type(void); + +#endif /*__LINUX_SMB349_CHARGER_H */ -- cgit v1.2.3