Re: [PATCH] extcon: Remove deadcode
From: Dr. David Alan Gilbert
Date: Sat Dec 07 2024 - 16:35:48 EST
* MyungJoo Ham (myungjoo.ham@xxxxxxxxxxx) wrote:
> 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
Thanks for the reply,
> 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.
Ah hmm; ok, I'll drop that.
Of course it would be great to get some of these upstreamed rather than us
having mysterious interfaces lying around for ~10 years!
Dave
> Cheers,
> MyungJoo
>
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ dave @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/