Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2560356lqz; Wed, 3 Apr 2024 01:24:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5MVSuKfNaS/Zmo9ygxz9sZEPkxA1Ip+YRo06+TS/B/nVaGG+e42KkymdvEaCI8SjX4lPENjHZKkKb8ijTR9kLCvP1QtiCFftQDVgUJg== X-Google-Smtp-Source: AGHT+IEIXv7VCjRDKY4JPmsBKmgbed0b3hC+fqcsOKGKAM2CV/sRPihQYafd2vLDZyqTpz5F8gzq X-Received: by 2002:a05:6358:8749:b0:17f:87fb:5326 with SMTP id q9-20020a056358874900b0017f87fb5326mr16432876rwh.24.1712132662982; Wed, 03 Apr 2024 01:24:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712132662; cv=pass; d=google.com; s=arc-20160816; b=qeC9Gm8bBj98TM6osRUfbIrOXCVCXXRML1ZaPpA+UM10E+nlZRp2MBMTK62WLn+aUq Dp5PWmAIAeZF4PeZXaDSUzr8+3fbZKrutkCQ51wpt+sMwHHwHXoVF0LVBDj/DUwWRR9q pS2k4W7N3mCS7TILgWH8hX5o9K30GiKTMB3VL10VosJN0P6G+ruNO2nU34uZkF8W0ysg q+/pKxK9w2KBA2dMMA/2MxaYw9+mOXg7xwudvcbM3mbpZ804UGQ21kN0NyKrj2+gAsYp b05gkCCpjda8byJ9Z0FJ8EB2BjijXWvxelTrXEhO+X3EC4PKsDXKRYIqvEDikeVEVlvl +7rQ== 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 :date:subject:cc:to:from:dkim-signature; bh=etVLlVfTxk4zJwYclEujXWRZRENTcijQIxji11C4oS0=; fh=hE7JxNuuA81lI+f/oUD7g5VcWkxHXb3AbUpfWmoluTE=; b=PX9O294Y2xmYixYE9y+enWUD7lOVp/Fi9uOmZtlQKukwGJfhzLIIvH/HwPv9lL+2vE ZQ9askTszee+wO4MHTqkaUey4d9f1354tuIlp7srrwY11lLipcde43spvZgmUbCm96LO FLragE6EZYoKJ41qEkwSiSIZwFgw+dFFc2YHvdx1m3EIMcc3OSIM2EbhMgga2LUrV2QC lLOSdDCfAw5XERHzbC+1r37foitamBpFnUO4EaPDTkW94fQAz1MXRJW+ajad2KGGq75u DKhvv4b2fLv21/+yuSN/TjGW0ux7gj6yxsH+Cw1nAzSgJg93hSVQm2csMeK6BwIexrtw SfLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PPo1hZbH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o6-20020a655206000000b005cdc5c9d6a2si12868875pgp.576.2024.04.03.01.24.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 01:24:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PPo1hZbH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129293-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F28E028D888 for ; Wed, 3 Apr 2024 08:19:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C947812A163; Wed, 3 Apr 2024 08:10:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PPo1hZbH" 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 F1EF91272C0; Wed, 3 Apr 2024 08:09:59 +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=1712131800; cv=none; b=CBltegfnWOjPxbtGN/ycuT93XE81F8XBRu7aaGoQmMT3wDFXV9cNrVAH2H8Du95Lsp5UvPs5ZytG9AKcMPgMnLUynql+6o62t/RwtlW8q3xv4syNX7MqP/nxtS1Jl1GR3ei/czGrI5n0oZPRiMvs1u3zr4RB01IKUzVF0NQ3DrQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712131800; c=relaxed/simple; bh=pX6dYyDPlq8hzzGWYPenFWRCC5RcIISkFIbgpQbdAic=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RUJYNYuiFsQhY9ER+aZ/AYNUV5cPB0puJ4a6VKowCqrJB9nIRDNKfB21ESMCMYx0CPB6ATSKrTBrEpurnZaioSws7RPJk6RmxmI4ibrL9s7P3hTArKBkDZGlgjtuKj+Ja7jCtysio4w8Z9iUbUetJTrFQ4ZQp1HlixqKkFI0bSk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PPo1hZbH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BDC3C433F1; Wed, 3 Apr 2024 08:09:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712131799; bh=pX6dYyDPlq8hzzGWYPenFWRCC5RcIISkFIbgpQbdAic=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PPo1hZbHq1OpuLsc+XNRFuEVSBFO6Rg1j5p54Ljrc1DIZRdU00w+JzXqBAN5oR7sv 2r8JjHioIIiG7s34QrVMlnAOW4YJ3h5WjcpBFMW6Xy0tEycOcCgsCm0EUgTer2XPuI UzAgPhvABQpHeDKIoDqQRXUoaf60SJZB3OVs3eXhwTDbFKYQK/vcn+r9C5pO58DKj0 nF+IMOoUiVvhaKQfhlUj00v9j1ZIyd3Uu8RKFFrC//bgjOuRjf3nphvEBKyFYnjThK JJjI42L6HpHSHGNKZQdRsSi1Ny5jcIF32hE8AmREWRfmM/SPffGCiJEMfvRxDJpxay 3f16whpPww5qA== From: Arnd Bergmann To: linux-kernel@vger.kernel.org, Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: Arnd Bergmann , linux-iio@vger.kernel.org Subject: [PATCH 16/34] iio: ad5755: hook up of_device_id lookup to platform driver Date: Wed, 3 Apr 2024 10:06:34 +0200 Message-Id: <20240403080702.3509288-17-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240403080702.3509288-1-arnd@kernel.org> References: <20240403080702.3509288-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, }, .probe = ad5755_probe, .id_table = ad5755_id, -- 2.39.2