Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2687473rwd; Fri, 26 May 2023 09:44:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7L33B8d8FML6cN3db+wHyjqymVkDQ3MEaPdrPSGjWqRTidj+ClI6KsyYdDijkuziZf0D0i X-Received: by 2002:a05:6a20:6a1b:b0:10d:951f:58ba with SMTP id p27-20020a056a206a1b00b0010d951f58bamr3470479pzk.52.1685119468818; Fri, 26 May 2023 09:44:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685119468; cv=none; d=google.com; s=arc-20160816; b=iEm1qHpZSs/kiQ6g1+Q9BpDoAyOr5rhHPIA6pp+eG1Pd0pkf90ux0m1QnZXBXj9qhY 7b9FRmFpNXGcr9rkRSZAhw6A9tZCkfxxFWKg4awRY8s0sNTIzWHqlB/wcnwuBB5EdaC9 38z1KP25Udch8tlX30KQVBqahChyXvtb3z2YIcolsNLC+GVFuug0dPumcfBwHJCe7cTS 6yuZrC2O8q0/IM2U+7NgVvHPSphhkhayNGE/30yvfic3XJwObBmleIq2GivAy7cdnKcR zrkd+AfRmju06DvxaDPbstnmQd3IMb/XAajHhe2Q9k3XxUDMSsrk5eMCyaeBwOfWQCy2 JjsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HZdVc8cg3rTwRQ3rUGrbIe2G7Mi0MzIoMDjJTPUXsKU=; b=TgW2z2HloKiud7Jf0eO5f4RwfsqX6gyJll9FJHi6xJ5LrZQ9ChSTcNAvyomE2U4xkO OZA20SNWGawfqlAyBvVJCtlCzl+nb++nZEndlPqIz8n9lxNfNYUmIKqXTsboAs+9n0Kw kjda7m/wSXBCmhnaVJ5nFgIyHRwmxNUsMFMq2lBxKzD6g76c8frc1oG/M0W1NZRNBjFk +Y2OCT9k7779oYLqyVS8t2iVIyTmn4SppnfBJitfTzlYjk8ooVkWyP3ZwlGxfJhWUKUj wNvAnK51h1eArZZUZfazqZ/ZgLQzFX2IoT4osHdp+v30zAls2h30l6meqjfrKK97/vLE lD3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=EmEi2d9U; 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 s126-20020a625e84000000b0063b1739532esi4395878pfb.139.2023.05.26.09.44.13; Fri, 26 May 2023 09:44:28 -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=EmEi2d9U; 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 S235695AbjEZQfv (ORCPT + 99 others); Fri, 26 May 2023 12:35:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232792AbjEZQfs (ORCPT ); Fri, 26 May 2023 12:35:48 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA83CBC; Fri, 26 May 2023 09:35:46 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f3a873476bso995184e87.1; Fri, 26 May 2023 09:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685118945; x=1687710945; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HZdVc8cg3rTwRQ3rUGrbIe2G7Mi0MzIoMDjJTPUXsKU=; b=EmEi2d9UpDaO/uDti+2NYtSCgpRhj7sgXUxRN9Sx/VbofLPSxKJKwBca93UIYX5e3K qkA5Pf35BlxUXq+gNVWg/SPLT4WsrDzIFYsj9/WGFM8Wbk78HQACFY1vFoeINfYqXn7M /71C3vO2yLvOCb8VkZxdQ0JB6gUG3UfXZA/b93cAuH4jp6sKm2MgMksWoFvjK4wq4UWs 0ByhHBeCp0TcnRZTAA5m0wGoxDMK4zrx9EODcnC4CZOunVNA+PpFdzNDDFM+H8hRWKKr rzfnOOt849X1iWQs+nquUgH2MmsOHZVGqzEjn6ACJ14OPXT+9CZdY2rdYNqBnm8BSsOc Qc6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685118945; x=1687710945; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HZdVc8cg3rTwRQ3rUGrbIe2G7Mi0MzIoMDjJTPUXsKU=; b=OZw/gswfJuh6P7tQ8G1gxxdrbw3PFGFhJSqwNDJbROqB1WHNbaSvknRKihyPeg8zA3 EnygA2XhO3WfNeaManNo48iGXTZmqVHrmtEnwv47Q3HbcCjdlB1bJwzD+WqTIJRDMkJt 3NcCRedwujB4Ast/AGJGueTwNXZMNl13c0KGStLkAObJy4ljX2f/nroFkbU+ITAHa7qe bVB3MUhe6/e1UlucTYw2xEam5/aQeQRZgnMdweocmB2WOfuAbPvnq6SsR00cN0zm0eFs Sq5GIFjprg0VBc7OsHx95nyuecsTOlCXPKl63nj8CLBIPsRLVpKXkYQKbsj3AFvtMNsY UGcg== X-Gm-Message-State: AC+VfDwXYOpP+H5/vodgoR33LPBMBnzuE/nPHSnywcYKkDXamjdAKRZZ e2huwFwBS4Ln9LNdaU/3wpc= X-Received: by 2002:ac2:5ec4:0:b0:4f3:7a8c:d46c with SMTP id d4-20020ac25ec4000000b004f37a8cd46cmr778242lfq.66.1685118944902; Fri, 26 May 2023 09:35:44 -0700 (PDT) Received: from [192.168.1.126] (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id b15-20020ac2562f000000b004f13c3cb9ffsm681853lff.200.2023.05.26.09.35.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 May 2023 09:35:44 -0700 (PDT) Message-ID: <0a816b1c-eef3-95c8-fb71-1c81251224e0@gmail.com> Date: Fri, 26 May 2023 19:35:43 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v4 4/7] iio: accel: kionix-kx022a: Add an i2c_device_id table Content-Language: en-US, en-GB To: Mehdi Djait , jic23@kernel.org 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 References: From: Matti Vaittinen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, 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 On 5/26/23 17:30, Mehdi Djait wrote: > Add the missing i2c device id. > > Signed-off-by: Mehdi Djait Acked-by: Matti Vaittinen > --- > 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); > -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~