From: "Jaehoon Chung" <jh80.chung@samsung.com>
To: "'Bin Meng'" <bmeng@tinylab.org>, "'Peng Fan'" <peng.fan@nxp.com>
Cc: <u-boot@lists.denx.de>
Subject: RE: [PATCH] mmc: pci: Drop the superfluous cast
Date: Wed, 1 Nov 2023 14:45:13 +0900 [thread overview]
Message-ID: <020901da0c86$95a4afc0$c0ee0f40$@samsung.com> (raw)
In-Reply-To: <4b928129-d4d8-4cda-a5e3-7bf97547f366@samsung.com>
> -----Original Message-----
> From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Jaehoon Chung
> Sent: Tuesday, October 31, 2023 3:09 PM
> To: Bin Meng <bmeng@tinylab.org>; Peng Fan <peng.fan@nxp.com>
> Cc: u-boot@lists.denx.de
> Subject: Re: [PATCH] mmc: pci: Drop the superfluous cast
>
> On 10/11/23 20:00, Bin Meng wrote:
> > dm_pci_map_bar() return a value of (void *) already, hence no need
> > to cast it again before assigning to host->ioaddr.
> >
> > Signed-off-by: Bin Meng <bmeng@tinylab.org>
> > Reviewed-by: Simon Glass <sjg@chromium.org>
>
> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Applied to u-boot-mmc/master. Thanks!
Best Regards,
Jaehoon Chung
>
> Best Regards,
> Jaehoon Chung
>
> > ---
> >
> > drivers/mmc/pci_mmc.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/mmc/pci_mmc.c b/drivers/mmc/pci_mmc.c
> > index 9fb7044029..4d163ccba0 100644
> > --- a/drivers/mmc/pci_mmc.c
> > +++ b/drivers/mmc/pci_mmc.c
> > @@ -50,8 +50,8 @@ static int pci_mmc_probe(struct udevice *dev)
> > desc = mmc_get_blk_desc(&plat->mmc);
> > desc->removable = !(plat->cfg.host_caps & MMC_CAP_NONREMOVABLE);
> >
> > - host->ioaddr = (void *)dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, 0, 0, PCI_REGION_TYPE,
> > - PCI_REGION_MEM);
> > + host->ioaddr = dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, 0, 0,
> > + PCI_REGION_TYPE, PCI_REGION_MEM);
> > host->name = dev->name;
> > host->cd_gpio = priv->cd_gpio;
> > host->mmc = &plat->mmc;
prev parent reply other threads:[~2023-11-01 5:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20231031060900epcas1p166ee69d14c52c948df7a9e8c298be45b@epcas1p1.samsung.com>
2023-10-11 11:00 ` [PATCH] mmc: pci: Drop the superfluous cast Bin Meng
2023-10-12 3:41 ` Simon Glass
2023-10-31 6:09 ` Jaehoon Chung
2023-11-01 5:45 ` Jaehoon Chung [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='020901da0c86$95a4afc0$c0ee0f40$@samsung.com' \
--to=jh80.chung@samsung.com \
--cc=bmeng@tinylab.org \
--cc=peng.fan@nxp.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox