[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150224160446.GB19444@katana>
Date: Tue, 24 Feb 2015 17:04:46 +0100
From: Wolfram Sang <wsa@...-dreams.de>
To: Eddie Huang <eddie.huang@...iatek.com>
Cc: linux-i2c@...r.kernel.org, linux-mips@...ux-mips.org,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
linux-kernel@...r.kernel.org,
Ludovic Desroches <ludovic.desroches@...el.com>,
Yingjoe Chen <yingjoe.chen@...iatek.com>,
linuxppc-dev@...ts.ozlabs.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [RFC 01/11] i2c: add quirk structure to describe adapter flaws
On Mon, Jan 19, 2015 at 04:05:15PM +0100, Wolfram Sang wrote:
>
> > > + struct i2c_adapter_quirks *quirks;
> > > };
> > > #define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev)
> > >
> >
> > I suggest to add const.
> > const struct i2c_adapter_quirks *quirks;
> >
> > also, in i2c-core.c, should modify:
> > const struct i2c_adapter_quirks *q = adap->quirks;
>
> Thanks, I'll think about it.
And added it...
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists