On Wed, Nov 11, 2020 at 5:40 PM Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> wrote: > On Mon, Nov 09, 2020 at 10:53:23PM +0200, Andy Shevchenko wrote: ... > Again I think mode variable is pretty useless here and does not improve > readability. You mean something like return gpio_set_config_with_argument_optional(desc, PIN_CONFIG_INPUT_DEBOUNCE, debounce); is better? -- With Best Regards, Andy Shevchenko