Re: [PATCH 1/2] regulator: core: Use a bitfield for continuous_voltage_range

From: Mark Brown
Date: Sat Jan 23 2016 - 10:16:34 EST


On Fri, Jan 22, 2016 at 01:42:33PM -0800, Joe Perches wrote:
> On Fri, 2016-01-22 at 21:31 +0000, Mark Brown wrote:

> > It adds up when you get more flags and these are not in the least bit
> > performance sensitive.

> Sure, but intelligibility is useful too.

I'm really not sure the use of small integers for boolean flags is going
to be an especially troubling barrier for people.

> Do you expect to have more than 4 of these flags?

It's plausible.

Attachment: signature.asc
Description: PGP signature