From patchwork Thu Dec 3 12:59:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 7759761 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 B1AB59F39B for ; Thu, 3 Dec 2015 13:01:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D529A2054C for ; Thu, 3 Dec 2015 13:01:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F013520549 for ; Thu, 3 Dec 2015 13:01:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751401AbbLCNBr (ORCPT ); Thu, 3 Dec 2015 08:01:47 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35123 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759827AbbLCNAJ (ORCPT ); Thu, 3 Dec 2015 08:00:09 -0500 Received: by pacej9 with SMTP id ej9so69052577pac.2; Thu, 03 Dec 2015 05:00:08 -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=FeThyMkcWIOQaOdB5WK4hC2Hf3n7RZl1mbJ3Gt1DGTr3lyTsvdaAZkDrM9bY964NAp LWhZRtZkdpQQ1Lu+qu/XHwnllgqVWW9RtHBGyXABrI4FXrpJJ5cAz5FWkBOPMSYL2qPB 44Hin3ZfBnd6OYUHXztbqIdi2oJKFV+WwPGZgYk0jlSz13j9fV9t63XR1H+b1qEjDHmN euQQ9a5igABUaEcgxQU1CZfk33cCMTG/yCdAfJasRG+Prxp2rrIc10t0M/oPE+G72wQP JdrCRhbYpXf306k/uvDDVFbn+i+ExgESz1xyaQS9Y4IkuUiByZCtFzahXLqdArHAHfqm Rcww== X-Received: by 10.66.254.73 with SMTP id ag9mr13079036pad.116.1449147608836; Thu, 03 Dec 2015 05:00:08 -0800 (PST) Received: from sudip-pc.vectortproxy.org ([49.206.241.12]) by smtp.gmail.com with ESMTPSA id 82sm10717689pfn.76.2015.12.03.05.00.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Dec 2015 05:00:08 -0800 (PST) From: Sudip Mukherjee To: Mark Brown Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Sudip Mukherjee Subject: [PATCH 2/7] spi: lm70llp: add blank line after declaration Date: Thu, 3 Dec 2015 18:29:54 +0530 Message-Id: <1449147599-26705-2-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449147599-26705-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1449147599-26705-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"