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, 4 Feb 2022 02:13:30 +0000 (11:13 +0900)
commitd5f260959eb007dfffc71535d4fe543b2b37dd0b
tree89d12ffcdf0d1c9a1877720fb78c554b1d154396
parent93c6c2516d797c0114704d8ed5455cb10bca41c4
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