lkml.org 
[lkml]   [2022]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] iio:accel:dmard06: Optimize when CONFIG_OF isn't set
    On Fri, Aug 26, 2022 at 1:46 PM Jean Delvare <jdelvare@suse.de> wrote:
    > On Thu, 25 Aug 2022 23:12:43 +0300, Andy Shevchenko wrote:
    > > On Thu, Aug 25, 2022 at 3:54 PM Jean Delvare <jdelvare@suse.de> wrote:

    ...

    > Now I'm curious, is there a well-defined subset of device names that
    > can be found in an ACPI table? If not, does that mean that any driver
    > with an OF entry could match,

    Yes, anything can be matched by ACPI with any of the compatible strings.

    > therefore of_match_ptr() should be
    > removed from the kernel entirely?

    In most cases yes, like for discrete components that can be connected
    to any SoC on ACPI/DT/whatever platform. But for some cases it still
    makes sense: platform is known to never be non-OF, component is known
    to be used only on such platforms, etc.

    --
    With Best Regards,
    Andy Shevchenko

    \
     
     \ /
      Last update: 2022-08-26 17:25    [W:3.085 / U:1.320 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site