aboutsummaryrefslogtreecommitdiffstats
path: root/f04.patch
diff options
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-13 11:22:10 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-13 11:22:10 -0700
commit719d631363a9728e4b082cb689b802ece4476f6c (patch)
treef0ea8e8c62621b7536f5216242bdc5dc5781a28e /f04.patch
parent44ea8a3f679a11e5ac3c5b174b645669e33fd8cf (diff)
downloadpatches-719d631363a9728e4b082cb689b802ece4476f6c.tar.gz
rename hv patches and document them better.
Diffstat (limited to 'f04.patch')
-rw-r--r--f04.patch66
1 files changed, 0 insertions, 66 deletions
diff --git a/f04.patch b/f04.patch
deleted file mode 100644
index 1043a9efb953d9..00000000000000
--- a/f04.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-From foo@baz Mon Sep 9 14:34:18 PDT 2013
-Date: Mon, 09 Sep 2013 14:34:18 -0700
-To: Greg KH <gregkh@linuxfoundation.org>
-From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-Subject: hv: move "modalias" bus attribute to dev_groups
-
-This moves the "state" bus attribute to the dev_groups structure.
-
-Cc: "K. Y. Srinivasan" <kys@microsoft.com>
-Cc: Haiyang Zhang <haiyangz@microsoft.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/hv/vmbus_drv.c | 17 ++++++++++++-----
- 1 file changed, 12 insertions(+), 5 deletions(-)
-
---- a/drivers/hv/vmbus_drv.c
-+++ b/drivers/hv/vmbus_drv.c
-@@ -131,7 +131,6 @@ static ssize_t vmbus_show_device_attr(st
- {
- struct hv_device *hv_dev = device_to_hv_device(dev);
- struct hv_device_info *device_info;
-- char alias_name[VMBUS_ALIAS_LEN + 1];
- int ret = 0;
-
- device_info = kzalloc(sizeof(struct hv_device_info), GFP_KERNEL);
-@@ -144,9 +143,6 @@ static ssize_t vmbus_show_device_attr(st
- ret = sprintf(buf, "{%pUl}\n", device_info->chn_type.b);
- } else if (!strcmp(dev_attr->attr.name, "device_id")) {
- ret = sprintf(buf, "{%pUl}\n", device_info->chn_instance.b);
-- } else if (!strcmp(dev_attr->attr.name, "modalias")) {
-- print_alias_name(hv_dev, alias_name);
-- ret = sprintf(buf, "vmbus:%s\n", alias_name);
- } else if (!strcmp(dev_attr->attr.name, "out_intr_mask")) {
- ret = sprintf(buf, "%d\n", device_info->outbound.int_mask);
- } else if (!strcmp(dev_attr->attr.name, "out_read_index")) {
-@@ -224,10 +220,22 @@ static ssize_t monitor_id_show(struct de
- }
- static DEVICE_ATTR_RO(monitor_id);
-
-+static ssize_t modalias_show(struct device *dev,
-+ struct device_attribute *dev_attr, char *buf)
-+{
-+ struct hv_device *hv_dev = device_to_hv_device(dev);
-+ char alias_name[VMBUS_ALIAS_LEN + 1];
-+
-+ print_alias_name(hv_dev, alias_name);
-+ return sprintf(buf, "vmbus:%s\n", alias_name);
-+}
-+static DEVICE_ATTR_RO(modalias);
-+
- static struct attribute *vmbus_attrs[] = {
- &dev_attr_id.attr,
- &dev_attr_state.attr,
- &dev_attr_monitor_id.attr,
-+ &dev_attr_modalias.attr,
- NULL,
- };
- ATTRIBUTE_GROUPS(vmbus);
-@@ -236,7 +244,6 @@ ATTRIBUTE_GROUPS(vmbus);
- static struct device_attribute vmbus_device_attrs[] = {
- __ATTR(class_id, S_IRUGO, vmbus_show_device_attr, NULL),
- __ATTR(device_id, S_IRUGO, vmbus_show_device_attr, NULL),
-- __ATTR(modalias, S_IRUGO, vmbus_show_device_attr, NULL),
-
- __ATTR(server_monitor_pending, S_IRUGO, vmbus_show_device_attr, NULL),
- __ATTR(server_monitor_latency, S_IRUGO, vmbus_show_device_attr, NULL),