From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755337AbbESJ6P (ORCPT ); Tue, 19 May 2015 05:58:15 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:32914 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753648AbbESJ6N (ORCPT ); Tue, 19 May 2015 05:58:13 -0400 Date: Tue, 19 May 2015 15:28:03 +0530 From: Sudip Mukherjee To: Jean Delvare Cc: Greg KH , Dan Carpenter , One Thousand Gnomes , linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 WIP 3/5] i2c-parport: define ports to connect Message-ID: <20150519095803.GA6337@sudip-PC> References: <1430907377-17147-1-git-send-email-sudipm.mukherjee@gmail.com> <1430907377-17147-3-git-send-email-sudipm.mukherjee@gmail.com> <1432021847.24979.15.camel@chaos.site> <20150519084430.GA5751@sudip-PC> <1432027695.24979.55.camel@chaos.site> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1432027695.24979.55.camel@chaos.site> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 19, 2015 at 11:28:15AM +0200, Jean Delvare wrote: > Le Tuesday 19 May 2015 à 14:14 +0530, Sudip Mukherjee a écrit : > > On Tue, May 19, 2015 at 09:50:47AM +0200, Jean Delvare wrote: > > > Hi Sudip, > > > > > > Le Wednesday 06 May 2015 à 15:46 +0530, Sudip Mukherjee a écrit : > > then what about: > > MODULE_PARM_DESC(parport, "Mention number of i2c-parport instances you > > want.\n Atmost " __stringify(MAX_DEVICE) " instances are > > allowed.\n Mention port numbers you want to use.\n" > > " If the port is not to be used mention -1.\n" > > " Default is one instance connected to parport0.\n"); > > I suggest formatting this in such a way that "\n"s are at the end of > lines (as your patch had.) This makes this much more readable and > unexpected embedded line breaks and spaces as you have here (the output > of modinfo would look ugly.) > > Also the initial description is still misleading, and there are too many > occurrences of "mention" to my taste. I'd suggest the following: > > MODULE_PARM_DESC(parport, > "List of parallel ports to bind to, by index.\n" > " Atmost " __stringify(MAX_DEVICE) " devices are supported.\n" > " Default is one device connected to parport0.\n" > ); > > I have removed the mention of -1 as this is an internal implementation > detail and I can't think of any reason why the user would ever want to > pass it. will use this. > > > > > > > > > > > > > I tested this patch and it works fine. > > > > > > Tested-by: Jean Delvare > > > > do i add your Tested-by: to the main patch and this patch? > > Yes. Thanks Jean. regards sudip > > -- > Jean Delvare > SUSE L3 Support >