[PATCH 1/9] staging/comedi/jr3: Convert pci_table entries to PCI_DEVICE (if PCI_ANY_ID is used)

Dan Carpenter dan.carpenter at oracle.com
Mon Nov 7 05:51:00 UTC 2011


On Mon, Nov 07, 2011 at 12:53:59AM +0100, Peter Huewe wrote:
> This patch converts pci_table entries to use the PCI_DEVICE macro,
> if .subvendor and .subdevice are set to PCI_ANY_ID,
> and thus improves readablity.
> 
> Since the driver_data field isn't used anywhere we can also drop the
> assignments for class, class_mask and driver_data.
> 

The other reason we can remove them is that C will initialize them
to zero by default in this case.  So the new code is just shorter to
write and doesn't change anything.

regards,
dan carpenter

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20111107/7f0ffe47/attachment.asc>


More information about the devel mailing list