On 14 September 2015 at 14:00, Javier Martinez Canillas
<[email protected]> wrote:
> The gpiod_get() function expands to gpiod_get_index() with index 0
> so it's better to use it since is easier to read and more concise.
>
> Signed-off-by: Javier Martinez Canillas <[email protected]>
Thanks, applied for next!
Kind regards
Uffe
>
> ---
>
> drivers/mmc/core/pwrseq_emmc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/core/pwrseq_emmc.c b/drivers/mmc/core/pwrseq_emmc.c
> index 9d6d2fb21796..137c97fb7aa8 100644
> --- a/drivers/mmc/core/pwrseq_emmc.c
> +++ b/drivers/mmc/core/pwrseq_emmc.c
> @@ -76,7 +76,7 @@ struct mmc_pwrseq *mmc_pwrseq_emmc_alloc(struct mmc_host
> *host,
> if (!pwrseq)
> return ERR_PTR(-ENOMEM);
>
> - pwrseq->reset_gpio = gpiod_get_index(dev, "reset", 0, GPIOD_OUT_LOW);
> + pwrseq->reset_gpio = gpiod_get(dev, "reset", GPIOD_OUT_LOW);
> if (IS_ERR(pwrseq->reset_gpio)) {
> ret = PTR_ERR(pwrseq->reset_gpio);
> goto free;
> --
> 2.4.3
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/