extcon: int3496: Add support for binding to plain platform devices
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Dec 2021 17:01:40 +0000 (18:01 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 13 May 2022 08:03:40 +0000 (17:03 +0900)
commitc26aef6d396b015d89a10a3b433dc9d7f759bb9f
tree3b568c6a5bcc0836155b7b62c944c2dc7f9c9d77
parent12514f668c1fc608624b23a3cccc4845290c1211
extcon: int3496: Add support for binding to plain platform devices

On some X86 Android tablets the DSTD lack the INT3496 ACPI device,
while also not handling micro USB port ID pin events inside the DSDT
(instead the forked factory image kernel has things hardcoded).

The new drivers/platform/x86/x86-android-tablets.c module manually
instantiates an intel-int3496 device for these tablets.

Add support to the extcon-intel-int3496 driver to bind to devices
without an ACPI companion and export a normal platform_device
modalias for automatic module loading.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-intel-int3496.c