From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WkvHs-00047p-4R for barebox@lists.infradead.org; Thu, 15 May 2014 13:01:28 +0000 Date: Thu, 15 May 2014 15:01:06 +0200 From: Sascha Hauer Message-ID: <20140515130106.GN5858@pengutronix.de> References: <1400144937-6006-1-git-send-email-holgerschurig@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1400144937-6006-1-git-send-email-holgerschurig@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] commands: rename "gpiolib" -> "gpioinfo" To: Holger Schurig Cc: barebox@lists.infradead.org On Thu, May 15, 2014 at 11:08:55AM +0200, Holger Schurig wrote: > Signed-off-by: Holger Schurig Applied, thanks Sascha > --- > drivers/gpio/gpiolib.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c > index 54ec5a6..611e41e 100644 > --- a/drivers/gpio/gpiolib.c > +++ b/drivers/gpio/gpiolib.c > @@ -305,8 +305,6 @@ static int do_gpiolib(int argc, char *argv[]) > { > int i; > > - printf("gpiolib: gpio lists\n"); > - > for (i = 0; i < ARCH_NR_GPIOS; i++) { > struct gpio_info *gi = &gpio_desc[i]; > int val = -1, dir = -1; > @@ -316,7 +314,7 @@ static int do_gpiolib(int argc, char *argv[]) > > /* print chip information and header on first gpio */ > if (gi->chip->base == i) { > - printf("\ngpios %u-%u, chip %s:\n", > + printf("\nGPIOs %u-%u, chip %s:\n", > gi->chip->base, > gi->chip->base + gi->chip->ngpio - 1, > gi->chip->dev->name); > @@ -330,7 +328,7 @@ static int do_gpiolib(int argc, char *argv[]) > val = gi->chip->ops->get(gi->chip, > i - gi->chip->base); > > - printf(" gpio %*d: %*s %*s %*s %s\n", 4, i, > + printf(" GPIO %*d: %*s %*s %*s %s\n", 4, i, > 3, (dir < 0) ? "unk" : ((dir == GPIOF_DIR_IN) ? "in" : "out"), > 3, (val < 0) ? "unk" : ((val == 0) ? "lo" : "hi"), > 9, gi->requested ? "true" : "false", > @@ -340,7 +338,7 @@ static int do_gpiolib(int argc, char *argv[]) > return 0; > } > > -BAREBOX_CMD_START(gpiolib) > +BAREBOX_CMD_START(gpioinfo) > .cmd = do_gpiolib, > BAREBOX_CMD_DESC("list registered GPIOs") > BAREBOX_CMD_GROUP(CMD_GRP_INFO) > -- > 1.7.10.4 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox