[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAF92uro8CGxjTkdwtxa-U1WwFE16F95YaQKOtSxsXXvPy7Le7g@mail.gmail.com>
Date: Sun, 4 Aug 2013 22:18:59 +0200
From: Jens Frederich <jfrederich@...il.com>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Greg KH <gregkh@...uxfoundation.org>, devel@...verdev.osuosl.org,
Chris Ball <cjb@...top.org>, linux-kernel@...r.kernel.org,
Andres Salomon <dilinger@...ued.net>
Subject: Re: [PATCH] Staging: olpc_dcon: replace some magic numbers
On Sun, Aug 4, 2013 at 1:14 AM, Dan Carpenter <dan.carpenter@...cle.com> wrote:
> On Sat, Aug 03, 2013 at 10:44:35PM +0200, Jens Frederich wrote:
>> @@ -126,7 +127,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(EC_DCON_POWER_MODE, (u8 *)&x, 1, NULL, 0);
> ^^^^^^^^
> You didn't introduce this but using "x" as the inbuf here messy.
> It should be char instead of an int. The code won't work on big
> endian systems. I know this hardware is only available on little
> endian systems and that's why it's not a bug. It's just an ugly
> thing to do.
>
Hello Dan, you're right. It doesn't matter whether the current
hardware is little or big endian. The driver should be able to
support both. I will fix it soon.
thanks,
Jens
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists