Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp351927rwb; Sat, 17 Sep 2022 06:26:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7vaXpu4lYrbby8hrKx+Rj5a65LenyJyPTDLYmxr6kcCGMavW39YlzQtksw3gPDSgJKcQ28 X-Received: by 2002:a17:902:bd08:b0:16e:e00c:dd48 with SMTP id p8-20020a170902bd0800b0016ee00cdd48mr4504119pls.93.1663421186056; Sat, 17 Sep 2022 06:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663421186; cv=none; d=google.com; s=arc-20160816; b=Ri9RcDXP1Z1g8gFH8EyzSPUXxWug98z2cJ/LYC81e9Hb+xk2BvKz5OJW3sv69yq2xF GoO4NB8Ns7UAPP4gdER5cjZtDrUTDwDT5GiGsxpqTo15LN6s3YdQ7q71ugLqoLY5eX6i sN1FEhwHK11Yy1bh89LKHc+Ck1yLykImDJMzhmQUmZuLEu/Vn4M1+URiUUFp3yLw4p/g JXZ3cnfjScIX56dpbAkgT+iGkBwPY3cz7AO/vJHm3G0e/To+TdhtT9MUcZaxFAsDX3rY GlQv+VjqCdIn7wDWQWRKSX2RgJ119YXdNteDrFUnALUMgf1yj8d+Op/M0HuhjxJTJynK Calw== 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:subject:cc:to:from:date :dkim-signature; bh=Kk31wf2TAH0g++mSl7JNxCxLHWSRhLbQvSBeLTbUsmo=; b=V5N/EOYekDrcojFL3lBq6esa8f6URrdrsNMfTrWTQ1cGjsjNw91J9EehfV30mOS4c+ EszdbahFh0l41oydj/+6j6eAO7AFLEfmt0sS8LGzvqnEvjQK7lmmebI48OIxNFfC0Hms eEbByRNuZ973Gf0g5MFwer68z6Wk7nXEG0fzzzwY8PyLgkjXoExhWof/AAIwbrlu1t4r rKAiq1kbnwSmQURIXTSBKdVhi40WfU50bnDg3pnjQPEN3RgFaTNdDkULEYdCx+wY2+Wr 8tG1h2qkk2Jox54DE1COFUHA6OqGUZWBAI4dJpypNfrqgsgfCgrzpqw2tnXOjGAx3RG1 yKXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V7xl4sE5; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a170902744800b00178221dc5bdsi9242364plt.434.2022.09.17.06.26.14; Sat, 17 Sep 2022 06:26:26 -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=@kernel.org header.s=k20201202 header.b=V7xl4sE5; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229601AbiIQNTA (ORCPT + 99 others); Sat, 17 Sep 2022 09:19:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiIQNS6 (ORCPT ); Sat, 17 Sep 2022 09:18:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0CD536DF1; Sat, 17 Sep 2022 06:18:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6C39A61447; Sat, 17 Sep 2022 13:18:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EC58C433C1; Sat, 17 Sep 2022 13:18:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663420736; bh=L+a+LNVzO1yC2Lew2cGCBaAPIZCNQWZLIkzM9flIY74=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=V7xl4sE5NhQfph9XWi2672UE8IJQpInIlvFLTh+KPCTqourU8VFEQ+Jd6iaKERTPU wBSxpZ8BsjiAPHmJEDIKhErHRYsEpYJxJxyIa3LLJhA3al5BeHbSGBz3OawrzT0Moo pL3AYAX1R6k05P+bHTDldEzvAHxcJymlqninEyepL3R7V5efqKPUf3lNM/LboUrTid irGcWs8YFtZgvCJP38a+IlmqSYEsqSmFe2L/1lvlk3hHkL5zhkBMNShQUgR2oPLBE7 IZlJ64RFskjVFe+T/vdJlDjg6CVNGnxB7PeMWgd9ESLl+tmS3yx9zKdzypTU88TpgY 1BdFxnhjbJXsQ== Date: Sat, 17 Sep 2022 14:18:59 +0100 From: Jonathan Cameron To: Angel Iglesias Cc: linux-iio , Andy Shevchenko , Lars-Peter Clausen , Paul Cercueil , Ulf Hansson , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 6/9] iio: pressure: bmp280: reorder i2c device tables declarations Message-ID: <20220917141859.1496a968@jic23-huawei> In-Reply-To: References: X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Tue, 13 Sep 2022 01:50:07 +0200 Angel Iglesias wrote: > Change device tables declarations to forward order like in SPI codepath. > > Suggested-by: Andy Shevchenko > Signed-off-by: Angel Iglesias Applied > --- > drivers/iio/pressure/bmp280-i2c.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/iio/pressure/bmp280-i2c.c b/drivers/iio/pressure/bmp280-i2c.c > index bf4a7a617537..5b51ebfc6f2b 100644 > --- a/drivers/iio/pressure/bmp280-i2c.c > +++ b/drivers/iio/pressure/bmp280-i2c.c > @@ -37,18 +37,18 @@ static int bmp280_i2c_probe(struct i2c_client *client, > } > > static const struct of_device_id bmp280_of_i2c_match[] = { > - { .compatible = "bosch,bme280", .data = (void *)BME280_CHIP_ID }, > - { .compatible = "bosch,bmp280", .data = (void *)BMP280_CHIP_ID }, > - { .compatible = "bosch,bmp180", .data = (void *)BMP180_CHIP_ID }, > { .compatible = "bosch,bmp085", .data = (void *)BMP180_CHIP_ID }, > + { .compatible = "bosch,bmp180", .data = (void *)BMP180_CHIP_ID }, > + { .compatible = "bosch,bmp280", .data = (void *)BMP280_CHIP_ID }, > + { .compatible = "bosch,bme280", .data = (void *)BME280_CHIP_ID }, > { }, > }; > MODULE_DEVICE_TABLE(of, bmp280_of_i2c_match); > > static const struct i2c_device_id bmp280_i2c_id[] = { > - {"bmp280", BMP280_CHIP_ID }, > - {"bmp180", BMP180_CHIP_ID }, > {"bmp085", BMP180_CHIP_ID }, > + {"bmp180", BMP180_CHIP_ID }, > + {"bmp280", BMP280_CHIP_ID }, > {"bme280", BME280_CHIP_ID }, > { }, > };