From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751986Ab2DUU0a (ORCPT ); Sat, 21 Apr 2012 16:26:30 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:39642 "EHLO rcsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751027Ab2DUU03 (ORCPT ); Sat, 21 Apr 2012 16:26:29 -0400 Date: Sat, 21 Apr 2012 23:28:25 +0300 From: Dan Carpenter To: Jesper Juhl Cc: linux-kernel@vger.kernel.org, Valentin Rothberg , devel@driverdev.osuosl.org, Greg Kroah-Hartman , Jon Nettleton , Wolfram Sang , Jordan Crouse , Paul Gortmaker , Andres Salomon , Chris Ball , David Woodhouse Subject: Re: [PATCH 3/3] staging: olpc_dcon.c: Remove a few spaces between casts and variables Message-ID: <20120421202825.GW6498@mwanda> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4F9317CD.00A4,ss=1,re=0.000,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 21, 2012 at 08:33:15PM +0200, Jesper Juhl wrote: > Just a trivial style cleanup. > > Signed-off-by: Jesper Juhl > --- > drivers/staging/olpc_dcon/olpc_dcon.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c > index 7fe6eb6..992275c 100644 > --- a/drivers/staging/olpc_dcon/olpc_dcon.c > +++ b/drivers/staging/olpc_dcon/olpc_dcon.c > @@ -134,7 +134,7 @@ static int dcon_bus_stabilize(struct dcon_priv *dcon, int is_powered_down) > power_up: > if (is_powered_down) { > x = 1; > - x = olpc_ec_cmd(0x26, (unsigned char *) &x, 1, NULL, 0); > + x = olpc_ec_cmd(0x26, (unsigned char *)&x, 1, NULL, 0); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This will only work on little endian systems btw. On big endian systems the first byte is going to be 0x00 instead of 0x01. > if (x) { > printk(KERN_WARNING "olpc-dcon: unable to force dcon to power up: %d!\n", > x); regards, dan carpenter