From patchwork Mon Mar 5 07:49:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Jha X-Patchwork-Id: 10258321 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7AA7F60134 for ; Mon, 5 Mar 2018 07:52:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69D2D28939 for ; Mon, 5 Mar 2018 07:52:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EB5728948; Mon, 5 Mar 2018 07:52:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08B0428939 for ; Mon, 5 Mar 2018 07:52:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933012AbeCEHuG (ORCPT ); Mon, 5 Mar 2018 02:50:06 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:39253 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbeCEHt7 (ORCPT ); Mon, 5 Mar 2018 02:49:59 -0500 Received: by mail-pf0-f196.google.com with SMTP id u5so6871177pfh.6; Sun, 04 Mar 2018 23:49:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5teCbeC4EmSOv+0bVA4kD/UJB0m0g4d9CzKR+2K4Vxs=; b=RADKJntpArfd0vYvljzdoJRhn9FLTiUeQD+7/mHDP/G73YFPe4KVatXl6RZEQXFHvb MA7Gje2dExIyTuj1nxgYaHPqinyAeFVuG/U2b934MyuZUZ1wlarWqtO7RCvxSTP7gA2S Rs912gk4KugS2PHeYGf8ea6DrwbDee4c0bq2JZJ8ggXE19GSQbisC7L1G/Oq97//+qev l18lSyf2BDnUYvKeB7/JmVOQJ0uAEvFBUBBXPiZq7W6xNaYAI8QCs9GoYdqsNGQXqPO2 F/3NvFy25oCL0Fd1mm/pD1owkW1VMbkoW6pux2eDbajWCjznh0J182GsK+sQKmESrRzg iJuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5teCbeC4EmSOv+0bVA4kD/UJB0m0g4d9CzKR+2K4Vxs=; b=okjcZ1lmsqwxrqn4/NZRo+oPiwam0etvmE338jmb++YTAcXUAXxoknwAR4LprDuPD+ qpt6MqfZYh8XgD9FsK28c/0l9457PPlUAXkU3Bim+hf/+o0+n4cTU7yQrNocdOqGww/F E1HYyBfc4KK+yKTqPjfeYp9FZJT4fzmUuE6/ToEtNUB9XBBNp3bzB69AEVdaKFhwryWY HazZy5F5gksYLSXwkd9RLbiWYaRfsmrTxbgNnGQsjhWFGkzgCtLlim+jAP6PjW/8xMFU Fnmh8vhIXpWOTheHKwqCpXKdPT34V9kNKRgDsNB/S8+kK+ReObmpwUbB9qd38xq/B29w /KAQ== X-Gm-Message-State: APf1xPArFsOPJmG7vdcQJ31qEsM4qE/zVhTRzsWLeiwG/i/yhJYkcvn3 r1hxpiQGRt4C+BIrgdOvEfw= X-Google-Smtp-Source: AG47ELvmYjJEAlLO4zo7RQTsCiqVlLfvUaZFNbAFmZtyX8/PoFxIlJ/Dv7jRTh26bfTNBvlZf3G+mw== X-Received: by 10.101.67.137 with SMTP id m9mr11192491pgp.301.1520236198627; Sun, 04 Mar 2018 23:49:58 -0800 (PST) Received: from localhost.localdomain ([103.46.193.14]) by smtp.gmail.com with ESMTPSA id 125sm21674256pff.114.2018.03.04.23.49.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Mar 2018 23:49:58 -0800 (PST) From: Himanshu Jha To: jic23@kernel.org Cc: lars@metafoo.de, Michael.Hennerich@analog.com, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, daniel.baluta@gmail.com, Himanshu Jha Subject: [PATCH 02/11] Staging: iio: accel: Add a blank space before returns Date: Mon, 5 Mar 2018 13:19:21 +0530 Message-Id: <1520236170-14668-3-git-send-email-himanshujha199640@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520236170-14668-1-git-send-email-himanshujha199640@gmail.com> References: <1520236170-14668-1-git-send-email-himanshujha199640@gmail.com> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adding a blank space before/after some returns improves readability. Signed-off-by: Himanshu Jha --- drivers/staging/iio/accel/adis16201.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/staging/iio/accel/adis16201.c b/drivers/staging/iio/accel/adis16201.c index 0f6a204..0fae8aa 100644 --- a/drivers/staging/iio/accel/adis16201.c +++ b/drivers/staging/iio/accel/adis16201.c @@ -232,6 +232,7 @@ static int adis16201_read_raw(struct iio_dev *indio_dev, *val = val16; return IIO_VAL_INT; } + return -EINVAL; } @@ -262,6 +263,7 @@ static int adis16201_write_raw(struct iio_dev *indio_dev, addr = adis16201_addresses[chan->scan_index]; return adis_write_reg_16(st, addr, val16); } + return -EINVAL; } @@ -336,6 +338,7 @@ static int adis16201_probe(struct spi_device *spi) ret = adis_init(st, indio_dev, spi, &adis16201_data); if (ret) return ret; + ret = adis_setup_buffer_and_trigger(st, indio_dev, NULL); if (ret) return ret; @@ -348,6 +351,7 @@ static int adis16201_probe(struct spi_device *spi) ret = iio_device_register(indio_dev); if (ret < 0) goto error_cleanup_buffer_trigger; + return 0; error_cleanup_buffer_trigger: