Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp469156lqe; Sat, 6 Apr 2024 08:32:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKltDKABTHvffrvEexQ7GpxZUaL8D1waP9gyflp0ka+vCLoinpiCYPK2gEImIpjad7g8l2cQSWETIStW/sTZ5GHNZhg1ZrhzKCVvvOEQ== X-Google-Smtp-Source: AGHT+IE8Gg5+GtRl+vKejiqtxf9GJTCcbJ5jSgMGpc27DKyhxFqxxlEYT4ou3nDKDUTlQ2pv86QM X-Received: by 2002:ac8:7f95:0:b0:434:6874:8e94 with SMTP id z21-20020ac87f95000000b0043468748e94mr3652550qtj.47.1712417537292; Sat, 06 Apr 2024 08:32:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712417537; cv=pass; d=google.com; s=arc-20160816; b=JEu7b4Sa+HiupK8paKx0W/56bVoJDfBNfno+uEPwyXZCD9DOmOnk2q27syLqt2cAqs 0m7XvbgQmOeX6ZSDQWXHEQYV/MQLNCKKpplydBVRJ+K7EiCggZnAQlkMOe+OBbNRzuqp HvJFzm80gDHe3BGAgXrcHKiSVUORLrkpPwAgLrEU3oyDsf4MlzLCDTIbtqoPvC1CDjdJ t5H8CuRgFxlzq6VQjxjjt/Q/qFAb2WBnua8sKxPSCQQejs5Fk6aYFaDtkF0LM6FMuIOu nE4NDgCLu9uvNbdDfZJjniXi53/o9/SyIlqCSF275e3OUC2oUm0vDEC5c1WNAaz4KBwk T5jg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=yrI6/e6rAyHhj8NVtyueAb7n2xePbHMBdGqq9aT7Tv8=; fh=5SSGBMiPjQCw6VKY2T+QlSI2k/E4ScjkitL5w+pOXw0=; b=YcCoF/gNrTY/RuL6K7/u0dX0W1OHBhymf4a1JObAh+bMWuz+HlOGwVBdrLS79o0GTC 5KvnDTC94qet2JcSl29/PjSVxRog5InExIRk6mnfBaVn26FwFq+HTWPJ0GaLn/XYRKdB Xb3PBqjHpuTCeJJX954mrMNy0iF1Dc11cROOXknqkw1Hxfo/As84RhbiLPUIdglkhV6J +Cs6B6Pv8dgvoBzxboFiquGe/nHhtsGHsPnI0gfsUaFa/m8JvUFk2ifyp/7g8JBxePLY FFRz2cYAkOAwjeAxB0CKEY5DIVTVeV8hxPnErQja9uhd7sjjdcqG2YrTWG0XUB86Ink3 Qfew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=manFzp8B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133977-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x16-20020a05622a001000b0043468d37f01si2703275qtw.580.2024.04.06.08.32.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 08:32:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133977-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=manFzp8B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133977-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 09E761C20853 for ; Sat, 6 Apr 2024 15:32:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFD733A1C4; Sat, 6 Apr 2024 15:32:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="manFzp8B" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 219C439FC6; Sat, 6 Apr 2024 15:32:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712417529; cv=none; b=SF5/AwHTqV/tRL5DCKpNjMC3Ser9A8u7COhejudmLDDKOINaALajuxOyps8xudbB573FUsbhybZTnVXVu3rkvgkfMqv93r6kVgs334ud3rgcwxqU1O+ynEL1653BYooW8W0i/fhpMMmAMX3DSeahYHICJRwLhco0MuELEO6SxUQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712417529; c=relaxed/simple; bh=ZiWKqTlVngAKanx11YFdGqJCzaJQdlTtuRJlfIa+Y4M=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=aq8lesH9la0J8xiCrJ7sflRT6HLu5d4mBDfgEV3ciXNuYLVNo8bYBu2Dd79AcXYy4TlTtacLdYJ99vOSVkmZPUJyJ2/aboxViI9KUEy3Jif5lJCPT8tdIS4vpjFAxOW7vikb3jDabLnJJhEfLaaWgRCNN2wG2ixc17wwGf4FXN4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=manFzp8B; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 637D8C433C7; Sat, 6 Apr 2024 15:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712417528; bh=ZiWKqTlVngAKanx11YFdGqJCzaJQdlTtuRJlfIa+Y4M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=manFzp8Bt1uRVZSBAFwz+W3JmzpoCbxt4xV7y0m0DvY87KAiIWeP8NmDtOS50hiKf m/ylKXgqT1dCHTc7gTc3NZvJ+bDtBaiSOxvZIIY+FYEg7AK4pPso39ww2rJIT+INF1 R9ng10FjwAmnfWlpv0nQA8WwmnIB6WZr3gRjgD8cX+bRV0zVy7lP/Nn3k/6XK3gZAi +lMQ0GKPrrg+OqcbXQ7bPj0F12FGLAPzKvNBL6qtJ5lE6WwdMnjJYsbHTP245CEP8q XJicP59jtQML+768OsVk0CpRDaxNpl0CSgUmU3cFOk3omCggANazBudCH2FLOQKJMZ X6n8n48P3Tvlg== Date: Sat, 6 Apr 2024 16:31:55 +0100 From: Jonathan Cameron To: Krzysztof Kozlowski Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, Lars-Peter Clausen , Michael Hennerich , Arnd Bergmann , linux-iio@vger.kernel.org Subject: Re: [PATCH 16/34] iio: ad5755: hook up of_device_id lookup to platform driver Message-ID: <20240406163155.799f515a@jic23-huawei> In-Reply-To: References: <20240403080702.3509288-1-arnd@kernel.org> <20240403080702.3509288-17-arnd@kernel.org> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 3 Apr 2024 11:55:06 +0200 Krzysztof Kozlowski wrote: > On 03/04/2024 10:06, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > When the driver is built-in, 'make W=1' warns about an unused > > ID table: > > > > drivers/iio/dac/ad5755.c:866:34: error: 'ad5755_of_match' defined but not used [-Werror=unused-const-variable=] > > 866 | static const struct of_device_id ad5755_of_match[] = { > > > > While the data is duplicated in the spi_device_id, it's common > > to use the actual OF compatible strings in the driver. > > > > Since there are no in-tree users of plain platform devices, the > > spi_device_id table could actually be dropped entirely with this. > > > > Signed-off-by: Arnd Bergmann > > --- > > drivers/iio/dac/ad5755.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/iio/dac/ad5755.c b/drivers/iio/dac/ad5755.c > > index 404865e35460..5c1e7f428c25 100644 > > --- a/drivers/iio/dac/ad5755.c > > +++ b/drivers/iio/dac/ad5755.c > > @@ -876,6 +876,7 @@ MODULE_DEVICE_TABLE(of, ad5755_of_match); > > static struct spi_driver ad5755_driver = { > > .driver = { > > .name = "ad5755", > > + .of_match_table = ad5755_of_match, > > I was working on this as well and have a bit bigger solution, following > Jonathan's preference (I think): > > https://lore.kernel.org/all/20240226192555.14aa178e@jic23-huawei/ > > I need to send v3, somehow I missed his comments. > > Jonathan, > Do you want me to still work on this according to your comments (which I > missed, I am sorry). No problem on missing the reply! (I'd forgotten all about this!) I would prefer that solution to this one that relies on the two tables having equivalent entries. So I'll not pick up this patch. Thanks, Jonathan > > Best regards, > Krzysztof >