summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/netvsc_drv.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2011-08-25 20:41:33 +0200
committerGreg Kroah-Hartman2011-08-25 20:41:33 +0200
commitc45cf2d4976e2fcde68d88898a37af70f2caaf5d (patch)
tree437ec34adfbe6e02a8e17d38d7fa66e746c6a620 /drivers/staging/hv/netvsc_drv.c
parentStaging: hv: util: Make hv_utils a vmbus device driver (diff)
downloadkernel-qcow2-linux-c45cf2d4976e2fcde68d88898a37af70f2caaf5d.tar.gz
kernel-qcow2-linux-c45cf2d4976e2fcde68d88898a37af70f2caaf5d.tar.xz
kernel-qcow2-linux-c45cf2d4976e2fcde68d88898a37af70f2caaf5d.zip
Staging: hv: create VMBUS_DEVICE macro and use it.
This is to be used to be able to write hv_vmbus_device_id tables easier. This patch also converts all hv drivers to use the macro, saving some lines of code and making things easier to read overall. Cc: K. Y. Srinivasan <kys@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/netvsc_drv.c')
-rw-r--r--drivers/staging/hv/netvsc_drv.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c
index 2e25c957cfd0..c3b7de147004 100644
--- a/drivers/staging/hv/netvsc_drv.c
+++ b/drivers/staging/hv/netvsc_drv.c
@@ -414,16 +414,10 @@ static int netvsc_remove(struct hv_device *dev)
}
static const struct hv_vmbus_device_id id_table[] = {
- {
- /* Network guid */
- .guid = {
- 0x63, 0x51, 0x61, 0xF8, 0x3E, 0xDF, 0xc5, 0x46,
- 0x91, 0x3F, 0xF2, 0xD2, 0xF9, 0x65, 0xED, 0x0E
- }
- },
- {
- .guid = { }
- },
+ /* Network guid */
+ { VMBUS_DEVICE(0x63, 0x51, 0x61, 0xF8, 0x3E, 0xDF, 0xc5, 0x46,
+ 0x91, 0x3F, 0xF2, 0xD2, 0xF9, 0x65, 0xED, 0x0E) },
+ { },
};
MODULE_DEVICE_TABLE(vmbus, id_table);