Commit cbe7e02f authored by David Kershner's avatar David Kershner Committed by Greg Kroah-Hartman

staging: unisys: visorbus: visorchannel: use 80 characters for comments

In the file visorhcannel.c use all 80 characters for comments instead of
shortening them.
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 90d1ecf0
...@@ -41,8 +41,8 @@ struct visorchannel { ...@@ -41,8 +41,8 @@ struct visorchannel {
struct channel_header chan_hdr; struct channel_header chan_hdr;
guid_t guid; guid_t guid;
/* /*
* channel creator knows if more than one * channel creator knows if more than one thread will be inserting or
* thread will be inserting or removing * removing
*/ */
bool needs_lock; bool needs_lock;
/* protect head writes in chan_hdr */ /* protect head writes in chan_hdr */
...@@ -173,8 +173,8 @@ static int sig_data_offset(struct channel_header *chan_hdr, int q, ...@@ -173,8 +173,8 @@ static int sig_data_offset(struct channel_header *chan_hdr, int q,
} }
/* /*
* Write the contents of a specific field within a SIGNAL_QUEUE_HEADER back * Write the contents of a specific field within a SIGNAL_QUEUE_HEADER back into
* into host memory * host memory
*/ */
#define SIG_WRITE_FIELD(channel, queue, sig_hdr, FIELD) \ #define SIG_WRITE_FIELD(channel, queue, sig_hdr, FIELD) \
visorchannel_write(channel, \ visorchannel_write(channel, \
...@@ -240,8 +240,8 @@ static int signalremove_inner(struct visorchannel *channel, u32 queue, ...@@ -240,8 +240,8 @@ static int signalremove_inner(struct visorchannel *channel, u32 queue,
sig_hdr.num_received++; sig_hdr.num_received++;
/* /*
* For each data field in SIGNAL_QUEUE_HEADER that was modified, * For each data field in SIGNAL_QUEUE_HEADER that was modified, update
* update host memory. Required for channel sync. * host memory. Required for channel sync.
*/ */
mb(); mb();
...@@ -293,8 +293,8 @@ static bool queue_empty(struct visorchannel *channel, u32 queue) ...@@ -293,8 +293,8 @@ static bool queue_empty(struct visorchannel *channel, u32 queue)
} }
/** /**
* visorchannel_signalempty() - checks if the designated channel/queue * visorchannel_signalempty() - checks if the designated channel/queue contains
* contains any messages * any messages
* @channel: the channel to query * @channel: the channel to query
* @queue: the queue in the channel to query * @queue: the queue in the channel to query
* *
...@@ -343,8 +343,8 @@ static int signalinsert_inner(struct visorchannel *channel, u32 queue, ...@@ -343,8 +343,8 @@ static int signalinsert_inner(struct visorchannel *channel, u32 queue,
sig_hdr.num_sent++; sig_hdr.num_sent++;
/* /*
* For each data field in SIGNAL_QUEUE_HEADER that was modified, * For each data field in SIGNAL_QUEUE_HEADER that was modified, update
* update host memory. Required for channel sync. * host memory. Required for channel sync.
*/ */
mb(); mb();
...@@ -359,9 +359,9 @@ static int signalinsert_inner(struct visorchannel *channel, u32 queue, ...@@ -359,9 +359,9 @@ static int signalinsert_inner(struct visorchannel *channel, u32 queue,
} }
/* /*
* visorchannel_create_guts() - creates the struct visorchannel abstraction * visorchannel_create_guts() - creates the struct visorchannel abstraction for
* for a data area in memory, but does NOT modify * a data area in memory, but does NOT modify this
* this data area * data area
* @physaddr: physical address of start of channel * @physaddr: physical address of start of channel
* @gfp: gfp_t to use when allocating memory for the data struct * @gfp: gfp_t to use when allocating memory for the data struct
* @guid: GUID that identifies channel type; * @guid: GUID that identifies channel type;
...@@ -392,11 +392,10 @@ static struct visorchannel *visorchannel_create_guts(u64 physaddr, gfp_t gfp, ...@@ -392,11 +392,10 @@ static struct visorchannel *visorchannel_create_guts(u64 physaddr, gfp_t gfp,
spin_lock_init(&channel->remove_lock); spin_lock_init(&channel->remove_lock);
/* /*
* Video driver constains the efi framebuffer so it will get a * Video driver constains the efi framebuffer so it will get a conflict
* conflict resource when requesting its full mem region. Since * resource when requesting its full mem region. Since we are only
* we are only using the efi framebuffer for video we can ignore * using the efi framebuffer for video we can ignore this. Remember that
* this. Remember that we haven't requested it so we don't try to * we haven't requested it so we don't try to release later on.
* release later on.
*/ */
channel->requested = request_mem_region(physaddr, size, VISOR_DRV_NAME); channel->requested = request_mem_region(physaddr, size, VISOR_DRV_NAME);
if (!channel->requested && !guid_equal(guid, &visor_video_guid)) if (!channel->requested && !guid_equal(guid, &visor_video_guid))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment