From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e54k8-0002am-A4 for barebox@lists.infradead.org; Thu, 19 Oct 2017 06:55:51 +0000 Date: Thu, 19 Oct 2017 08:55:26 +0200 From: Ulrich =?iso-8859-1?Q?=D6lmann?= Message-ID: <20171019065526.ulpe5c4saw6xzkot@pengutronix.de> References: <20171017131625.23837-1-u.oelmann@pengutronix.de> <20171017131625.23837-2-u.oelmann@pengutronix.de> <20171017135137.4z7dj7zy4furcos7@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20171017135137.4z7dj7zy4furcos7@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 1/2] commands: i2c: do not restrict i2c_write's data to be hex-formatted To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Barebox List Hi Uwe and list, On Tue, Oct 17, 2017 at 03:51:37PM +0200, Uwe Kleine-K=F6nig wrote: > On Tue, Oct 17, 2017 at 03:16:24PM +0200, Ulrich =D6lmann wrote: > > The price to pay is needing the usual prefix "0x" for each hex-formatte= d number. > > = > > Signed-off-by: Ulrich =D6lmann > = > ack for the change. I'd like to see the motivation (i.e. consistency with > the other commands in barebox as mentioned in the cover letter) in the > commit log, though. just sent a v2. > [...] > > - *(buf + i) =3D (char) simple_strtol(argv[optind+i], NULL, 16); > > + *(buf + i) =3D (char) simple_strtol(argv[optind+i], NULL, 0); > = > Maybe change that to: > = > buf[i] =3D simple_strtol(...); > = > which is a bit easier to read and drops an unnecessary cast? (Or should > that better go in a separate change?) Fully agreed. Will you prepare a patch? Best regards Ulrich -- = 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