summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-05-28 16:17:04 +0530
committerHarshada Kale <hkale@nvidia.com>2013-05-29 02:03:36 -0700
commit17c4ad22e26fb2c9d0bbe230be2fc77b2f64de95 (patch)
treea607a2eb575544221e82b25e0ca4a2ea47bcb764 /include
parentb358d326f6ffa7a036407ddc2461921e34a105d7 (diff)
power: extcon: detection of power supply through extcon
The power supply is detected through the extcon notification from the driver which identify the supply cable type. Add power supply driver to generate power supply type based on identified cable through extcon. Change-Id: Iccf27a3896daf46de6371a136d4f336b2f172aec Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/232987 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'include')
-rw-r--r--include/linux/power/power_supply_extcon.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/power/power_supply_extcon.h b/include/linux/power/power_supply_extcon.h
new file mode 100644
index 000000000000..ff8621b8f376
--- /dev/null
+++ b/include/linux/power/power_supply_extcon.h
@@ -0,0 +1,29 @@
+/*
+ * power_supply_extcon: Power supply detection through extcon.
+ *
+ * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved.
+ * Laxman Dewangan <ldewangan@nvidia.com>
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef _LINUX_POWER_SUPPLY_EXTCON_H
+#define _LINUX_POWER_SUPPLY_EXTCON_H
+
+struct power_supply_extcon_plat_data {
+ const char *extcon_name;
+};
+
+#endif