Re: [PATCH] rfkill: Regulator consumer driver for rfkill

From: Johannes Berg
Date: Wed Apr 06 2011 - 16:15:40 EST


On Wed, 2011-04-06 at 22:10 +0200, Paul Bolle wrote:
> On Wed, 2011-04-06 at 14:38 -0400, John W. Linville wrote:
> > The syntax may seem strange,
>
> It does!
>
> > but basically it just says "don't let me by y if RFKILL is m"
>
> ... but, besides that, I can be any value. So in effect it's shorthand
> for
> depends on RFKILL=y || RFKILL=m && m || RFKILL=n
>
> (which actually looks equally strange). Is that correct?

I don't think it is, I believe that an expression like "RFKILL=y" has a
bool type, and a tristate type value that depends on a bool type can
still take the value m.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/