mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org, "Uwe Kleine-König" <uwe@kleine-koenig.org>
Subject: Re: [RFC PATCH] pci: Improve handling of constant id_table pointer
Date: Wed, 15 Apr 2015 09:09:24 +0200	[thread overview]
Message-ID: <20150415070924.GU9188@pengutronix.de> (raw)
In-Reply-To: <20150415052746.GJ9742@pengutronix.de>

On Wed, Apr 15, 2015 at 07:27:46AM +0200, Sascha Hauer wrote:
> diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
> index d6c5496..9fec4d7 100644
> --- a/drivers/pci/bus.c
> +++ b/drivers/pci/bus.c
> @@ -27,11 +27,11 @@ static int pci_match(struct device_d *dev, struct driver_d *drv)
>  {
>  	struct pci_dev *pdev = to_pci_dev(dev);
>  	struct pci_driver *pdrv = to_pci_driver(drv);
> -	struct pci_device_id *id;
> +	const struct pci_device_id *id;
>  
>  	for (id = (struct pci_device_id *)pdrv->id_table; id->vendor; id++)
This cast can then be dropped, too.

Otherwise,
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Thanks
Uwe


-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2015-04-15  7:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-14 19:56 Uwe Kleine-König
2015-04-15  5:27 ` Sascha Hauer
2015-04-15  7:09   ` Uwe Kleine-König [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=20150415070924.GU9188@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    --cc=uwe@kleine-koenig.org \
    /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