summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys/visorbus/visorchannel.c
diff options
context:
space:
mode:
authorDon Zickus2015-05-13 19:22:20 +0200
committerGreg Kroah-Hartman2015-05-24 22:28:56 +0200
commit4f6d8a97833f4640991f696d471486e5442eb0b2 (patch)
treee1272a87f9df764fde701efadceb998e7cb60a16 /drivers/staging/unisys/visorbus/visorchannel.c
parentstaging: unisys: Add visor device find routine (diff)
downloadkernel-qcow2-linux-4f6d8a97833f4640991f696d471486e5442eb0b2.tar.gz
kernel-qcow2-linux-4f6d8a97833f4640991f696d471486e5442eb0b2.tar.xz
kernel-qcow2-linux-4f6d8a97833f4640991f696d471486e5442eb0b2.zip
staging: unisys: Add a function to set the clientpartition
This patch is an attempt to help hide the channel info behind accessory functions. I was trying to keep visorchannel as private as possible. The only function missing that seemed to be needed for now was the ability to set the clientpartition. So I expose that here. Signed-off-by: Don Zickus <dzickus@redhat.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visorbus/visorchannel.c')
-rw-r--r--drivers/staging/unisys/visorbus/visorchannel.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchannel.c b/drivers/staging/unisys/visorbus/visorchannel.c
index a9c3ae160ce5..1789f9d89c0d 100644
--- a/drivers/staging/unisys/visorbus/visorchannel.c
+++ b/drivers/staging/unisys/visorbus/visorchannel.c
@@ -190,6 +190,15 @@ visorchannel_get_clientpartition(struct visorchannel *channel)
}
EXPORT_SYMBOL_GPL(visorchannel_get_clientpartition);
+int
+visorchannel_set_clientpartition(struct visorchannel *channel,
+ u64 partition_handle)
+{
+ channel->chan_hdr.partition_handle = partition_handle;
+ return 0;
+}
+EXPORT_SYMBOL_GPL(visorchannel_set_clientpartition);
+
uuid_le
visorchannel_get_uuid(struct visorchannel *channel)
{