* [PATCH 1/2] usb: chipidea: cosmetic clean up on pci id list
@ 2013-10-01 21:29 David Cohen
2013-10-01 21:29 ` [PATCH 2/2] usb: chipidea: add Intel Clovertrail pci id David Cohen
2013-10-01 21:30 ` [PATCH 1/2] usb: chipidea: cosmetic clean up on pci id list David Cohen
0 siblings, 2 replies; 3+ messages in thread
From: David Cohen @ 2013-10-01 21:29 UTC (permalink / raw)
To: alexander.shishkin, gregkh; +Cc: linux-usb, linux-kernel, David Cohen
From: David Cohen <david.a.cohen@intel.com>
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 <david.a.cohen@intel.com>
---
drivers/usb/chipidea/ci_hdrc_pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/chipidea/ci_hdrc_pci.c b/drivers/usb/chipidea/ci_hdrc_pci.c
index 042320a..08a724b 100644
--- a/drivers/usb/chipidea/ci_hdrc_pci.c
+++ b/drivers/usb/chipidea/ci_hdrc_pci.c
@@ -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);
--
1.8.4.rc3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] usb: chipidea: add Intel Clovertrail pci id
2013-10-01 21:29 [PATCH 1/2] usb: chipidea: cosmetic clean up on pci id list David Cohen
@ 2013-10-01 21:29 ` David Cohen
2013-10-01 21:30 ` [PATCH 1/2] usb: chipidea: cosmetic clean up on pci id list David Cohen
1 sibling, 0 replies; 3+ messages in thread
From: David Cohen @ 2013-10-01 21:29 UTC (permalink / raw)
To: alexander.shishkin, gregkh; +Cc: linux-usb, linux-kernel, David Cohen
From: David Cohen <david.a.cohen@intel.com>
Signed-off-by: David Cohen <david.a.cohen@intel.com>
---
drivers/usb/chipidea/ci_hdrc_pci.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/usb/chipidea/ci_hdrc_pci.c b/drivers/usb/chipidea/ci_hdrc_pci.c
index 08a724b..d514332 100644
--- a/drivers/usb/chipidea/ci_hdrc_pci.c
+++ b/drivers/usb/chipidea/ci_hdrc_pci.c
@@ -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);
--
1.8.4.rc3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] usb: chipidea: cosmetic clean up on pci id list
2013-10-01 21:29 [PATCH 1/2] usb: chipidea: cosmetic clean up on pci id list David Cohen
2013-10-01 21:29 ` [PATCH 2/2] usb: chipidea: add Intel Clovertrail pci id David Cohen
@ 2013-10-01 21:30 ` David Cohen
1 sibling, 0 replies; 3+ messages in thread
From: David Cohen @ 2013-10-01 21:30 UTC (permalink / raw)
To: David Cohen; +Cc: alexander.shishkin, gregkh, linux-usb, linux-kernel
On 10/01/2013 02:29 PM, David Cohen wrote:
> From: David Cohen <david.a.cohen@intel.com>
I gotta fix my e-mail to use @linux.intel.com.
Please, see my v2 patches.
BR, David
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-01 21:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-01 21:29 [PATCH 1/2] usb: chipidea: cosmetic clean up on pci id list David Cohen
2013-10-01 21:29 ` [PATCH 2/2] usb: chipidea: add Intel Clovertrail pci id David Cohen
2013-10-01 21:30 ` [PATCH 1/2] usb: chipidea: cosmetic clean up on pci id list David Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox