[alsa-devel] [PATCH] SoC: max98357a: use flags argument of devm_gpiod_get to set direction

Kenneth Westfield kwestfie at codeaurora.org
Tue May 19 20:30:54 CEST 2015


On Mon, May 18, 2015 at 11:58:09PM -0700, Uwe Kleine-K??nig wrote:
> Since 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions)
> which appeared in v3.17-rc1, the gpiod_get* functions take an additional
> parameter that allows to specify direction and initial value for output.
> 
> Use this to simplify the driver. Furthermore this is one caller less
> that stops us making the flags argument to gpiod_get*() mandatory.
> 
> Fixes: af5adf129369 ("ASoC: max98357a: Add MAX98357A codec driver")
> Signed-off-by: Uwe Kleine-K??nig <u.kleine-koenig at pengutronix.de>

Acked-by: Kenneth Westfield <kwestfie at codeaurora.org>

-- 
Kenneth Westfield
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, 
a Linux Foundation Collaborative Project


More information about the Alsa-devel mailing list