From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25B53C77B7D for ; Mon, 15 May 2023 06:18:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238984AbjEOGS1 (ORCPT ); Mon, 15 May 2023 02:18:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238619AbjEOGS0 (ORCPT ); Mon, 15 May 2023 02:18:26 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D7E11BF9 for ; Sun, 14 May 2023 23:18:23 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-50bc37e1525so22868229a12.1 for ; Sun, 14 May 2023 23:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684131502; x=1686723502; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dsn+9t9oVdV6VsJksU9eG/4JyWhhvtoT+WJssMz6Kqk=; b=IaxJvjTC9o2itPehQq+Fh3w60a6Z3j7hL5QJ+hrh3bl84WOTypS4In51mPjFyGiYm4 6mKPKxMqNLTmVFXDhDWpkCS6rt3kkAb8w2MAWvlrvefURGJyUdEsP2hSshZY9iH1G0kX m402++3rcCuBf6fKZ8tjYe2JHo7EzyPrSTvHhK8hgPDe8oAeaAjzcNm54tMcwrktF8o5 FUfBduSosyBSqdMwYJGd5mCeJ8I3k0HpHG91DE1h/wh4pqBQn81vRU9zlRFVjZVu/VUa sZg80j2zaiV+UNCx3prJ6VdIJ/hzwqjuKerymez+V1cl1M9q/IUw5azAvnqrfF7IkNbQ 0Vsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684131502; x=1686723502; h=content-transfer-encoding:in-reply-to:from:references: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=dsn+9t9oVdV6VsJksU9eG/4JyWhhvtoT+WJssMz6Kqk=; b=Vo/hDYfXDeKUqBxTkn4oWsxsPZ1cYM/uPObBPbPn0gl1aWl+ImLAQrM+W68P4ftH5R qzkJMCFG4aXp4XmvVnZnNeer/rYYTWNDeuCZbbyRHiG8nknTdA4IUUHRxAaPpWzNQBvT MdxmVV4uUXNZvRzH5S93srmSS6ns9J9xf541O92nTKdevHvkMUdiqPeGQNVlJYkyMFFp LBJ2+Bu0hfOBvz1HRdX/rKw3T7QqIG/ZS3nYpI2ebAh7FjGTYWnDr196M4fpYEZTppv/ BsxNXCkEXK5kIQt3EkD8/7+W2pr3oWbitpXswLfjtg8BeNrXs+8S9O8sru4Ip6Ee28As KTig== X-Gm-Message-State: AC+VfDyCx/DdaYE40kvcLESDqrC6MOfTXgUmr/37gsVika4DuGZeC4HT brvYXJZy6Qgtmsh7CFglEjzl3g== X-Google-Smtp-Source: ACHHUZ4oVzGPtamm9pgZntqiXiY0OraZvsaEW1dnClbV9M3ieJqpsTcbFb10UO9ZQOKGAwkSNtvfgQ== X-Received: by 2002:a17:907:97c9:b0:96a:1348:7a27 with SMTP id js9-20020a17090797c900b0096a13487a27mr20117942ejc.12.1684131501689; Sun, 14 May 2023 23:18:21 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:6470:25b8:7c2d:1992? ([2a02:810d:15c0:828:6470:25b8:7c2d:1992]) by smtp.gmail.com with ESMTPSA id d1-20020a170907272100b0094bb4c75695sm9056804ejl.194.2023.05.14.23.18.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 May 2023 23:18:21 -0700 (PDT) Message-ID: <1a72facf-422e-7a1a-032e-8760424b012d@linaro.org> Date: Mon, 15 May 2023 08:18:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 2/2] iio: temperature: tmp006: Add OF device matching support Content-Language: en-US To: Anup Sharma , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Meerwald , u.kleine-koenig@pengutronix.de, andriy.shevchenko@linux.intel.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 14/05/2023 21:03, Anup Sharma wrote: > Adds an of_device_id table entry to the driver, enabling > device matching through device tree. With this update, the driver > can now match devices using both the i2c_device_id entry and the > newly added of_device_id table. > > Signed-off-by: Anup Sharma > --- > drivers/iio/temperature/tmp006.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/drivers/iio/temperature/tmp006.c b/drivers/iio/temperature/tmp006.c > index cdf08477e63f..2b1782263cc9 100644 > --- a/drivers/iio/temperature/tmp006.c > +++ b/drivers/iio/temperature/tmp006.c > @@ -17,6 +17,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -272,15 +273,22 @@ static int tmp006_resume(struct device *dev) > > static DEFINE_SIMPLE_DEV_PM_OPS(tmp006_pm_ops, tmp006_suspend, tmp006_resume); > > +static const struct of_device_id tmp006_of_match[] = { > + { .compatible = "ti,tmp006", }, > + { } > +}; > + Drop blank line. > +MODULE_DEVICE_TABLE(of, tmp006_of_match); > + > static const struct i2c_device_id tmp006_id[] = { > { "tmp006", 0 }, > { } > }; > -MODULE_DEVICE_TABLE(i2c, tmp006_id); This should stay. Best regards, Krzysztof