Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1269519pxu; Mon, 23 Nov 2020 16:35:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGKVQZ2bIitJErCOb4lvgXlHDkO/6KFLdnmCa4jHZtEHi0onZLFvVD/f6aR/7/awOMSEWa X-Received: by 2002:a17:906:a88:: with SMTP id y8mr2023036ejf.469.1606178108096; Mon, 23 Nov 2020 16:35:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606178108; cv=none; d=google.com; s=arc-20160816; b=ND7ZDeYWM3pYS4hkznQbTVYnEvElbmuxiHHM6tRqyrC+DNoxrYy0JDX5isy2l+MGoB rL5S1gyPXRrHtGPbirVq2lN7etW2khZR994k64FrwD5yegJWnA6QobDMHb/pQQZef8EQ XDOTWr1gYcpGCdUwl9JNacyAZujjuFwZGW5BrR9vzOKovgXkmt9MaUT/cB0VvHr27wZF zVrToVR3HHPBx88es2D2MD80TIYDG4Dzn1B5VW9wdW87e4acW112K18ai+yf/ndexMUr jjz/2tmaPxRFpKXWJkkoPAXeAdd7UAHRs8MCeVAxmJj9U8NJMH1xvgjq9/7FqSZkI6LQ z3vw== 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=tTIXw5rLyAv33bToM20XD0dcKwsOzV94mj/iEGVXRWs=; b=irwe6HuF6N2fnsEKOMd4WJSfQjKPrds4wHYxQaApIWZk+8SZ56B66KrNUNrqxT3CUI 98g131VpnBuXAtQtjNcm1uyEg3HPkSoKeT4FSS3rLT7iLty9gocChyC4N9PX6BxcPFdu eUwQ0uvBRpO5ghH1C8t5X+7peITg7KBBPi0AaMUgIryWhvnVgiESVCT+Lur5g1Dbdk+M EuYPlxjQThTrcdHx0M7s7KSuHRwK1ifs13RSHD3AYqYXH0rZSB6lyTLKYpOJUuBplG1z bXLZ5SdteS/LjG3K+pXJiAMyZRpWY3Nxb+M2A3P/DtL7AyU+K5fOLHBaTWnuoUB/GmrX gyRQ== 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 c19si7728184ejk.311.2020.11.23.16.34.45; Mon, 23 Nov 2020 16:35:08 -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 S1732979AbgKWQpy (ORCPT + 99 others); Mon, 23 Nov 2020 11:45:54 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45017 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732365AbgKWQpy (ORCPT ); Mon, 23 Nov 2020 11:45:54 -0500 Received: by mail-wr1-f65.google.com with SMTP id 64so5846669wra.11 for ; Mon, 23 Nov 2020 08:45:52 -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=tTIXw5rLyAv33bToM20XD0dcKwsOzV94mj/iEGVXRWs=; b=oy9bV82qhmGP0lU1dJ9z8CrDxCaO0R2bYAH/YpanNuqr0reZIvllu7qPBYwMPNBdtU vNDc8M8HjUbst3xWXAzOOAMUVooJ90T1UTcGULN3HEG/9qDlAAAmpwWpDUvqKJhCGHnG BI+MYvJi+lxOyHv6RNmzlA8zA9suF9cLkO7hOav0e51YAkiwqtlIrzyqXT+8aQ4Tmad9 rzjM6PmWg71njkFkE/Gm/DFeLO2fV876SYNjJqcd+wcq+dPRIgr9WubnlEgEuIR8HpO4 xcfWrsqBSyiTgey+C8YHoSRNvQK3IIHvGD/dDxdD74BoxB358oxaashrbCcfG8ia2xZO FMKQ== X-Gm-Message-State: AOAM531lkSLM1bMyPg9EsXrpOacyha0BFu6i7bcb2xBoUCZ35f4LfEVv Bo26jJb+V/Hvg6fRVCMr2yE= X-Received: by 2002:adf:fd0d:: with SMTP id e13mr538070wrr.85.1606149951691; Mon, 23 Nov 2020 08:45:51 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id d13sm22466554wrb.39.2020.11.23.08.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 08:45:49 -0800 (PST) Date: Mon, 23 Nov 2020 17:45:48 +0100 From: Krzysztof Kozlowski To: Mark Brown Cc: Andy Shevchenko , "Rafael J. Wysocki" , 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: <20201123164548.GA211086@kozik-lap> References: <20201120165202.GG6751@sirena.org.uk> <20201120194245.GA2925@kozik-lap> <20201120200429.GJ6751@sirena.org.uk> <20201122105813.GA3780@kozik-lap> <20201123104832.GY4077@smile.fi.intel.com> <20201123123731.GA6322@sirena.org.uk> <20201123124129.GA170000@kozik-lap> <20201123135006.GE6322@sirena.org.uk> <20201123145831.GA202597@kozik-lap> <20201123164330.GG6322@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201123164330.GG6322@sirena.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 04:43:30PM +0000, Mark Brown wrote: > On Mon, Nov 23, 2020 at 03:58:31PM +0100, Krzysztof Kozlowski wrote: > > > Having these of_match_ptr() for OF-only drivers is not the correct way > > but rather something which is copied from existing drivers into new > > ones. This is another reason for removing them - people will stop > > copying this code all over again. > > Well, it seems that the issue the PRP0001 people are having is that > they'd rather that there were fewer OF only drivers! More generally > it is good practice to write things as though there might be non-DT > support even if it's not there at the present time, it's easier to not > have to think if it's strictly needed and it helps anyone coming along > later who does want to use things elsewhere. I understand. I will send therefore a v2 adding __maybe_unused to the OF table. Best regards, Krzysztof