[alsa-devel] [PATCH v2 2/4] ASoC: sun4i-codec: Add support for PA gpio pin
Mark Brown
broonie at kernel.org
Sun Dec 13 00:01:50 CET 2015
On Fri, Dec 11, 2015 at 07:43:57PM +0100, Hans de Goede wrote:
> + gpiod_set_value_cansleep(scodec->gpio_pa,
> + !!SND_SOC_DAPM_EVENT_ON(event));
Why the double negation here? The macro is already supposed to give you
a boolean and gpiod_set_value_cansleep() ought to cope with a C logic
value.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20151212/59f039d3/attachment.sig>
More information about the Alsa-devel
mailing list