Re: [PATCH v4] PCI: Add PCI_DEVICE_DATA() macro to fully describe device ID entry

2018-08-14 Thread Bjorn Helgaas
On Sun, Jul 29, 2018 at 04:16:56PM +0300, Andy Shevchenko wrote: > There are a lot of examples in the kernel where PCI_VDEVICE() is used and > still > looks not so convenient due to additional driver_data field attached. > > Introduce PCI_DEVICE_DATA() macro to fully describe device ID entry in

Re: [PATCH v4] PCI: Add PCI_DEVICE_DATA() macro to fully describe device ID entry

2018-07-29 Thread Kalle Valo
Andy Shevchenko writes: > There are a lot of examples in the kernel where PCI_VDEVICE() is used and > still > looks not so convenient due to additional driver_data field attached. > > Introduce PCI_DEVICE_DATA() macro to fully describe device ID entry in > shortest > possible form. For example,

[PATCH v4] PCI: Add PCI_DEVICE_DATA() macro to fully describe device ID entry

2018-07-29 Thread Andy Shevchenko
There are a lot of examples in the kernel where PCI_VDEVICE() is used and still looks not so convenient due to additional driver_data field attached. Introduce PCI_DEVICE_DATA() macro to fully describe device ID entry in shortest possible form. For example, before: { PCI_VDEVICE(INTEL, PCI