[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150119150514.GB3820@katana>
Date: Mon, 19 Jan 2015 16:05:15 +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
> > + 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.
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists