Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1527969pxb; Fri, 20 Nov 2020 11:44:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWPxPkLTbVnSNy+QFasuH/1d9bs+6qx1H81Nqeq8AkC7NYUSTrxId1Sr7gz2HYRrgtasl4 X-Received: by 2002:a05:6402:44b:: with SMTP id p11mr36885180edw.164.1605901490246; Fri, 20 Nov 2020 11:44:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605901490; cv=none; d=google.com; s=arc-20160816; b=Dt6Q6T3JxoMs7UyRQ/2EY5tiKD6NStM5s12zI0QPWma+maC9+e91QHryn71I8OmDDi +t06QH15VPSLe9gTw4dAP9i/5LQU0/ha4mJLgpPzew5bxUSdTY/dyGcEYJ3CeN5bAjbA 0Jg1Hl0qzSU5lS9LifaiKiAhhtksZzwFXh3Y6iGr7xsDHn2bH+W1pY+dpyP0zrgPUohC Ub6W4EWwtMCiLvKpkOFp/GoMy1AefnH4r84eMWcB7+znVMZ+/lVaeQyBdZO2wHvVc/yK AerTDCHOBzPITxbU4OyO8mzdmno0KUr0O2OajD+enEkKPULfe7sbiF0VxiZwifz/SCwa DaDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=jOXZ/NCVCIvYKIWpmcFp+SbynGH7tAa1IfD+gFImPbE=; b=oeQGkn5XeaTC3m5gx1mGz+dq0y87oZM5YKVGz4x4bJ0Mi+vDIcqXC4RQx3hYxTl7Sc fdN7GsWCsRwer3TkOancyHfMzGngzuEWGnGNie7biTMQ/0w4oobNpiXGxYVvAiVL7cq3 e7iJ95k4IMcH9xWfsHrFDTfS0LphwpE7JdQXAT8Tt3ecl78hEFvxqD/iDIwvv9LQvqTF eyNeW0iOxXafGd7MZRFWRBA63bXGIPbHey6xx1x6QxTMhCQxmGCtB/pjcMZ0Dc+DLOWa iEKunHplYiWrP4zdbq+Y11HWhbce57p61iCAMow3q8XHF/cjOaUCbdBkkTMMFhjqcRuq UHLQ== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt26si2171016ejb.706.2020.11.20.11.44.25; Fri, 20 Nov 2020 11:44:50 -0800 (PST) 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728934AbgKTTmv (ORCPT + 99 others); Fri, 20 Nov 2020 14:42:51 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:42895 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728761AbgKTTmv (ORCPT ); Fri, 20 Nov 2020 14:42:51 -0500 Received: by mail-ed1-f68.google.com with SMTP id v22so10706259edt.9 for ; Fri, 20 Nov 2020 11:42:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jOXZ/NCVCIvYKIWpmcFp+SbynGH7tAa1IfD+gFImPbE=; b=aIQluDI1xzhVM7lg3XleI5zNTtwJ0gS3WLwfgOAK57BrrmXAldqm8ZS5Y9HCOgcOLB geAdcgx2pkXl1jJc6grUImMV4HXva7sF4JC3X+n7r5WYEqVCgAnUCpPh/YiuDpGB1Ll+ v/OYgqQkCSkfrn/aFMz21aO52VqjRQ4M/do02M2C9KVbPempU9w7l3w1AGRybHeC8Vfl JB6d1U1RqKumiyNqkpGMzKs9rM/mxAGwxkbsAyFeWEH7QcqvN8Cd32/Oxs6Uhwo/GuAO Ywvl5iBQcX/Q8UWAQmKNaUdo6dAFAl9HQBcC63j9FMxz+QIULv1ZzFZyyFb0SsY4cwf0 fhWQ== X-Gm-Message-State: AOAM531bkT0W8dANFMuowAvaqrIPd6i0rF8BLpbLun7P4b2l1tLgOHgj oIDRMzTy7cqSENf0K6nKuY0= X-Received: by 2002:a50:ab06:: with SMTP id s6mr29303017edc.288.1605901368051; Fri, 20 Nov 2020 11:42:48 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id u8sm1514624edr.2.2020.11.20.11.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 11:42:46 -0800 (PST) Date: Fri, 20 Nov 2020 20:42:45 +0100 From: Krzysztof Kozlowski To: Mark Brown Cc: linux-kernel@vger.kernel.org, Liam Girdwood , alsa-devel@alsa-project.org, Jaroslav Kysela , Takashi Iwai , Shengjiu Wang Subject: Re: [PATCH 01/38] ASoC: ak5558: drop of_match_ptr from of_device_id table Message-ID: <20201120194245.GA2925@kozik-lap> References: <20201120161653.445521-1-krzk@kernel.org> <20201120165202.GG6751@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201120165202.GG6751@sirena.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 20, 2020 at 04:56:34PM +0000, Mark Brown wrote: > On Fri, Nov 20, 2020 at 05:16:15PM +0100, Krzysztof Kozlowski wrote: > > The driver can match only via the DT table so the table should be always > > used and the of_match_ptr does not have any sense (this also allows ACPI > > matching via PRP0001, even though it is not relevant here). This fixes > > compile warning (!CONFIG_OF on x86_64): > > It would be better to fix these by annotating the table as potentially > unused, if nothing else it means if someone wants to add ACPI support > (or it just works on their ACPI system with the plain old I2C ID) then > they don't need to revert this change. The point is after this patch - removal of of_match_ptr() - they will already support the ACPI matching through the PRP0001. Keeping of_match_ptr() and maybe_unused will prevent any ACPI re-usage unless explicit ACPI table is added Best regards, Krzysztof