Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6187584rwr; Mon, 24 Apr 2023 15:26:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4GphTxerSrn17J1TC6ZBZdV3qzE8V5QAd35TNPhzOiX5+ljv3+s1VB7czS50EMWg/BnvVg X-Received: by 2002:a17:902:c946:b0:1a9:8907:ae4e with SMTP id i6-20020a170902c94600b001a98907ae4emr1140269pla.9.1682375203153; Mon, 24 Apr 2023 15:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682375203; cv=none; d=google.com; s=arc-20160816; b=GPcKBBJe60SZ+NgYFM2CHeO3TQdsx90685etOzsw/Fg5VbHaxFR93kxFh0Km3UbQ2G Nw0gvrK0XyGvmFXXYslBYvnFJ7b8Uy+jP6ekRN70R1hGEhdncops2/cl/ZhhoL/sI6O/ /mMm8LP89YStrh1SIjmBzusbi0qdBiiPMmbXKkAaWZm0ooQPX40shIGPvKzgvvivkhzc y/iB5fhVl7BMWxH3o+B7fmbvQp8xnWZtu1PcMeUESLxkV3gWWsafic+0iLhf4nxcNsft yK3ujYzl+fmUvs7KCIdJqFDM31BNiTjCLjl7tr5bdfHj5AJ6NEqms1R6GWs9rX/mX7/9 qtOg== 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=F7UnLspN79oTl8aJsv0wYQL9xuvLZmb8AWbAng86EQc=; b=R3CUBlpJ+h1Z4x9ApPxr4Jkb8+0RYz13U0mtWAma7lwhUvflx9v6vYIWXbNOBU/nfx 9EivUd0deUyLDYh3KQlk4P8KJoXRAxfq6SdvHjYwChMlfHv/9NG/SRj7imaTPo/TkoAL YRJpeA0ti37I2BnBOit3Phcd17ejEO5A1SLN98yj2FxT4VunNWkAGbvmm3evLtSYiPxJ yQMQGL6h5Whm+RNPvzqXzMJf4qnPuKNza7t6dteOfd597EEmXh1HmmfVa1QThQiYMkjR GFPK7umgtmQWi38yYCRS6EgMA6fJCOZqS0emoxjRQTatPjJQSvtQiQGQ4lkO2GUmTZyX 6dDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=HoIPa5hy; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a170903125100b001a6ce2cdb20si3386373plh.244.2023.04.24.15.26.12; Mon, 24 Apr 2023 15:26:43 -0700 (PDT) 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=@gmail.com header.s=20221208 header.b=HoIPa5hy; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233322AbjDXWXB (ORCPT + 99 others); Mon, 24 Apr 2023 18:23:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233288AbjDXWWu (ORCPT ); Mon, 24 Apr 2023 18:22:50 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A488A56; Mon, 24 Apr 2023 15:22:44 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-94f7a7a3351so926807466b.2; Mon, 24 Apr 2023 15:22:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682374963; x=1684966963; 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=F7UnLspN79oTl8aJsv0wYQL9xuvLZmb8AWbAng86EQc=; b=HoIPa5hy+R6fqIEnlncAi0AGqvCdrnpL6OBQaiSVZ18WqIf2edgVY9LYl+bMikSrkN r/8O+qCt32enMVnTKLp3hj1OOX9qY73qNPEhRQNoZdfNuQwJ/dwZKN70nTjWxruWLbXM jD1AOLEReaCCc3xeewbrJSKyQSLc8rBAmPSD3h63nfd136hbumENUKcRZS4L/N8emKrI 7dZXSnLiuqRyjO+GW+Ft5iEfs8FXC7iEkG/RqzoWaz5inzeP47XDhbCt7K2BaOHHyG0b WjDuVGcYm252W7fodoUFGFErSF2a345DBs0rabNNW0K/Yr2hWq6JHjpY8NRM0Ztleb3S DUVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682374963; x=1684966963; 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=F7UnLspN79oTl8aJsv0wYQL9xuvLZmb8AWbAng86EQc=; b=HLOp95BIB40SCRi4kIKFnzqGy/BXKM4DLqiKEvCehOSMmoUjJ0I4Sw1DD0apHcKpEK NvgqTN8xOqyY7Cm6n9EDcFxmTHl5ND13CA5wZfs78cxiO+dNqgcdG615pEbNObN/6MW8 fG1NUj5KzgRO3iKjAKLkkBLHLW2aOUZxgImk2ZTlzPsJ/HJO8dofuqsF47KS46MoqH4Y KmhmZxQYnbZ7JLb3FrLvUjgbwUO918qkVNgy5pmIrn8EQMDjCkkIAjpbOYE41hQPc1rU oZYmyzOfRomWlG8HHdoMdYcdS9g7eHPsvrV5zswouYYnV2Hklp3gLd8wpm8kJOjBBaDp +60Q== X-Gm-Message-State: AAQBX9cKrgYPVdnrAujJqEnS/jXAte2vVP+Ids3Dgmtuc165kjJf5gIZ yHRKnTY1Mt52VFt2WTdLQvQ= X-Received: by 2002:a17:907:765a:b0:94f:39b4:e32c with SMTP id kj26-20020a170907765a00b0094f39b4e32cmr11873280ejc.43.1682374963034; Mon, 24 Apr 2023 15:22:43 -0700 (PDT) Received: from localhost.localdomain ([2a02:8109:aa3f:ead8::2fd0]) by smtp.gmail.com with ESMTPSA id g21-20020a170906539500b0094efdfe60dcsm5870886ejo.206.2023.04.24.15.22.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 15:22:42 -0700 (PDT) From: Mehdi Djait To: jic23@kernel.org, mazziesaccount@gmail.com Cc: krzysztof.kozlowski+dt@linaro.org, andriy.shevchenko@linux.intel.com, robh+dt@kernel.org, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Mehdi Djait Subject: [PATCH v3 4/7] iio: accel: kionix-kx022a: Add an i2c_device_id table Date: Tue, 25 Apr 2023 00:22:24 +0200 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Add the missing i2c device id Signed-off-by: Mehdi Djait --- v3: - no changes, this patch is introduced in the v2 drivers/iio/accel/kionix-kx022a-i2c.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/iio/accel/kionix-kx022a-i2c.c b/drivers/iio/accel/kionix-kx022a-i2c.c index e6fd02d931b6..8f23631a1fd3 100644 --- a/drivers/iio/accel/kionix-kx022a-i2c.c +++ b/drivers/iio/accel/kionix-kx022a-i2c.c @@ -30,6 +30,12 @@ static int kx022a_i2c_probe(struct i2c_client *i2c) return kx022a_probe_internal(dev); } +static const struct i2c_device_id kx022a_i2c_id[] = { + { .name = "kx022a", 0 }, + { } +}; +MODULE_DEVICE_TABLE(i2c, kx022a_i2c_id); + static const struct of_device_id kx022a_of_match[] = { { .compatible = "kionix,kx022a", }, { } @@ -42,6 +48,7 @@ static struct i2c_driver kx022a_i2c_driver = { .of_match_table = kx022a_of_match, }, .probe_new = kx022a_i2c_probe, + .id_table = kx022a_i2c_id, }; module_i2c_driver(kx022a_i2c_driver); -- 2.30.2