[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOMZO5DxX7Mx35sjQtaBi=ew9w82Ve0VRyXnekMgL1N_ShwUTg@mail.gmail.com>
Date: Mon, 2 Jul 2018 21:59:27 -0300
From: Fabio Estevam <festevam@...il.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: Anson Huang <Anson.Huang@....com>,
Ulf Hansson <ulf.hansson@...aro.org>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Adrian Hunter <adrian.hunter@...el.com>, evgreen@...omium.org,
Shawn Lin <shawn.lin@...k-chips.com>,
Fabio Estevam <fabio.estevam@....com>,
linux-mmc <linux-mmc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
NXP Linux Team <Linux-imx@....com>
Subject: Re: [PATCH V2] mmc: core: cd_label must be last entry of mmc_gpio struct
Hi Linus,
On Mon, Jul 2, 2018 at 8:42 AM, Linus Walleij <linus.walleij@...aro.org> wrote:
> What about this:
>
> From facb3799f479bfd4dad99c25c9c5d4c77b14c9b0 Mon Sep 17 00:00:00 2001
> From: Linus Walleij <linus.walleij@...aro.org>
> Date: Mon, 2 Jul 2018 13:35:01 +0200
> Subject: [PATCH] mmc: slot-gpio: Allocate GPIO labels dynamically
>
> The use of string pointers in the MMC slot GPIO context is
> pretty dubious, allocating some 2*len extra bytes for each
> label of the ro and wp pins.
>
> Tidy this up using kasprintf() with dynamic allocation of
> labels for these strings.
>
> Signed-off-by: Linus Walleij <linus.walleij@...aro.org>
Your proposed solution also worked fine, thanks.
Powered by blists - more mailing lists