Re: [PATCH v1 00/13] iio: Clean up acpi_match_device() use cases
From: Andy Shevchenko
Date: Thu Oct 24 2024 - 04:06:20 EST
On Thu, Oct 24, 2024 at 08:52:31AM +0100, Jonathan Cameron wrote:
> On Wed, 23 Oct 2024 18:17:23 +0300
> Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> > There are current uses of acpi_match_device():
> > - as strange way of checking if the device was enumerated via ACPI
> > - as a way to get IIO device name as ACPI device instance name
>
> Quick note on this one. That's an ABI bug that we are stuck with because
> we missed it in review a long time back and names aren't critical enough
> to justify forcing a fix through.
>
> I don't have a particular problem with a function to wrap that up,
> but thought I'd just make it clear in this thread that no new
> driver should ever do this!
That's a good addition!
Let me cook a v2 where I add this to the kernel doc and actually I have to
update the SoB chain in one patch.
--
With Best Regards,
Andy Shevchenko