aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/rndis_filter.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-09-13 13:59:54 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-16 14:06:04 -0400
commit86c921af41f0d40ff9105a73fb20378440f0299f (patch)
treece0f672f5f81cb60704ebd2204d3099e08fce410 /drivers/staging/hv/rndis_filter.c
parentd982042b9b62f3a966e7de5572fd30d131eb5357 (diff)
Staging: hv: netvsc: Rename netDevice as net_device
Rename netDevice as net_device. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/rndis_filter.c')
-rw-r--r--drivers/staging/hv/rndis_filter.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c
index b354b0b6236..efa7df5b1f8 100644
--- a/drivers/staging/hv/rndis_filter.c
+++ b/drivers/staging/hv/rndis_filter.c
@@ -689,7 +689,7 @@ int rndis_filter_device_add(struct hv_device *dev,
689 void *additional_info) 689 void *additional_info)
690{ 690{
691 int ret; 691 int ret;
692 struct netvsc_device *netDevice; 692 struct netvsc_device *net_device;
693 struct rndis_device *rndisDevice; 693 struct rndis_device *rndisDevice;
694 struct netvsc_device_info *deviceInfo = additional_info; 694 struct netvsc_device_info *deviceInfo = additional_info;
695 695
@@ -710,10 +710,10 @@ int rndis_filter_device_add(struct hv_device *dev,
710 710
711 711
712 /* Initialize the rndis device */ 712 /* Initialize the rndis device */
713 netDevice = hv_get_drvdata(dev); 713 net_device = hv_get_drvdata(dev);
714 714
715 netDevice->extension = rndisDevice; 715 net_device->extension = rndisDevice;
716 rndisDevice->net_dev = netDevice; 716 rndisDevice->net_dev = net_device;
717 717
718 /* Send the rndis initialization message */ 718 /* Send the rndis initialization message */
719 ret = rndis_filter_init_device(rndisDevice); 719 ret = rndis_filter_init_device(rndisDevice);
@@ -762,12 +762,12 @@ void rndis_filter_device_remove(struct hv_device *dev)
762 762
763int rndis_filter_open(struct hv_device *dev) 763int rndis_filter_open(struct hv_device *dev)
764{ 764{
765 struct netvsc_device *netDevice = hv_get_drvdata(dev); 765 struct netvsc_device *net_device = hv_get_drvdata(dev);
766 766
767 if (!netDevice) 767 if (!net_device)
768 return -EINVAL; 768 return -EINVAL;
769 769
770 return rndis_filter_open_device(netDevice->extension); 770 return rndis_filter_open_device(net_device->extension);
771} 771}
772 772
773int rndis_filter_close(struct hv_device *dev) 773int rndis_filter_close(struct hv_device *dev)