From patchwork Mon Dec 7 10:47:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 7781851 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C12359F350 for ; Mon, 7 Dec 2015 10:48:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0069D2041A for ; Mon, 7 Dec 2015 10:48:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1AA0620461 for ; Mon, 7 Dec 2015 10:48:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755391AbbLGKrv (ORCPT ); Mon, 7 Dec 2015 05:47:51 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:36842 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755333AbbLGKrq (ORCPT ); Mon, 7 Dec 2015 05:47:46 -0500 Received: by pfdd184 with SMTP id d184so63295406pfd.3; Mon, 07 Dec 2015 02:47:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tbJWLNNq61rj47+Va5yUFTjeHPFp2/k8HzCfYpmQTvE=; b=fHtDmROcTjLnuScqc8Upr69egLusHPi7rB35F9zJwMLHaMI37nHZuI+FAfJwTe4Kwx EKNisvSo2nav7PpsW4upQn07e7g+aRMhwpV/VdXWSJSRlYcMl5I3dxFLokLCtrLJTB5C 0N4/WfsHGo1nUIUDtnuh5dNT67O40Hmf9qXmXm0XEwpNll/9sfEOneMcbkKEGpiLMVVw X3DOIqJNAUI51uAhYhmamg7wsNP6NEb2GqxFEsMTwh9OaFgqpgTlPYRfkMm1T8iJ9Ijl EvCokgxAVvbi5YkvU+cNXEMpwrrPhratd2Rlr5l9SuyxhaHQgR6c3ZRffwqQdShFBgGp SIgQ== X-Received: by 10.98.71.138 with SMTP id p10mr42483308pfi.61.1449485266392; Mon, 07 Dec 2015 02:47:46 -0800 (PST) Received: from sudip-pc.vectortproxy.org ([122.169.145.251]) by smtp.gmail.com with ESMTPSA id 6sm33768892pfm.58.2015.12.07.02.47.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Dec 2015 02:47:45 -0800 (PST) From: Sudip Mukherjee To: Mark Brown Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Sudip Mukherjee Subject: [PATCH v2 2/8] spi: lm70llp: add blank line after declaration Date: Mon, 7 Dec 2015 16:17:29 +0530 Message-Id: <1449485255-1103-2-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449485255-1103-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1449485255-1103-1-git-send-email-sudipm.mukherjee@gmail.com> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP checkpatch complains about missing blank line after declaration. Signed-off-by: Sudip Mukherjee --- drivers/spi/spi-lm70llp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/spi/spi-lm70llp.c b/drivers/spi/spi-lm70llp.c index eb4b421..7037028 100644 --- a/drivers/spi/spi-lm70llp.c +++ b/drivers/spi/spi-lm70llp.c @@ -119,12 +119,14 @@ static inline void assertCS(struct spi_lm70llp *pp) static inline void clkHigh(struct spi_lm70llp *pp) { u8 data = parport_read_data(pp->port); + parport_write_data(pp->port, data | SCLK); } static inline void clkLow(struct spi_lm70llp *pp) { u8 data = parport_read_data(pp->port); + parport_write_data(pp->port, data & ~SCLK); } @@ -163,8 +165,10 @@ static inline void setmosi(struct spi_device *s, int is_on) static inline int getmiso(struct spi_device *s) { struct spi_lm70llp *pp = spidev_to_pp(s); + return ((SIO == (parport_read_status(pp->port) & SIO)) ? 0 : 1 ); } + /*--------------------------------------------------------------------*/ #include "spi-bitbang-txrx.h"