From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A40C0C433FE for ; Wed, 9 Nov 2022 14:48:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbiKIOsx (ORCPT ); Wed, 9 Nov 2022 09:48:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231670AbiKIOsq (ORCPT ); Wed, 9 Nov 2022 09:48:46 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3215186E6 for ; Wed, 9 Nov 2022 06:48:44 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id v27so27615212eda.1 for ; Wed, 09 Nov 2022 06:48:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7USN0G8Nj6bFP0DAG8wpDATUtQ4+Fo+i57WTNeIkt9o=; b=NRt78M2Sb88BheBzAT20bUfEl8jig4axjLGE9cA4Lt1JAoMq4Kp2dRwmyJftLj+Aiz JHHlO0YI2UjwVjPsI8Nep5TgZzvmeP1uvD0R9Zch0I38Q1dCIN54ZaXZRi5Bwm4n326w owPJoFtjtzvynKQh3U1yx3zMtALznwO78lMrgqzHwN9SeFU4BE9+Yp4Y0wQWfHWdgwGJ GUT9qMXOqexjc2b21CP5h0SDiefsKQuvsslSMYP9yRh1dWyR1gWDkShbMekAFnP4cKV+ /OcTddzVbBhYvuGTeG6Q+sgMfEeRmBl0hHWHJ1WrbEtP9RUyvtc5MsB8UmpPIZ+Uo4k5 0LNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7USN0G8Nj6bFP0DAG8wpDATUtQ4+Fo+i57WTNeIkt9o=; b=nTSSNjPUWhmBi6QE9TrovC10TivkFuscHH5TfB1KplZLvYB58vHcvs1w160DwI/o9T GW9BkcW6bwHuLyhYld0v5od66urN8Ca/Taexqodr5ZzdOhPSS4fpc9prfUBoC6lqmiZ6 /O8UwVWXzgcPNUXIR6lhk6TulY7O8/E0ea3pwdbozG01Mqg0gqQ2r7wPFwS8yeyzHb7V dW8qrxHY1HT3F+AmdMT4w/rnKujphX9GpOKb3FwoYLuoyJGa8+LH9yZ0/0ANyEwiqxSG Mdn9s1AG9It7rUHhG85Zv7sbetoGYiynPdsTzNr+Yd0QJbyI/4VDQJIr/+lHgrbl1QF8 gBuw== X-Gm-Message-State: ACrzQf3OOo0xafpxFgTINhDG7ipLHgRSFt2Ak3HFrIeRcR7VkNk2RrBW RwehpdozSzhHoT10GfjSo437Nobw3wz8vEXwA1dYww== X-Google-Smtp-Source: AMsMyM7561mKq4Buhe3zDStvs0P4R0k11DgxiwW71lUIvN+scEkFvD5qN931ug979+El3bYeMCLFhuO0FxQfFbUIUN8= X-Received: by 2002:aa7:d6d1:0:b0:463:ba50:e574 with SMTP id x17-20020aa7d6d1000000b00463ba50e574mr42357603edr.158.1668005323470; Wed, 09 Nov 2022 06:48:43 -0800 (PST) MIME-Version: 1.0 References: <20221109043845.16617-1-balamanikandan.gunasundar@microchip.com> In-Reply-To: From: Linus Walleij Date: Wed, 9 Nov 2022 15:48:32 +0100 Message-ID: Subject: Re: [PATCH] mmc: atmel-mci: Convert to gpio descriptors To: Ulf Hansson Cc: Balamanikandan Gunasundar , ludovic.desroches@microchip.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, 3chas3@gmail.com, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 9, 2022 at 1:39 PM Ulf Hansson wrote: > On Wed, 9 Nov 2022 at 05:39, Balamanikandan Gunasundar (...) > > --- a/drivers/mmc/host/atmel-mci.c > > +++ b/drivers/mmc/host/atmel-mci.c > > @@ -19,7 +19,8 @@ > > #include > > #include > > #include > > -#include > > +#include > > +#include This is nice, but higher up the driver also #include so delete that line too, should be enough. > > - of_get_named_gpio(cnp, "cd-gpios", 0); > > + devm_gpiod_get_from_of_node(&pdev->dev, cnp, > > + "cd-gpios", > > + 0, GPIOD_IN, "cd-gpios"); (...) > > pdata->slot[slot_id].wp_pin = > > - of_get_named_gpio(cnp, "wp-gpios", 0); > > + devm_gpiod_get_from_of_node(&pdev->dev, cnp, > > + "wp-gpios", > > + 0, GPIOD_IN, "wp-gpios"); Hm. Dmitry is trying to get rid of of_get_named_gpio() I think. But I suppose we can migrate to fwnode later. This is at least better than before so go with this for now. Yours, Linus Walleij