extcon: Use to_i2c_client for both rt8973a and sm5502
authorGeliang Tang <geliangtang@163.com>
Mon, 28 Dec 2015 15:00:15 +0000 (23:00 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 25 Jan 2016 04:16:53 +0000 (13:16 +0900)
commitd58593426e5cf41009f2e9d6eec3f47fe0cbedeb
treeffbd35cd7a684850cf00e1ae0b00537ebf24ebad
parent92e963f50fc74041b5e9e744c330dca48e04f08d
extcon: Use to_i2c_client for both rt8973a and sm5502

Use to_i2c_client() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-rt8973a.c
drivers/extcon/extcon-sm5502.c