Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2296325rwb; Fri, 11 Nov 2022 07:33:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf7t+W/M5m1CoKLLtYRxO8yT51HWsbaFrMc7MsIin+PXiO6XShsFr67XKAd4Nozh9gKt3pAH X-Received: by 2002:a17:906:25d3:b0:7ae:6c36:3e29 with SMTP id n19-20020a17090625d300b007ae6c363e29mr2316959ejb.16.1668180792811; Fri, 11 Nov 2022 07:33:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668180792; cv=none; d=google.com; s=arc-20160816; b=fAeolHlnvvID5t1UHerPFja8ow3H5+9M8qQu4E3xiik6ASUBtu5QZZLiwHTVLHEDmf nzdloMhqsmsy2sAZrz8XwUWgqy41npz02Yr+JF0MZLqXdbjTzqxDUUv7/0PpTy5tHxzO +9prKysYBJZUhhCxM2gRc4T0mqXiyPqwGwv5bkqHt0uQA9i4uy1/rAlIUVKMIyUvVGmU 29PcAl21l864aA7fuAOn7tziY5wBjpAkg2xxmv6i5k1INiN7UgcpJd3ihKH1+XWBlBv7 LFQ7/d+IOeA4L6O6JXx/j/DEELVC48ZL47jk0mEzl9dx/pW6qYTLh1aRowBTcuPGLiML RAgg== 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:date:subject:cc:to:from :dkim-signature; bh=3BpIqKmaepR1SpUgklkTdQKDocBg8CsmOhHMlVS5EHA=; b=lx5Mcdyf3L4Sm968DmMkCUZV8m1h/5VYAtsixqQZV2WEpqw8gaTiSkeBClxtikPkjD pkEnSBfb61adfWKyZCC8e2JK0Zl9vl9ZNFPCFI8t6AhpdgH1aVQXR1Ey3JDy1vMrOLX9 ogSR+r6RcqDIAMuwRCySy6nUhGT9P0PSsVdGJGtLhfQD/xsFBLeCdTtETLAncPSjVhM0 SCJfIey93zC4l/IrVp/WE5EliUuwDOf0+PrGu2yDV3u+ycsSCZx0nyPO05OpZfKwBUap CtysNJgRIOKZXxh7a6fNdLZjnj5XI2kOSyOfhJ1yNwRmzW52eO5sCxtja+8krUe3ZHzX BC4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=DrM+gnHh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18-20020a05640227d200b00458b9b7bb2fsi2769397ede.396.2022.11.11.07.32.49; Fri, 11 Nov 2022 07:33:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=DrM+gnHh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234698AbiKKOjv (ORCPT + 91 others); Fri, 11 Nov 2022 09:39:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234206AbiKKOjg (ORCPT ); Fri, 11 Nov 2022 09:39:36 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A7E060372 for ; Fri, 11 Nov 2022 06:39:27 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id kt23so12993251ejc.7 for ; Fri, 11 Nov 2022 06:39:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3BpIqKmaepR1SpUgklkTdQKDocBg8CsmOhHMlVS5EHA=; b=DrM+gnHh97vdiwSHvs4Vlne0TO7c7w6abdslmDlScfvk00Y2RXCkV1/198Pr+SVcbm n84m7ML0SQY10/bU7IEnnEcKIHqkZ20R7/yCuFd2+jYTc3uRCe18o/7sh7Ix2V05Gdge f0lgC7FK/NGYosoVXQ1uY9SHIUGtr4TPm7JrI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3BpIqKmaepR1SpUgklkTdQKDocBg8CsmOhHMlVS5EHA=; b=SZ7b+yz4MhkPUMybVeSZD2qjZ4LCs13/FtsQoZ2ZbmJP5Pn5A8Uc57+K1GqVTksNVN GbpjD8pFy4Mocv46P7py6fxgJPmvM/5t/m/CrmhHBEfodb7S24erW5QFepjAcoP6bUsr rFT/XFFUKpiCKAHqNHJkmyz/U4vK0UDyjsiTQmDuqUwFta42SmH0/k/CLbxsOXt/zKjf UF/5/TlvfQtKSV5TiPjewrmlP0hWQ5f1XdExSzfCPsqPEK4GzH++avMST0cxa/lVvY6g I3oSDVJGuUGWa/STtNIpAeQK+CICnzuS/xkli/ppsyb1b2gPjU5TNExOl9y/6mE+gW1x 3ltQ== X-Gm-Message-State: ANoB5pnD5IT9b0hSSCV7JcWmEtyDCA37kOhNSKU5W7idD06y50q0WYp3 jU+oN3Q4Kpc0Zo0yjBxrMAPcZg== X-Received: by 2002:a17:906:388c:b0:7aa:97c7:2c04 with SMTP id q12-20020a170906388c00b007aa97c72c04mr2100956ejd.191.1668177566016; Fri, 11 Nov 2022 06:39:26 -0800 (PST) Received: from prevas-ravi.tritech.se ([80.208.71.65]) by smtp.gmail.com with ESMTPSA id jt4-20020a170906dfc400b007a1d4944d45sm945886ejc.142.2022.11.11.06.39.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 06:39:25 -0800 (PST) From: Rasmus Villemoes To: Cosmin Tanislav , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: devicetree@vger.kernel.org, Rob Herring , Rasmus Villemoes , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] iio: addac: ad74413r: add spi_device_id table Date: Fri, 11 Nov 2022 15:39:17 +0100 Message-Id: <20221111143921.742194-2-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221111143921.742194-1-linux@rasmusvillemoes.dk> References: <20221111143921.742194-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Silence the run-time warning SPI driver ad74413r has no spi_device_id for adi,ad74412r Signed-off-by: Rasmus Villemoes --- drivers/iio/addac/ad74413r.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/iio/addac/ad74413r.c b/drivers/iio/addac/ad74413r.c index 899bcd83f40b..37485be88a63 100644 --- a/drivers/iio/addac/ad74413r.c +++ b/drivers/iio/addac/ad74413r.c @@ -1457,12 +1457,20 @@ static const struct of_device_id ad74413r_dt_id[] = { }; MODULE_DEVICE_TABLE(of, ad74413r_dt_id); +static const struct spi_device_id ad74413r_spi_id[] = { + { .name = "ad74412r", .driver_data = (kernel_ulong_t)&ad74412r_chip_info_data }, + { .name = "ad74413r", .driver_data = (kernel_ulong_t)&ad74413r_chip_info_data }, + {}, +}; +MODULE_DEVICE_TABLE(spi, ad74413r_spi_id); + static struct spi_driver ad74413r_driver = { .driver = { .name = "ad74413r", .of_match_table = ad74413r_dt_id, }, .probe = ad74413r_probe, + .id_table = ad74413r_spi_id, }; module_driver(ad74413r_driver, -- 2.37.2