diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s5pv210/mach-aries.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/mach-aries.c b/arch/arm/mach-s5pv210/mach-aries.c index 9bf4eee..c2ae21e 100644 --- a/arch/arm/mach-s5pv210/mach-aries.c +++ b/arch/arm/mach-s5pv210/mach-aries.c @@ -2520,6 +2520,10 @@ static void fsa9480_cardock_cb(bool attached) switch_set_state(&switch_dock, 2); else switch_set_state(&switch_dock, 0); + + set_cable_status = attached ? CABLE_TYPE_AC : CABLE_TYPE_NONE; + if (charger_callbacks && charger_callbacks->set_cable) + charger_callbacks->set_cable(charger_callbacks, set_cable_status); } static void fsa9480_reset_cb(void) |