On Wed, 28 Dec 2011 20:48:32 +0800, Axel Lin wrote:
> Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE
> tables.
> 
> Use DEFINE_PCI_DEVICE_TABLE ensures we make the pci_device_id table const
> and marked as __devinitconst.
> 
> This also fixes some warnings from checkpatch:
> e.g.
> WARNING: Use DEFINE_PCI_DEVICE_TABLE for struct pci_device_id
> #1096: FILE: i2c/busses/i2c-intel-mid.c:1096:
> +static struct pci_device_id intel_mid_i2c_ids[] = {
> 
> Signed-off-by: Axel Lin <[email protected]>
> Cc: Rudolf Marek <[email protected]>
> Cc: Jean Delvare <[email protected]>
> Cc: Ben Dooks <[email protected]>
> Cc: Olof Johansson <[email protected]>
> Cc: "Mark M. Hoffman" <[email protected]>
> Cc: Dirk Brandewie <[email protected]>
> Cc: Tomoya MORINAGA <[email protected]>
> Cc: Wolfram Sang <[email protected]>
> Cc: Feng Tang <[email protected]>
> Cc: Sebastian Andrzej Siewior <[email protected]>
> Cc: [email protected]
> ---
> This resend updates the change log.
> This patch is against linux-next tree.
> Axel
> 
>  drivers/i2c/busses/i2c-ali1563.c           |    2 +-
>  drivers/i2c/busses/i2c-ali15x3.c           |    2 +-
>  drivers/i2c/busses/i2c-amd756.c            |    2 +-
>  drivers/i2c/busses/i2c-amd8111.c           |    2 +-
>  drivers/i2c/busses/i2c-designware-pcidrv.c |    2 +-
>  drivers/i2c/busses/i2c-eg20t.c             |    2 +-
>  drivers/i2c/busses/i2c-hydra.c             |    2 +-
>  drivers/i2c/busses/i2c-i801.c              |    2 +-
>  drivers/i2c/busses/i2c-intel-mid.c         |    2 +-
>  drivers/i2c/busses/i2c-nforce2.c           |    2 +-
>  drivers/i2c/busses/i2c-pasemi.c            |    2 +-
>  drivers/i2c/busses/i2c-piix4.c             |    2 +-
>  drivers/i2c/busses/i2c-pxa-pci.c           |    2 +-
>  drivers/i2c/busses/i2c-sis5595.c           |    2 +-
>  drivers/i2c/busses/i2c-sis630.c            |    2 +-
>  drivers/i2c/busses/i2c-sis96x.c            |    2 +-
>  drivers/i2c/busses/i2c-via.c               |    2 +-
>  drivers/i2c/busses/i2c-viapro.c            |    2 +-
>  drivers/i2c/busses/scx200_acb.c            |    2 +-
>  19 files changed, 19 insertions(+), 19 deletions(-)
> (...)

Applied, thanks!

-- 
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to