Message ID | 9950e3963600465e1177a20ad8a93a3927c026ef.1686651032.git.mehdi.djait.k@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp438051vqr; Tue, 13 Jun 2023 03:27:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5J18OATLZEHYbeVK+au9XM2Q9Xt4CncVv99CJuXu5vVcdlhYQWk5OeHv8OdYWdLq1Md30G X-Received: by 2002:a17:906:ef01:b0:94f:395b:df1b with SMTP id f1-20020a170906ef0100b0094f395bdf1bmr12460697ejs.21.1686652025862; Tue, 13 Jun 2023 03:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686652025; cv=none; d=google.com; s=arc-20160816; b=QUYWSFfENQG2rdnzqiWbVBZjb1CMGaUt+J1SihhvItV5RDt9STv/1zbUJ/xHIn4JqG BzhkDnitBCgp+b0FZ4Sy0cEz6NGp2jOgYZdrV1SyBYoP+qrrRA7WoJW3uZ8f4ghCaBOH 9WBiKLmw/0K18wZcN7GvvoYgAOxqstGpDRs7paOjm8oG6UseIqJl81SO1iMX9nuU1ROE UJ8b8SqYAc8BBMHL9f7t893fcKOzt1F9Iq4V8brzvC23xf/rlhQJjhAmxykjO+fYL7Pg mnGTd42ouRPg/oOyib0NHcO0KR2eirbIeZHuxZhXcoxe1aeo821u/lDLWkSeV+EnPYUb nf8w== 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=gPk/R7dD6Ly8fW1Tyy1o3x176+lvXb3bFfGB8njVTZY=; b=bpPv/+IhZiuDMSd06FdNAfDk53E1A8EeXgEG1HB0UIcHNL0ubi6KZ/i71OFCbk3OiU BjEhgyH2e74pwqvq4vwLxFBgO+lXGaIQP3A6izMZYupp5vrnTt5vJ3QhSlXPFbM7pS95 lcAO5CEv2QbPznrUbEQ15RtFbaD7LjZX6KsMlJeQzmCiSxOt4tJD+EAVVQN5ug241AYg VKqTHL2+KTcE4TIlagb8CTOasy+vfNwozQctlZBARSwyxZAG1M8xUjCErvy/CDq64FhJ HGNBP4uv06mFJ8pXhB3ignZPLfSWSc0DKX/zDlUPt5slmSYlYXHmqBxl2YUkIvQtEU5a 8ZhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=qkCL8dwr; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lf15-20020a170907174f00b00977d7890b81si2962108ejc.483.2023.06.13.03.26.39; Tue, 13 Jun 2023 03:27:05 -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=qkCL8dwr; 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 S241998AbjFMKXp (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Tue, 13 Jun 2023 06:23:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240592AbjFMKW7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 13 Jun 2023 06:22:59 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B096A1BC; Tue, 13 Jun 2023 03:22:58 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-97454836448so760746366b.2; Tue, 13 Jun 2023 03:22:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686651778; x=1689243778; 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=gPk/R7dD6Ly8fW1Tyy1o3x176+lvXb3bFfGB8njVTZY=; b=qkCL8dwrb3Da+yUjN8ufICa7kUbNkrif0iILiMUpHxsNHo21ZnOud4ISpv/qFGAC1v DWWUWDXDqlSyaQF+dHhbCfu6qtFHlhd5JYtSGrKub4ac1p1r4TqjjbsreJ/J5moTRLxh E9ttABEdgZ8Qxe0hRUeXFxN14L+w/DHlBRUE/e2CBOMpLuofzBxSZBMu2c2bE4T+mot6 r8D2TuJ5Ui2OOYEyVad/LD9iv8I1sA78deBz1QS++2NmTk+PfkbepyLP1m3rTIUhnMMg eJ0+NL/ajW3sLuTYNCLy/V0NA7OCoDz5zYI8M+vpdhmETTQE8aqQHWjoq+aoa/wA0+4m Gd0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686651778; x=1689243778; 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=gPk/R7dD6Ly8fW1Tyy1o3x176+lvXb3bFfGB8njVTZY=; b=PZyxido82GgnamXJgAyUiY517g7UIs2cYF7n9+3whsc68hWkeAC3WFFiVqfJDXiW1p zJzeH8Kk7rO27WwSJ+TVrPPzcK4NACVksnSweZ9+29YZQIFRqMS7rdLuh4Aap0FwHH35 0TieZyQq6r3tmSPkzwUW6jVas/wyxiTBJ8JthlLoYHEh3m6EZH8t2zZkbBCYG/UygYcE 6hPFJTR4FUjm1Ol7kO95QOZC4RN66h5hSYNxdGiugGPfopVaKofiEygVS0PCcLgjJJDH cMpMwBa0wv6Y/atnnvEO+4ULwtKDVrhDCS2H/v7x/InYn1Uosz6ycXTnoHdsD3+4V5up SBfQ== X-Gm-Message-State: AC+VfDwSlKgFtsZNQ+BQRRnwj5n7Vl9MYVXjIY0Pi9PSG/Rk8POF+nxk nPnFizw17JIEOUkHoaGYNkk= X-Received: by 2002:a17:907:6e1a:b0:974:5d6e:7941 with SMTP id sd26-20020a1709076e1a00b009745d6e7941mr11470308ejc.6.1686651778100; Tue, 13 Jun 2023 03:22:58 -0700 (PDT) Received: from localhost.localdomain ([2a02:8109:aa3f:ead8::298a]) by smtp.gmail.com with ESMTPSA id b7-20020a170906038700b009787b18c253sm6492493eja.181.2023.06.13.03.22.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 03:22:57 -0700 (PDT) From: Mehdi Djait <mehdi.djait.k@gmail.com> 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 <mehdi.djait.k@gmail.com> Subject: [PATCH v6 4/7] iio: accel: kionix-kx022a: Add an i2c_device_id table Date: Tue, 13 Jun 2023 12:22:37 +0200 Message-Id: <9950e3963600465e1177a20ad8a93a3927c026ef.1686651032.git.mehdi.djait.k@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <cover.1686651032.git.mehdi.djait.k@gmail.com> References: <cover.1686651032.git.mehdi.djait.k@gmail.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768582834204024704?= X-GMAIL-MSGID: =?utf-8?q?1768582834204024704?= |
Series |
iio: accel: Add support for Kionix/ROHM KX132-1211 accelerometer
|
|
Commit Message
Mehdi Djait
June 13, 2023, 10:22 a.m. UTC
Add the missing i2c device id. Acked-by: Matti Vaittinen <mazziesaccount@gmail.com> Signed-off-by: Mehdi Djait <mehdi.djait.k@gmail.com> --- v6: 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);