Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5635583rwd; Mon, 12 Jun 2023 07:45:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5HL/Dg6PywtrOiurdx5f16O+wNVP+WlYL4Q3eX75aQFRUfurVzOYiYolTyRxY8KYoX0ObV X-Received: by 2002:ac2:5b89:0:b0:4f6:2477:ed42 with SMTP id o9-20020ac25b89000000b004f62477ed42mr4303211lfn.26.1686581122033; Mon, 12 Jun 2023 07:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686581122; cv=none; d=google.com; s=arc-20160816; b=nOtxPmRpRbt+C0EUyh5OZUElrN5BpCTd4RQ/z2btuBN1Dn1gKeDzQwnsKW0cYXlyhk 4Bnn6qjmP9Z7TLlTpFxTd2hdSaMtwzPJtIPnGcrtQa+jok3CtnH99eWMk8aVX8CEEPdb r/NoTBJ70Pbg9E8K876Omd/A0rd48Sq0k8/bS6dEvVpmG0cYUL023BDEn3NJWirB5Etz 763hO0VcyWZoLQSyQPVmC70r/YMT3Z6C8LlSClyD5U5qbABQTrqHSqj5U4Iyelbhz19G 1BtUY/pjpn9nswMLYTUjaxfttcy5lNiw3GyLJVD5K2utW/xye2MaoVYMjbW05Yikrcpk aTtQ== 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=DWD8Em9iQLnTUuLRZcCjJmC8x71w7WKYWHctnvqWjcM=; b=G9b/Y4/F1RztQ1aqQLiS6rwoPCiHrkDTlv6BWlj6K5M9GeirLmeo+ZuY69dG+tcMhk GlvwTshLjT/ylgoH6S6RPInn+0sZBKlDp/1fkjg5kD33MFQMbB0ama9XfVcOTZIEa/ek dI4LOG0+a86fW1lfEG2vglMbkFZOMqLrjcAqQtIzYyTBpHXj0MpWjijHXpSl37OGdqmM VOATAwCi6rwvDImQT0QSsoDHtqh6v9pFHlrggW456mNBjgnmHa8e4EYqbYYrU/gWgytg Wtr+DA1kHK7pS+V3EIIkCeUGv0oZm7fFuE0KyEetrzlSmO82LRUIngulugx3xJTNsu1Q 59BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UrjR4Sm2; 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 f23-20020aa7d857000000b00514a577436asi1876647eds.239.2023.06.12.07.44.57; Mon, 12 Jun 2023 07:45:22 -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=UrjR4Sm2; 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 S238701AbjFLOYn (ORCPT + 99 others); Mon, 12 Jun 2023 10:24:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238063AbjFLOYI (ORCPT ); Mon, 12 Jun 2023 10:24:08 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48CBD171D; Mon, 12 Jun 2023 07:22:36 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9745ba45cd1so670337466b.1; Mon, 12 Jun 2023 07:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686579754; x=1689171754; 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=DWD8Em9iQLnTUuLRZcCjJmC8x71w7WKYWHctnvqWjcM=; b=UrjR4Sm21Jig2kw9TLJadnR48cNe7svhsKDHhX19FI35fyLw1hb+CGduSgC8GinNv8 tGH7yfjy4hzA5M9ejqYDUzIB4F2y8e84Ijcmsq4ddBki6uSPOCa3s+SG9uBNAHUlQxy0 yn7PtGQBJ97GSlmuCVPJdhYAd21+RyINYRBLzA93CpqMoi8LR915VUFshd7tSfbhhGMc sffXLFaBvH02/bzC5FtHhiN7t4C6CwzPdyfFD2KyZklURt7X995MRjBEHB+NzTWS3wZ1 3n0VyED9tIW+mDhjp7M0hOfNkQH5QorhvW0HZfUpneqrHbIjdErtOzE/XUPZC4R0D0Zw B9UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686579754; x=1689171754; 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=DWD8Em9iQLnTUuLRZcCjJmC8x71w7WKYWHctnvqWjcM=; b=Jmkt6EXBNFKXaHNS+utau1LgwOGQCJZ1xOh3Gpy0uLhfn0jleFYZ0Qa7zpGpnUhmwn PRZn3cNO2RI8gMLK4lEnuzhPLgORXMPc6EvBUoGPnzfPtWAj5Iqnc5yI1WsgyQFHJioB LG4HlW7gkCff5FV01UMCX6MqK3urJpwR8u8PnV68gHRRJThGhBpz96o+J26h1e6p9PD2 r2DRrjpLD0VrPGCRQzvRzbCuHEXxW35GMNO7eHIa0noNPtvR/m78quiIJS5Rg1avp+N7 xFgu94lVo5MGh+2KSNVAUPLlAfpoWAzf7zpriGSlkSC/U4FPVdszzmYmOooeGPC9BF7J Iw1Q== X-Gm-Message-State: AC+VfDwZRPjSK7qy4oU32Rkw1JOcEmvGQ5j+dkc9Hmp7kAa6LLp4JT8K LQmAAg+Yo+CDJkgDn9k0Bd0= X-Received: by 2002:a17:906:ef07:b0:96a:1c2a:5a38 with SMTP id f7-20020a170906ef0700b0096a1c2a5a38mr8317754ejs.11.1686579754219; Mon, 12 Jun 2023 07:22:34 -0700 (PDT) Received: from localhost.localdomain ([2a02:8109:aa3f:ead8::d8a0]) by smtp.gmail.com with ESMTPSA id i8-20020a17090671c800b009659fa6eeddsm5262528ejk.196.2023.06.12.07.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 07:22:33 -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 v5 4/7] iio: accel: kionix-kx022a: Add an i2c_device_id table Date: Mon, 12 Jun 2023 16:22:07 +0200 Message-Id: <9950e3963600465e1177a20ad8a93a3927c026ef.1686578554.git.mehdi.djait.k@gmail.com> 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. Acked-by: Matti Vaittinen Signed-off-by: Mehdi Djait --- v5: v4: - no changes 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..b5a85ce3a891 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" }, + { } +}; +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