Re: [PATCH] regulator: core: GPIO #0 is a valid GPIO

From: Mark Brown
Date: Wed Sep 03 2014 - 07:01:30 EST


On Wed, Sep 03, 2014 at 01:04:13PM +0400, Dmitry Eremin-Solenikov wrote:

> OK, if the question is about other users, should we review all current users
> that do not specify that gpio, change them to pass -1 and then allow valid
> GPIO#0 as a valid ena_gpio? What do you think about a patch
> that will warn for one or two releases that ena_gpio == 0 will change
> meaning in a forthcoming feature?

The warning is sensible (I'm sure we used to have one though I can't see
it in the git logs now) but I'm not sure a two release cycle is enough
for everyone to have upgraded and paid attention.

Attachment: signature.asc
Description: Digital signature