Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 361b73d5 authored by Lai Jiangshan's avatar Lai Jiangshan Committed by Ingo Molnar
Browse files

ring_buffer: fix comments



Impact: comments cleanup

fix incorrect comments for enum ring_buffer_type

Signed-off-by: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 21bbecda
Loading
Loading
Loading
Loading
+6 −4
Original line number Original line Diff line number Diff line
@@ -29,16 +29,18 @@ struct ring_buffer_event {
 *
 *
 * @RINGBUF_TYPE_TIME_STAMP:	Sync time stamp with external clock
 * @RINGBUF_TYPE_TIME_STAMP:	Sync time stamp with external clock
 *				 array[0]    = tv_nsec
 *				 array[0]    = tv_nsec
 *				 array[1] = tv_sec
 *				 array[1..2] = tv_sec
 *				 size = 16 bytes
 *				 size = 16 bytes
 *
 *
 * @RINGBUF_TYPE_DATA:		Data record
 * @RINGBUF_TYPE_DATA:		Data record
 *				 If len is zero:
 *				 If len is zero:
 *				  array[0] holds the actual length
 *				  array[0] holds the actual length
 *				  array[1..(length+3)/4-1] holds data
 *				  array[1..(length+3)/4] holds data
 *				  size = 4 + 4 + length (bytes)
 *				 else
 *				 else
 *				  length = len << 2
 *				  length = len << 2
 *				  array[0..(length+3)/4] holds data
 *				  array[0..(length+3)/4-1] holds data
 *				  size = 4 + length (bytes)
 */
 */
enum ring_buffer_type {
enum ring_buffer_type {
	RINGBUF_TYPE_PADDING,
	RINGBUF_TYPE_PADDING,