From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754586Ab1GGGsu (ORCPT ); Thu, 7 Jul 2011 02:48:50 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:61215 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752882Ab1GGGst (ORCPT ); Thu, 7 Jul 2011 02:48:49 -0400 From: Ravishankar To: gregkh@suse.de, wfp5p@virginia.edu Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Ravishankar , Ravishankar Subject: [PATCH 5/5] Staging: comedi: fix warning issue in unioxx5.c Date: Thu, 7 Jul 2011 12:30:39 +0530 Message-Id: <1310022039-25599-1-git-send-email-ravishankarkm32@gmail.com> X-Mailer: git-send-email 1.6.5.2 In-Reply-To: <[PATCH 1/2]Staging: comedi: fix line over 80 character warning issues in unioxx5.c> References: <[PATCH 1/2]Staging: comedi: fix line over 80 character warning issues in unioxx5.c> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ravishankar This is a patch to the unioxx5.c file that fixes up a warning:line over 80 charcter found by the checkpatch.pl tool Signed-off-by: Ravishankar --- drivers/staging/comedi/drivers/unioxx5.c | 25 ++++++++++++++++++------- 1 files changed, 18 insertions(+), 7 deletions(-) diff --git a/drivers/staging/comedi/drivers/unioxx5.c b/drivers/staging/comedi/drivers/unioxx5.c index 598884e..9b311c7 100644 --- a/drivers/staging/comedi/drivers/unioxx5.c +++ b/drivers/staging/comedi/drivers/unioxx5.c @@ -75,8 +75,13 @@ Devices: [Fastwel] UNIOxx-5 (unioxx5), /* 'private' structure for each subdevice */ struct unioxx5_subd_priv { int usp_iobase; - unsigned char usp_module_type[12]; /* 12 modules. each can be 70L or 73L */ - unsigned char usp_extra_data[12][4]; /* for saving previous written value for analog modules */ + unsigned char usp_module_type[12]; /* 12 modules. each can be 70L + * or 73L + */ + unsigned char usp_extra_data[12][4]; /* for saving previous written + * value for analog modules + */ + unsigned char usp_prev_wr_val[3]; /* previous written value */ unsigned char usp_prev_cn_val[3]; /* previous channel value */ }; @@ -398,7 +402,10 @@ static int __unioxx5_digital_read(struct unioxx5_subd_priv *usp, *data &= mask; if (channel_offset > 1) - channel -= 2 << channel_offset; /* this operation is created for correct readed value to 0 or 1 */ + channel -= 2 << channel_offset; /* this operation is created for + * correct readed value to + * 0 or 1 + */ *data >>= channel; return 1; @@ -444,7 +451,9 @@ static int __unioxx5_analog_write(struct unioxx5_subd_priv *usp, usp->usp_extra_data[module][i] = (unsigned char)((*data & 0xFF00) >> 8); /* while(!((inb(usp->usp_iobase + 0)) & TxBE)); */ - outb(module + 1, usp->usp_iobase + 5); /* sending module number to card(1 .. 12) */ + outb(module + 1, usp->usp_iobase + 5); /* sending module number + * to card (1..12) + */ outb('W', usp->usp_iobase + 6); /* sends (W)rite command to module */ /* sending for bytes to module(one byte per cycle iteration) */ @@ -475,7 +484,9 @@ static int __unioxx5_analog_read(struct unioxx5_subd_priv *usp, } __unioxx5_analog_config(usp, channel); - outb(module_no + 1, usp->usp_iobase + 5); /* sends module number to card(1 .. 12) */ + outb(module_no + 1, usp->usp_iobase + 5); /* sends module number + * to card (1. .12) + */ outb('V', usp->usp_iobase + 6); /* sends to module (V)erify command */ control = inb(usp->usp_iobase); /* get control register byte */ -- 1.6.5.2