[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFp38bB3+BASAxKkQwSLmNiDReEb8XzCrh2vrC8uE12bfQ@mail.gmail.com>
Date: Fri, 28 Aug 2020 10:43:55 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Tian Tao <tiantao6@...ilicon.com>
Cc: "(Exiting) Baolin Wang" <baolin.wang@...aro.org>,
Jisheng Zhang <Jisheng.Zhang@...aptics.com>,
Pali Rohár <pali@...nel.org>,
Philipl Langdale <philipl@...rt.org>,
"linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linuxarm@...wei.com
Subject: Re: [PATCH] mmc: sd: Use kobj_to_dev() instead of container_of()
On Mon, 24 Aug 2020 at 03:04, Tian Tao <tiantao6@...ilicon.com> wrote:
>
> Use kobj_to_dev() instead of container_of()
>
> Signed-off-by: Tian Tao <tiantao6@...ilicon.com>
Applied for next, thanks!
Kind regards
Uffe
> ---
> drivers/mmc/core/sd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
> index 5a2210c..a0d2c34 100644
> --- a/drivers/mmc/core/sd.c
> +++ b/drivers/mmc/core/sd.c
> @@ -735,7 +735,7 @@ static struct attribute *sd_std_attrs[] = {
> static umode_t sd_std_is_visible(struct kobject *kobj, struct attribute *attr,
> int index)
> {
> - struct device *dev = container_of(kobj, struct device, kobj);
> + struct device *dev = kobj_to_dev(kobj);
> struct mmc_card *card = mmc_dev_to_card(dev);
>
> /* CIS vendor and device ids are available only for Combo cards */
> --
> 2.7.4
>
Powered by blists - more mailing lists