Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1077069pxk; Fri, 18 Sep 2020 03:14:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywxY4hcKMUVHrb3Do8beV+E2bfl2cF3lrt0kzX9VZqFpTnIL5fM+q5VdqPgym73UU6ndJQ X-Received: by 2002:a17:906:f6c6:: with SMTP id jo6mr34854609ejb.251.1600424053903; Fri, 18 Sep 2020 03:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600424053; cv=none; d=google.com; s=arc-20160816; b=SnDQJmE9AQnSOzLYzPa6fOAMRvgMV6qW6GPkX373MDAqIhrJKXrlZalrMmPVy4DvBk aZiAwhdsC3o2uX/ychClA4r65Uuu8E4Hk+hXU8ed3uOTairr5afl2zGzKDaT2EG1lnLa 7dhOhaSSfDMvg9j36S2OtrcZlZBVO6O1HDzP+BWu/zNRdIhZ7ghg0o/X3mMVU3l+V6Hd MeWDduhc6g4uBpT2xTWarxf/hd0HAyYLwiPFGRSRyRQhNYrqUcoMCkFWhx9wzRIjoIf5 D+Ch6CjvsSLS5AFNoe2Z1K5y59C9hDpnwG33S1My1L885M7Y1ROqRIqm0j8HYof9vR8u Q0og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=B2RrYPP4WwBhcAPM+z4j+nnQt84uCbCFCapmihVatzE=; b=SfMBe51u6Xb/r6GStejVin07KJtGOY7qeECyKmHnxAkdpbADbyU7WY2P+vRvBRu2jB 6w/2iuria8ZbB9qTJyaS9L573va8aAVniTxT017CSgJU5wP5seItAf5zTF7Gpg6ghjGP xfQzvZk6628BoL5HzRjEpF4WM+/5Zxiwj8DMl9Ic+6mbk3UsmsnDfEE3Z0aJ8F6GrwX6 8kOv1vJdFVvIQMQdwxLXoqH8BDpZZoilNdXK1/+ohtzO915TVog7rCoUUXPR1jxAN33R yGKoUy4TAyfL13ZTAhPJKwDkOiMHrcbd5pd5sCi91AGiERmmZ2Qz/bMzxCfmHidpajI+ ttjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nic.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si1729040edv.344.2020.09.18.03.13.50; Fri, 18 Sep 2020 03:14:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nic.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726601AbgIRKKK convert rfc822-to-8bit (ORCPT + 99 others); Fri, 18 Sep 2020 06:10:10 -0400 Received: from lists.nic.cz ([217.31.204.67]:33800 "EHLO mail.nic.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbgIRKKJ (ORCPT ); Fri, 18 Sep 2020 06:10:09 -0400 Received: from localhost (unknown [IPv6:2a0e:b107:ae1:0:3e97:eff:fe61:c680]) by mail.nic.cz (Postfix) with ESMTPSA id 2791B140A87; Fri, 18 Sep 2020 12:10:06 +0200 (CEST) Date: Fri, 18 Sep 2020 12:10:05 +0200 From: Marek Behun To: Sakari Ailus Cc: linux-leds@vger.kernel.org, Pavel Machek , Dan Murphy , =?UTF-8?B?T25kxZllag==?= Jirman , linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Bartosz Golaszewski , Sean Wang , Matthias Brugger , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Orson Zhai , Baolin Wang , Chunyan Zhang , Thierry Reding , Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= , Lee Jones , Liam Girdwood , Mark Brown Subject: Re: [PATCH leds v2 05/50] leds: various: guard of_match_table member value with of_match_ptr Message-ID: <20200918121005.1d805335@nic.cz> In-Reply-To: <20200918095759.GG26842@paasikivi.fi.intel.com> References: <20200917223338.14164-1-marek.behun@nic.cz> <20200917223338.14164-6-marek.behun@nic.cz> <20200918061500.GD26842@paasikivi.fi.intel.com> <20200918112058.6d3b0d5d@nic.cz> <20200918095759.GG26842@paasikivi.fi.intel.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-100.0 required=5.9 tests=SHORTCIRCUIT, USER_IN_WELCOMELIST,USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.nic.cz X-Virus-Scanned: clamav-milter 0.102.2 at mail X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Sep 2020 12:57:59 +0300 Sakari Ailus wrote: > On Fri, Sep 18, 2020 at 11:20:58AM +0200, Marek Behun wrote: > > On Fri, 18 Sep 2020 09:15:00 +0300 > > Sakari Ailus wrote: > > > > > Hi Marek, > > > > > > On Fri, Sep 18, 2020 at 12:32:53AM +0200, Marek BehĂșn wrote: > > > > Change > > > > .of_match_table = xxx, > > > > to > > > > .of_match_table = of_match_ptr(xxx), > > > > in various drivers. > > > > > > > > This should be standard even for drivers that depend on OF. > > > > > > After this patch, none of these drivers will work on ACPI systems anymore. > > ^ > > If CONFIG_OF is disabled, that is. > > > > > Hi Sakari, > > > > I don't understand. Why not? Does ACPI subsystem parse of_match_table > > as well? > > It does. The compatible string is used the same way as in DT for matching > devices with "PRP0001" _HID or _CID. > > Please read Documentation/firmware-guide/acpi/enumeration.rst . > > IOW, you can safely do the above only for drivers that depend on OF in > Kconfig. Otherwise you'll probably break something. > Sakari, thank you for the pointer to the docs. I thought that of_match_table is used only by OF (hence the name). Marek