History log of /drivers/extcon/extcon-sm5502.c
Revision Date Author Comments
b7c7e0865944131820e1a65ff3b08d94ae553d0f 16-Sep-2014 Jean Delvare <jdelvare@suse.de> extcon: sm5502: Drop useless include

Don't include <linux/input.h> when the driver does not use anything
from this header file.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
fbae30d8dd35454bd4a55445d1bb51c620f8e646 12-Aug-2014 Chanwoo Choi <cw00.choi@samsung.com> extcon: sm5502: Clean up codes by using checkpatch script

This patch just clean up codes by using checkpatch script and fix warning
message about if statement.

- the result of checkpatch script as following:
WARNING: void function return statements are not generally useful
+ return;
+}

WARNING: quoted string split across lines
+ dev_err(info->dev, "failed: irq request (IRQ: %d,"
+ " error :%d)\n", muic_irq->irq, ret);

- warning message about coding style.

drivers/extcon/extcon-sm5502.c:398 sm5502_muic_cable_handler()
warn: we tested 'attached' before and it was 'false'

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
ca2a07e45d1d3d31a0a85d2f63d81a897c610040 31-Jul-2014 Chanwoo Choi <cw00.choi@samsung.com> extcon: sm5502: Move sm5502.h header file to extcon directory

This patch move sm5502.h header file from 'include/linux/extcon' to
'driver/extcon' because sm5502.h is used for driver/extcon/extcon-sm5502.c.
and remove duplicate license description.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
0ccc7955acc19e7f4515e51993b7b95cf5a35fdc 30-Jul-2014 Chanwoo Choi <cw00.choi@samsung.com> extcon: sm5502: Fix bug to check cable type

This patch fix bug when checking cable type. SM5502 have to use ADC value
to get correct cable type.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
a75fed2ee6c187ab32b1cb01882c1032c4c9e4a8 28-May-2014 Chanwoo Choi <cw00.choi@samsung.com> extcon: sm5502: Change internal hardware switch according to cable type

This patch changes internal hardware DP_CON/DM_CON switch according to
cable type. The SM5502 MUIC device can set hardware switch as following:
- OPEN (not connected state) / USB / UART / AUDIO
Also, this patch set VBUSIN switch according to cable type.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
e1954452f500cb21c09ea401f6f431ab55b35ba3 28-May-2014 Chanwoo Choi <cw00.choi@samsung.com> extcon: sm5502: Detect cable state after completing platform booting

This patch detect whether cable is connected or not and the cable type
after completing kernel/platform booting using system_power_efficient_wq.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
914b881f9452fd615cc597b434fd8c0e12a7dae2 22-May-2014 Chanwoo Choi <cw00.choi@samsung.com> extcon: sm5502: Add support new SM5502 extcon device driver

This patch add new SM5502 MUIC(Micro-USB Interface Controller) device by using
EXTCON subsystem. The extcon-sm5502 driver is capable of identifying the type
of the external power source and attached accessory. An external power sources,
such as Deticated Charger or a standard USB port, are able to charge the battery
in the smart phone via the connector.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>