Received: by 10.223.185.116 with SMTP id b49csp2302296wrg; Sun, 4 Mar 2018 23:54:18 -0800 (PST) X-Google-Smtp-Source: AG47ELstXwZve7ozPFeIzwW13C4XpwqD7Wf0G8+beJNNmfdoUG6V9tS2KjzCim/hOBrDLk/sb7hY X-Received: by 2002:a17:902:d90f:: with SMTP id c15-v6mr8669193plz.223.1520236457957; Sun, 04 Mar 2018 23:54:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520236457; cv=none; d=google.com; s=arc-20160816; b=j0iZabSAPoY3FXtq7gLI1n0fqQ3Gnq210nNPQa+7o52VicPd6Tr9ED2pMLVBokP0P1 82tKNwGITS89QOnsKGKBX9uuN9t9n4TJ6N6aq2Dx/ge9Be4gSwItcI7XvHeFuutsxUnM C9OJKnoVJbYZJQ5Jk6PvTdFI/x3+h39Qvh0OrjFhce//Qh9tZHHzExqsiLvhWnDp6/Wg m5PXwQe6SbkojwHx4SVfP7Bd750pHNPp8sqGUBJUp7Ol7L7seLvh/YjUR0tIAE8kXqSp ipK+JbVd51J9JGrXOLTTQCf2zdr/YmDZplJ1XeclY/cKJKd+qJM3qZEM1fDoD15b49DH 6drw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=5teCbeC4EmSOv+0bVA4kD/UJB0m0g4d9CzKR+2K4Vxs=; b=MWj5ILxlD5CyEGa3t5cjAMkruK0NNPE7y3F32Z+ydLWTkmwB7jNTIEclPYCN9kyJHN co1ZScusipKSJb4ZIaiHW7ic1bkqmLsvoMJJnPAQzZHfr8NzoEwY1BldXGCcKDr5Sa2u cbp2qitj12AuCBSUiu40xpvz8Y76Ji6MtSrMxx51xq1xeswgF8sCFZXeCnnvnBJnaPTQ c6rHLsUdWyc27S8Px7Z9JLrO83vrrUtI7EtojVWxxX8qdBzbNcsJ4mNu7PAKnWvI/1S+ bvpW0CKSok1UcYqAw7EC4v5zobjB1DsL/kDU/yqhJCMnNFu88sxQqOHavAhV7PgEjenR g4aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RADKJntp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si7987613pgq.399.2018.03.04.23.54.03; Sun, 04 Mar 2018 23:54:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RADKJntp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933158AbeCEHuI (ORCPT + 99 others); Mon, 5 Mar 2018 02:50:08 -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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: -- 2.7.4