RE: Re: [PATCH] extcon: Remove deadcode

From: MyungJoo Ham
Date: Fri Dec 06 2024 - 23:58:29 EST


From: Dr. David Alan Gilbert / linux@xxxxxxxxxxx
>* linux@xxxxxxxxxxx (linux@xxxxxxxxxxx) wrote:
>> From: "Dr. David Alan Gilbert" <linux@xxxxxxxxxxx>
>>
>> extcon_get_edev_name() has been unused since it was added in 2015 by
>> commit 707d7550875a ("extcon: Add extcon_get_edev_name() API to get the
>> extcon device name")
>>
>> extcon_get_property_capability() has been unused since it was added
>> in 2016 by
>> commit ceaa98f442cf ("extcon: Add the support for the capability of each
>> property")
>> (It seems everyone just uses extcon_get_property)
>>
>> extcon_set_property_sync() has been unused since it was added in 2016
>> by
>> commit a580982f0836 ("extcon: Add the synchronization extcon APIs to
>> support the notification")
>> Everyone seems to use the none _sync version, and there's one place
>> where they just call sync after it.
>>
>> Remove them.
>>
>> Signed-off-by: Dr. David Alan Gilbert <linux@xxxxxxxxxxx>
>
>Gentle ping please; no rush.
>
>Dave

It's not a dead code.

Example: https://github.com/diphons/D8G_Kernel_oxygen/blob/b0717c360f5485badf824fb51cdc8174e2e0a7cb/drivers/usb/dwc3/dwc3-msm.c#L2992

There are drivers (usually .ko) using them, usually Android mobile devices.

Cheers,
MyungJoo