aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-axp288.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2015-06-11 22:10:06 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-12 20:01:42 -0400
commit73b6ecdb93e8e77752cae9077c424fcdc6f23c39 (patch)
treeb5835ea1ec76678325e73280209384361f82b695 /drivers/extcon/extcon-axp288.c
parent03cb0503014f49e41a937d81238ab059fd69ad78 (diff)
extcon: Redefine the unique id of supported external connectors without 'enum extcon' type
This patch just redefine the unique id of supported external connectors without 'enum extcon' type. Because unique id would be used on devictree file(*.dts) to indicate the specific external connectors like key number of input framework. So, I have the plan to move this definitions to following header file which includes the unique id of supported external connectors. - include/dt-bindings/extcon/extcon.h Fixes: 2a9de9c0f08d ("extcon: Use the unique id for external connector instead of string") Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/extcon/extcon-axp288.c')
-rw-r--r--drivers/extcon/extcon-axp288.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c
index 3605aa96c25a..ea962bc547b8 100644
--- a/drivers/extcon/extcon-axp288.c
+++ b/drivers/extcon/extcon-axp288.c
@@ -101,7 +101,7 @@ enum axp288_extcon_irq {
101 EXTCON_IRQ_END, 101 EXTCON_IRQ_END,
102}; 102};
103 103
104static const enum extcon axp288_extcon_cables[] = { 104static const unsigned int axp288_extcon_cables[] = {
105 EXTCON_SLOW_CHARGER, 105 EXTCON_SLOW_CHARGER,
106 EXTCON_CHARGE_DOWNSTREAM, 106 EXTCON_CHARGE_DOWNSTREAM,
107 EXTCON_FAST_CHARGER, 107 EXTCON_FAST_CHARGER,
@@ -157,7 +157,7 @@ static void axp288_extcon_log_rsi(struct axp288_extcon_info *info)
157static int axp288_handle_chrg_det_event(struct axp288_extcon_info *info) 157static int axp288_handle_chrg_det_event(struct axp288_extcon_info *info)
158{ 158{
159 static bool notify_otg, notify_charger; 159 static bool notify_otg, notify_charger;
160 static enum extcon cable; 160 static unsigned int cable;
161 int ret, stat, cfg, pwr_stat; 161 int ret, stat, cfg, pwr_stat;
162 u8 chrg_type; 162 u8 chrg_type;
163 bool vbus_attach = false; 163 bool vbus_attach = false;