Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp1892817rwo; Sun, 23 Jul 2023 03:10:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlG93wd7/9s8KN/LU2rTqBw9uAOWGSyavWvU/y37F8LesGHNxIYrf9gsrQgs3jiO8zqT3daV X-Received: by 2002:a17:906:538a:b0:997:caf0:9945 with SMTP id g10-20020a170906538a00b00997caf09945mr5631904ejo.12.1690107046221; Sun, 23 Jul 2023 03:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690107046; cv=none; d=google.com; s=arc-20160816; b=Q/O9lzKUvkHTRX347IU5a1s+fC3+NcwdI3d7apnAEKlrg1uh03WtnQFVkSDBzIy9yd 52I837Qd5HcsK2EgPFYjoTgSozxhv38E4XVbDI04wgIr5vWcW0y5c9wW/NcM6zQriTm3 mQBCBU08xthzJKmSf7i4oOzL0nUICuOga8rurWVvOcxb5yVu56VxDqjMB0i9sK692Edg MUYwgsaQdhRzC2Sr/RFsyD/+F42JOx3TotLcGUQcIHkH6oe/86gdXR7Mxq6USZqBZNrF kM3L/N0J212ZE5l5ka5HvX04fahFgSd4IW143mB64DEJ2FdMWVUA4JlvRc8HrgKiebI+ z0MQ== 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=dSSyAcALzKy6GE+nzC1bxyVb4MVxry7Pm8gbKbDyNXQ=; fh=hXZqJJZJy2kBvSIwtK1y24jCZlpvbojtkV5YMKVmUAQ=; b=0RigFv1ZurWGBxA8NugYKxVcgXZE409nRAP0lJRNawKZqKur8CjcXqyjoTFMddtXP9 12jS9E+ECiC3E8kslMkykgHjXrwZUkT/+4z/jhPATFaEfa9QoHOObopc2veDKhCWCjtH ljYf3a0Sf5IaeGA+dnReX7k8DQvaAOo9C1vUwBkwLJDm/fPQYO0wdGnFqrQYg8YsbwK7 sFM5BCPBnNRrdjOlcOL/rcQyOqDvJQSSESaZOiaKr72V3PiSK7TF3/3E/QBYI7RUBTvR E+mbkJ7VKBm1wSFNt2VxySB+nKEc6IBT1J9rzRbDyWGtv4iSUR928EHwmihBMB912Yaa BDXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ew7oTg4J; 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 gr2-20020a170906e2c200b009655fcff588si4867897ejb.835.2023.07.23.03.10.21; Sun, 23 Jul 2023 03:10:46 -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=ew7oTg4J; 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 S229705AbjGWJYv (ORCPT + 99 others); Sun, 23 Jul 2023 05:24:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjGWJYt (ORCPT ); Sun, 23 Jul 2023 05:24:49 -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 78E871A1; Sun, 23 Jul 2023 02:24:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0AF8060BFF; Sun, 23 Jul 2023 09:24:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81DD7C433C8; Sun, 23 Jul 2023 09:24:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690104287; bh=J95bXDDSrHefTSiGU1JVTbmCq80sX+eTmpH161clEuc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ew7oTg4JNsj2q5YJotKYVIqpvW2PZB7epx8kiExTEdg3CP9zkJ9tB0r/cbGqYWbVj B/KI5+vDFEnAwEj0nOAsACXa6p56cCVNZU8uHpA8eh0Y1q3xGa9R8Nl50A9QzYa26o 0N9F48guDtBskW+5knJMNGk1PjyNkW/1kziao/J003Kf3KJQdpJWqV+HqPpqps6zja IXB+HKwKgJDq2uOXyzLak/2OMKiORwNxUZZ6tKY+/VJHWYlmfojaNXBK0maDT8A0ra XWF8GLAvF7tKnSzWmB+6eZdVcjz25Lvb9yw3wf6/Be9swfh28KmDMol8HAxPMpROlu tFjFOmx5JrnaQ== Date: Sun, 23 Jul 2023 10:24:43 +0100 From: Jonathan Cameron To: Andy Shevchenko Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Lars-Peter Clausen , Nuno Sa Subject: Re: [PATCH v2 8/8] iio: core: Improve indentation in a few places Message-ID: <20230723102443.7bcb1abb@jic23-huawei> In-Reply-To: <20230721170022.3461-9-andriy.shevchenko@linux.intel.com> References: <20230721170022.3461-1-andriy.shevchenko@linux.intel.com> <20230721170022.3461-9-andriy.shevchenko@linux.intel.com> 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Fri, 21 Jul 2023 20:00:22 +0300 Andy Shevchenko wrote: > Improve an indentation in a few places to increase readability. > > Signed-off-by: Andy Shevchenko > Reviewed-by: Nuno Sa Applied to the togreg branch of iio.git and pushed out as testing for 0-day to not notice any change (hopefully ;) Jonathan > --- > drivers/iio/industrialio-core.c | 23 ++++++++++------------- > 1 file changed, 10 insertions(+), 13 deletions(-) > > diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c > index 5c9c68d69fc6..e1293fdbc0ef 100644 > --- a/drivers/iio/industrialio-core.c > +++ b/drivers/iio/industrialio-core.c > @@ -206,9 +206,9 @@ bool iio_buffer_enabled(struct iio_dev *indio_dev) > { > struct iio_dev_opaque *iio_dev_opaque = to_iio_dev_opaque(indio_dev); > > - return iio_dev_opaque->currentmode > - & (INDIO_BUFFER_TRIGGERED | INDIO_BUFFER_HARDWARE | > - INDIO_BUFFER_SOFTWARE); > + return iio_dev_opaque->currentmode & > + (INDIO_BUFFER_HARDWARE | INDIO_BUFFER_SOFTWARE | > + INDIO_BUFFER_TRIGGERED); > } > EXPORT_SYMBOL_GPL(iio_buffer_enabled); > > @@ -388,8 +388,8 @@ static ssize_t iio_debugfs_read_reg(struct file *file, char __user *userbuf, > } > > iio_dev_opaque->read_buf_len = snprintf(iio_dev_opaque->read_buf, > - sizeof(iio_dev_opaque->read_buf), > - "0x%X\n", val); > + sizeof(iio_dev_opaque->read_buf), > + "0x%X\n", val); > > return simple_read_from_buffer(userbuf, count, ppos, > iio_dev_opaque->read_buf, > @@ -492,8 +492,7 @@ static ssize_t iio_read_channel_ext_info(struct device *dev, > > static ssize_t iio_write_channel_ext_info(struct device *dev, > struct device_attribute *attr, > - const char *buf, > - size_t len) > + const char *buf, size_t len) > { > struct iio_dev *indio_dev = dev_to_iio_dev(dev); > struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); > @@ -585,9 +584,9 @@ static int iio_setup_mount_idmatrix(const struct device *dev, > ssize_t iio_show_mount_matrix(struct iio_dev *indio_dev, uintptr_t priv, > const struct iio_chan_spec *chan, char *buf) > { > - const struct iio_mount_matrix *mtx = ((iio_get_mount_matrix_t *) > - priv)(indio_dev, chan); > + const struct iio_mount_matrix *mtx; > > + mtx = ((iio_get_mount_matrix_t *)priv)(indio_dev, chan); > if (IS_ERR(mtx)) > return PTR_ERR(mtx); > > @@ -1025,14 +1024,12 @@ int __iio_device_attr_init(struct device_attribute *dev_attr, > if (chan->modified && (shared_by == IIO_SEPARATE)) { > if (chan->extend_name) > full_postfix = kasprintf(GFP_KERNEL, "%s_%s_%s", > - iio_modifier_names[chan > - ->channel2], > + iio_modifier_names[chan->channel2], > chan->extend_name, > postfix); > else > full_postfix = kasprintf(GFP_KERNEL, "%s_%s", > - iio_modifier_names[chan > - ->channel2], > + iio_modifier_names[chan->channel2], > postfix); > } else { > if (chan->extend_name == NULL || shared_by != IIO_SEPARATE)