Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1167387rdh; Fri, 27 Oct 2023 06:41:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/08SL5ypRn5dO8uJObWIbtl/0Tn9O6dIMzmxi/Bj9TPVaMZqz01L4nVPToQ1pA1TufpRc X-Received: by 2002:a05:6902:18d2:b0:da0:4032:18b6 with SMTP id ck18-20020a05690218d200b00da0403218b6mr3280884ybb.30.1698414111028; Fri, 27 Oct 2023 06:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698414111; cv=none; d=google.com; s=arc-20160816; b=f6MV19gasQTsNeTitVAH65lxQTQmOOpBfqVGBCD6ZbqJ8XvfoQFVE4pDVfm86zou1/ 3O6vY5j8g/QlWcSrwl2n8/uXcwResmfjAT71pOJalSBDSxGl5YQAhpvsE0DHVxYFR/vp 95QAJ3ypRi5jChi35B/LxsoKCWh8pyQhtrSnoauWhH8C0NNGRO7krtnqAKXZbJ8tMWxW krxHhRK/orzDX7InBb/UInWchW0dOKN3VOPXllZRGWv0nxqlJKl3/1HZrCutEivjwfTZ E8eWXk3h0lMBKVYH1r1h3MEUR32o+FUa6fy+Pp/1Fdv4SuKXjEOsK1kqBHbQYz+RLuRP M1Jw== 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=2ESORQuaM+Ut4T/d6a+7P0uN/DvHQdinE581y6ZSOfE=; fh=YFVY7ysAkP5nlVMUa6BTd7WQtiduHUK1b+WYxjSVSHw=; b=wqI5mszM70rfQjp7SvUgYCe85ZXaCko/8gklDQ9e/itOOU6Smj9cXgrZwmO/ul641F CB+nijoee/ZwFXwfdlsVKouAVRdctaODnLb/WObcrgYzLRTl2r5VcWpjdYRcsibH64LL 29FXpc4DYxEhdsIBwFabMRfs0wqEHUU5gDKOLJavdYKYY99kPyqQ7C7OLggo/kMH9F/y C8BygbVq9GNvCzxLSriP5q6EDqHD5JjZFJbuYqjEgePUnukEUcegMaIyyTqPLGMtEQjq 3D0ZhEOfCc6kofe+PKV9FsOmHscOSs105FWNhDcb/zAcPhxHuE5+h6v/ZiOOy3mGTPdR p2bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jpLAygDX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id 62-20020a250641000000b00d80de4202d8si2438142ybg.36.2023.10.27.06.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 06:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jpLAygDX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 8FFD183251B7; Fri, 27 Oct 2023 06:41:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231555AbjJ0Nla (ORCPT + 99 others); Fri, 27 Oct 2023 09:41:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345688AbjJ0Nl3 (ORCPT ); Fri, 27 Oct 2023 09:41:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E57FF1A6; Fri, 27 Oct 2023 06:41:26 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85B61C433C7; Fri, 27 Oct 2023 13:41:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698414086; bh=AL3A8bFN1zfoMmZfMsDpi1qxeV1lBiHx1wsVJN9VdIo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jpLAygDXnUNrH++Dpobibdj2orfeCfr77EE3/iX1VC8SH7eNbZIE5JAP+IC+Cgv0M G6iUq4xTR0pRUANjJ3mEzrkvpf1FG4gUw9w2DzzYWlD7P0QcCsneb2ZJxTPMfdMRmA dfb26dlhak1AeYbK0OFC69mvxlHXTxzg6sPe4/u5fKKzzJw+KQBBnhDiL2tqAo2fcP O2ndD8YcniCRxaEyixkF0mPH2P+fO60ErePd2WOW+KQ6eDpvuN1IkcsYjXclNGmp6R 5b7MkSOtK/cECaGTl5q1OyeTx5V9uS2yI76tPtkGqXQqyUO0Z2fH5PzIuupjhSBA4L 41VNhsZb29RUg== Date: Fri, 27 Oct 2023 14:41:23 +0100 From: Jonathan Cameron To: Angel Iglesias Cc: linux-iio@vger.kernel.org, Biju Das , linux-kernel@vger.kernel.org, Andy Shevchenko , Lars-Peter Clausen , Linus Walleij , Phil Elwell , Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= Subject: Re: [PATCH v2 3/5] iio: pressure: bmp280: Rearrange vars in reverse xmas tree order Message-ID: <20231027144123.4d371a33@jic23-huawei> In-Reply-To: References: X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; 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=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 27 Oct 2023 06:41:48 -0700 (PDT) On Sun, 22 Oct 2023 19:22:19 +0200 Angel Iglesias wrote: > Small cleanup reordering local variable declarations following reverse > christmas tree convention. > > Signed-off-by: Angel Iglesias > Reviewed-by: Andy Shevchenko Applied patches 1-3 to the togreg branch of iio.git. I'll be rebasing that on rc1 once available. In meantime, pushed out as testing for 0-day to take a poke at it. Thanks, Jonathan > > diff --git a/drivers/iio/pressure/bmp280-i2c.c b/drivers/iio/pressure/bmp280-i2c.c > index b3e069730f97..34e3bc758493 100644 > --- a/drivers/iio/pressure/bmp280-i2c.c > +++ b/drivers/iio/pressure/bmp280-i2c.c > @@ -7,9 +7,9 @@ > > static int bmp280_i2c_probe(struct i2c_client *client) > { > - struct regmap *regmap; > - const struct bmp280_chip_info *chip_info; > const struct i2c_device_id *id = i2c_client_get_device_id(client); > + const struct bmp280_chip_info *chip_info; > + struct regmap *regmap; > > chip_info = i2c_get_match_data(client); > > diff --git a/drivers/iio/pressure/bmp280-spi.c b/drivers/iio/pressure/bmp280-spi.c > index 2eed483a8cc4..433d6fac83c4 100644 > --- a/drivers/iio/pressure/bmp280-spi.c > +++ b/drivers/iio/pressure/bmp280-spi.c > @@ -14,8 +14,7 @@ > static int bmp280_regmap_spi_write(void *context, const void *data, > size_t count) > { > - struct device *dev = context; > - struct spi_device *spi = to_spi_device(dev); > + struct spi_device *spi = to_spi_device(context); > u8 buf[2]; > > memcpy(buf, data, 2); > @@ -31,8 +30,7 @@ static int bmp280_regmap_spi_write(void *context, const void *data, > static int bmp280_regmap_spi_read(void *context, const void *reg, > size_t reg_size, void *val, size_t val_size) > { > - struct device *dev = context; > - struct spi_device *spi = to_spi_device(dev); > + struct spi_device *spi = to_spi_device(context); > > return spi_write_then_read(spi, reg, reg_size, val, val_size); > }