Re: [PATCH] gpio: Make gpio_{request,free}_array gpio array parameterconst

From: Lars-Peter Clausen
Date: Sun Jan 30 2011 - 14:05:43 EST

On 01/30/2011 07:49 PM, Wolfram Sang wrote:
> On Sat, Jan 29, 2011 at 04:21:21PM +0100, Lars-Peter Clausen wrote:
>> gpio_{request,free}_array should not (and do not) modify the passed gpio array,
>> so make the parameter const.
>> Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
> Looks good to me. What about the users of these calls (luckily there don't seem
> to be many)?
> Kind regards,
> Wolfram


Well, they could, but don't have to, make their gpio array const now, if it is not
otherwise modified. But I guess that is something for a follow-up patch.

- Lars
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at