extcon: axp288: Use module_platform_driver to simplify the code
authorLiu Shixin <liushixin2@huawei.com>
Mon, 14 Sep 2020 06:54:00 +0000 (14:54 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 29 Sep 2020 15:40:06 +0000 (00:40 +0900)
commitdbc888072a976c2a7f74ad2df1ca3e6894f96002
tree65f73b1338df4f014a11edb1adeb9b19b1f842c4
parent6be65ed4f86aa7c4ba5c0193202d563f098e783f
extcon: axp288: Use module_platform_driver to simplify the code

module_platform_driver() makes the code simpler by eliminating
boilerplate code.

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-axp288.c