usb: chipidea: cosmetic clean up on pci id list
Subsystems (2)
PATCH 1/2 usb: chipidea: cosmetic clean up on pci id list
From: David Cohen <[email protected]>
In order to fill a struct with zeroes just the first element needs to be set to 0, the rest can me omitted. This looks cleaner when reading the code.
This patch does such clean up change on last item of pci id list.
Signed-off-by David Cohen <[email protected]>
--- drivers/usb/chipidea/ci_hdrc_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/chipidea/ci_hdrc_pci.c +1 -1
@@ -129,7 +129,7 @@ static DEFINE_PCI_DEVICE_TABLE(ci_hdrc_pci_id_table) = { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0829), .driver_data = (kernel_ulong_t)&penwell_pci_platdata, }, - { 0, 0, 0, 0, 0, 0, 0 /* end: all zeroes */ } + { 0 } /* end: all zeroes */ };MODULE_DEVICE_TABLE (pci, ci_hdrc_pci_id_table);
Signature · 1 line
1.8.4.rc3
PATCH 2/2 usb: chipidea: add Intel Clovertrail pci id
From: David Cohen <[email protected]>
Signed-off-by David Cohen <[email protected]>
--- drivers/usb/chipidea/ci_hdrc_pci.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/usb/chipidea/ci_hdrc_pci.c +5 -0
@@ -129,6 +129,11 @@ static DEFINE_PCI_DEVICE_TABLE(ci_hdrc_pci_id_table) = { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0829), .driver_data = (kernel_ulong_t)&penwell_pci_platdata, }, + { +/* Intel Clovertrail */ +PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0xe006 ), + .driver_data = (kernel_ulong_t)&penwell_pci_platdata, + }, { 0 } /* end: all zeroes */ };MODULE_DEVICE_TABLE (pci, ci_hdrc_pci_id_table);
Signature · 1 line
1.8.4.rc3
Quoted 1 line · David Cohen
From: David Cohen <[email protected]>
I gotta fix my e-mail to use @linux.intel.com.
Please, see my v2 patches.
BR, David