Message ID | 0554ddae62ba04ccacf58c2de04ec598c876665e.1697994521.git.ang.iglesiasg@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp861912vqx; Sun, 22 Oct 2023 10:23:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIM3G/bunhgWCYNNfsROB33klQpUJnrmodpY1ZYBbVqSkynxUhcGW8wB+87uVVLUqjnyax X-Received: by 2002:a05:6a20:7290:b0:15e:5e8c:e45c with SMTP id o16-20020a056a20729000b0015e5e8ce45cmr6174478pzk.30.1697995420015; Sun, 22 Oct 2023 10:23:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697995420; cv=none; d=google.com; s=arc-20160816; b=ct8LnBfJ8CGty/oRaGMiCaBGwGfkqOjAQTdwmxEFqpmNxUg45tQdotWFvLbEX9YW3c StGbbrVwshk87W0NxBmJFONKRA6wCN5GgKlUSgVzJBXKrfXT+iKBw/Rb+5EpcAJy1N6B fsCJk3il5Jq16vPtrA1st5cuSpmqS1nBhV5lYjhiEB1kdX/984Rm1+wYe5Lv9K4qbRNu qiFF42wtrOUiL42I2xYHXAPFUwhqwNHMI990R+9taDwrrqvAwKKtCxKUsjrip/LJyARL 5gn4aM1J1HQQgwougWju8GCxpt2yp5NI28wmpRphf93IkIyDYR/dbo54SrdtpYRW4pKJ r1cw== 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=TR1rbIRAVPmg6FZUklnnnduo61uGU5Ugg06WBamDHUw=; fh=TXKvFY9LASN75wBOUns1/yVAuHT5bGKVUcF/s0mW8sA=; b=LxnH169eG5KrIZo9ZY7k3flN3rndlC7qZT6r2tnO3y3eUL6yEfRKyr+68wuRUyVcNw H8VF6jYmJ4btkabhSGN0xGW9Zl+Kez/dNmPiwR4J2iITbclEiGZNW/WC1TAvvoaj2vOB Gp9aP1UReVJhz3ph/3zwUzqTp0C8ujjev7lF1OsUaxZG/zXfOBoSECzdHuSAZH8XAIlF wW38hiOHT9O0S1gxweQzOlMtf3e6Os0tfI7LD5VLBrjJXVBmDxRiLFxvGCamd2l/ji+p DasiEnkf4G15zhTIPGwmMG4IYQsc7ArC71qKjv9k9HpWXFhqH3SUcHlPUcw20ovWaCOV Qk8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RKs4pyD4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ne9-20020a17090b374900b0027d7eebd4c0si4959818pjb.109.2023.10.22.10.23.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 10:23:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RKs4pyD4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9CA4B8057949; Sun, 22 Oct 2023 10:23:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232731AbjJVRXS (ORCPT <rfc822;a1648639935@gmail.com> + 27 others); Sun, 22 Oct 2023 13:23:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232541AbjJVRXL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 22 Oct 2023 13:23:11 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8425C13E; Sun, 22 Oct 2023 10:23:09 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-32d9cb5e0fcso1818860f8f.0; Sun, 22 Oct 2023 10:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697995388; x=1698600188; darn=vger.kernel.org; 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=TR1rbIRAVPmg6FZUklnnnduo61uGU5Ugg06WBamDHUw=; b=RKs4pyD48fYg8PLKWvvb+7iky1q34Gg+JrikWsyCdEtuj2kuKq0R/RTJtenwFp7HI8 szI7nQ00OhnzjyYUPnTiGeHlq+aQHvoAzk1HqS84UEYWL7LaiolsJkBbT028O641Sldx lTAo5D9PAq3ACORRa4JnD1rrXZFRe8LLciOGOFOARG08K+1IBKoCtG1YY8qu493WQuXR dvZhUBTS9R02XOy6YRF2yo06wWaB54RZJgRC9Ylg9PI7oo3/kTYGsC7C8c47jEKQqlUu 48ZVppKik86X+VUrnBdjm0tOIslqALl7WodOXq2e/OxuNDOBIC2vH1YYfCSO1+qEVh0Z MSHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697995388; x=1698600188; 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=TR1rbIRAVPmg6FZUklnnnduo61uGU5Ugg06WBamDHUw=; b=ojj5gUuwlwBhCFNIJMxCJEznsJgfao7zSSNxcE8B+ZIog10uxZE7dqEqOhq7+Z06NW AfZLu4SU4mtzu/mlp2ml3Ssqy5lDopYXh23TBRu6VjeqH1HKIaKm/KxwefEMMp30uETa d0ZPvYx+tyhMT3KXPC7nHahBv2xi/IBRHzdRBbJ8qkMFxcvUJKBoEF1lpNd6ZIzzkKXM BH4RojBy0L4S3e0dzb7D2NTmHdO/egVGu6c4Zi/fYVa9VyvO9nfDRH8uVkZ9PQ3S4akQ JB6WDquAh4loYq19p/ScNV1LmZ/tU/jkWXW8MFon/U+3gv7gZdbp6y5j1aoawQezSlP9 tNpA== X-Gm-Message-State: AOJu0Yzyo7HUEIWlO7f5DPYWNw0qn8OiwD5Qb0UbKMCJ5p3akaWR5hNN DT7RCKkpoARTEweb6YzGX7cOu6Q3mNs= X-Received: by 2002:a5d:43c2:0:b0:32d:804c:15d1 with SMTP id v2-20020a5d43c2000000b0032d804c15d1mr5051743wrr.47.1697995387780; Sun, 22 Oct 2023 10:23:07 -0700 (PDT) Received: from toolbox.taileb357.ts.net (13.red-83-35-58.dynamicip.rima-tde.net. [83.35.58.13]) by smtp.gmail.com with ESMTPSA id o12-20020adfe80c000000b0032da49e18fasm6043836wrm.23.2023.10.22.10.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 10:23:07 -0700 (PDT) From: Angel Iglesias <ang.iglesiasg@gmail.com> To: linux-iio@vger.kernel.org Cc: Biju Das <biju.das.jz@bp.renesas.com>, linux-kernel@vger.kernel.org, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Jonathan Cameron <jic23@kernel.org>, Lars-Peter Clausen <lars@metafoo.de>, Angel Iglesias <ang.iglesiasg@gmail.com>, Phil Elwell <phil@raspberrypi.com>, Linus Walleij <linus.walleij@linaro.org>, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de> Subject: [PATCH v2 1/5] iio: pressure: bmp280: Use i2c_get_match_data() Date: Sun, 22 Oct 2023 19:22:17 +0200 Message-ID: <0554ddae62ba04ccacf58c2de04ec598c876665e.1697994521.git.ang.iglesiasg@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <cover.1697994521.git.ang.iglesiasg@gmail.com> References: <cover.1697994521.git.ang.iglesiasg@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 22 Oct 2023 10:23:36 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780477245483730032 X-GMAIL-MSGID: 1780477245483730032 |
Series |
Add support for BMP390 and various driver cleanups
|
|
Commit Message
Angel Iglesias
Oct. 22, 2023, 5:22 p.m. UTC
From: Biju Das <biju.das.jz@bp.renesas.com> Replace device_get_match_data() and id lookup for retrieving match data by i2c_get_match_data(). Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Comments
On Sun, Oct 22, 2023 at 07:22:17PM +0200, Angel Iglesias wrote: > From: Biju Das <biju.das.jz@bp.renesas.com> > > Replace device_get_match_data() and id lookup for retrieving match data > by i2c_get_match_data(). > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> > Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Hmm... What tools have you used to format/send this? It seems differs to what `git format-patch` does.
On Mon, 2023-10-23 at 14:21 +0300, Andy Shevchenko wrote: > On Sun, Oct 22, 2023 at 07:22:17PM +0200, Angel Iglesias wrote: > > From: Biju Das <biju.das.jz@bp.renesas.com> > > > > Replace device_get_match_data() and id lookup for retrieving match data > > by i2c_get_match_data(). > > > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> > > Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > > Hmm... What tools have you used to format/send this? It seems differs > to what `git format-patch` does. > I just applied this patch from Biju's series with "git am" and then generated this series running the following invocation: "git format-patch -v2 -p -n --thread --cover-letter --to=linux-iio@vger.kernel.org --base=iio_upstream/togreg HEAD~5" My work repository is publicly available here: https://github.com/angiglesias/linux/commits/iio-bmp280-add-bmp390-support Kind regards, Angel
On Mon, Oct 23, 2023 at 04:00:53PM +0200, Angel Iglesias wrote: > On Mon, 2023-10-23 at 14:21 +0300, Andy Shevchenko wrote: > > On Sun, Oct 22, 2023 at 07:22:17PM +0200, Angel Iglesias wrote: > > > From: Biju Das <biju.das.jz@bp.renesas.com> > > > > > > Replace device_get_match_data() and id lookup for retrieving match data > > > by i2c_get_match_data(). > > > > > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> > > > Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > > > > Hmm... What tools have you used to format/send this? It seems differs > > to what `git format-patch` does. > > I just applied this patch from Biju's series with "git am" and then generated > this series running the following invocation: > "git format-patch -v2 -p -n --thread --cover-letter > --to=linux-iio@vger.kernel.org --base=iio_upstream/togreg HEAD~5" > My work repository is publicly available here: > https://github.com/angiglesias/linux/commits/iio-bmp280-add-bmp390-support Somehow the diffstat is stripped off...
diff --git a/drivers/iio/pressure/bmp280-i2c.c b/drivers/iio/pressure/bmp280-i2c.c index dbe630ad05b5..b3e069730f97 100644 --- a/drivers/iio/pressure/bmp280-i2c.c +++ b/drivers/iio/pressure/bmp280-i2c.c @@ -11,9 +11,7 @@ static int bmp280_i2c_probe(struct i2c_client *client) const struct bmp280_chip_info *chip_info; const struct i2c_device_id *id = i2c_client_get_device_id(client); - chip_info = device_get_match_data(&client->dev); - if (!chip_info) - chip_info = (const struct bmp280_chip_info *) id->driver_data; + chip_info = i2c_get_match_data(client); regmap = devm_regmap_init_i2c(client, chip_info->regmap_config); if (IS_ERR(regmap)) {