From patchwork Thu Mar 29 09:14:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shreeya Patel X-Patchwork-Id: 10314785 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 8C80360212 for ; Thu, 29 Mar 2018 09:14:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 800CE2A2C0 for ; Thu, 29 Mar 2018 09:14:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74E352A2CC; Thu, 29 Mar 2018 09:14:49 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 199C52A2C0 for ; Thu, 29 Mar 2018 09:14:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750858AbeC2JOs (ORCPT ); Thu, 29 Mar 2018 05:14:48 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:43918 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbeC2JOr (ORCPT ); Thu, 29 Mar 2018 05:14:47 -0400 Received: by mail-pf0-f194.google.com with SMTP id j2so2814193pff.10; Thu, 29 Mar 2018 02:14:47 -0700 (PDT) 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=/TUTFAa/rPvMLM4HDupr3gf7wkOPNjMYRSiGAyTNLWc=; b=iZeq7WAXQnBiXrebK/zEzl5emIVfa9yfs/etf4IT+0MxdexO30/kUytMhsR1d5U6e4 HshoF7+0IIIeIEWTODINHuYaGXYj4iYs6pW49R+uu8+8m7CD5ITY62lEeooEct+RcEci S5gCpjy8fJ1tUTiMrjsqurMHw9ad9Ztl06Vx05QeMKVrOUXRGIXiK558zSea5RyoqB8I j3NoL9cAIH3EKblAvon9jSqeUAk70u4/RdLhOIz89dI8XRRRTlT0mFV41hSkgTH1HGOM YjHhXGB0NkIvLp3MrH2w6q746sNi4JjICzmbslbK3+ZhifD2V/t24eilSWVtdBMePVEW OgLg== 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=/TUTFAa/rPvMLM4HDupr3gf7wkOPNjMYRSiGAyTNLWc=; b=ADJspkbt38vwuccWTu8L606wJmpdNJP1ttP3EYD5qB1rBidpmodld4R8y2nY3jVMZx 2n6ZfGqqOvM1ClSfmjTWpqEJwnjw8OZ5JGSeVqcjz9GfmJ1OvE3AvjyhHZAonORPQO10 gssPRuLb7gHHVfwe31/uZzqx8DT+n2c+edm2kkofoPq8MopW4n4XltoSmMHfty/lL2M4 RLT+XmOsgbU+RLrVrlUdaKXjmb+i7lh7YBUt1GicQjF3Gijlm/sTje2P+GhoAxEo9DFr Muhh9kbVY1klmbmsG5RrB62oyoVfrMSZfTiv/M+s7/VaWb9lM0I95dJtovQiL3BdGEeP t24A== X-Gm-Message-State: AElRT7FBbcGUrRBrgm9RgbuLjFG2UrPfZyg0JMi3TE3KEEMnJLaJxXbt 6xhUnBjO+SKN5kjc3xFke5g= X-Google-Smtp-Source: AIpwx4+iBbSpA+o/Mm+Y4hVRuuHlAhnJc15XSzqfp+jtbDTtyGR8bAoJvagsl1VvG+KDSEx9zHABdw== X-Received: by 2002:a17:902:9a05:: with SMTP id v5-v6mr6735192plp.313.1522314887045; Thu, 29 Mar 2018 02:14:47 -0700 (PDT) Received: from shreeya-VirtualBox ([103.212.140.137]) by smtp.gmail.com with ESMTPSA id y18sm11255032pfm.66.2018.03.29.02.14.46 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Mar 2018 02:14:46 -0700 (PDT) From: Shreeya Patel To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, Michael.Hennerich@analog.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, daniel.baluta@gmail.com Cc: Shreeya Patel Subject: [PATCH v6 3/6] Staging: iio: adis16209: Add a blank line after return statements Date: Thu, 29 Mar 2018 14:44:42 +0530 Message-Id: <517fdc2cff0ef238e74c2114fba1a73d2a40a999.1522306893.git.shreeya.patel23498@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: 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 Add a blank line after return statements to improve the code readability. Signed-off-by: Shreeya Patel --- Changes in v6 -Introduce this new patch in the series. drivers/staging/iio/accel/adis16209.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/iio/accel/adis16209.c b/drivers/staging/iio/accel/adis16209.c index 8f4fa6b..ee7e87b 100644 --- a/drivers/staging/iio/accel/adis16209.c +++ b/drivers/staging/iio/accel/adis16209.c @@ -277,6 +277,7 @@ static int adis16209_probe(struct spi_device *spi) indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); if (!indio_dev) return -ENOMEM; + st = iio_priv(indio_dev); spi_set_drvdata(spi, indio_dev); @@ -290,6 +291,7 @@ static int adis16209_probe(struct spi_device *spi) ret = adis_init(st, indio_dev, spi, &adis16209_data); if (ret) return ret; + ret = adis_setup_buffer_and_trigger(st, indio_dev, NULL); if (ret) return ret;