13 Dec
2015
13 Dec
'15
12:01 a.m.
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.