staging: hv: Convert camel cased struct fields in ring_buffer.h to lower cases
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / hv / ring_buffer.h
index a7f1717c6a5659b49b9a7c2aa56bbbea97e1e30a..bb4c5bc484be8a655cf629099a8ac8ff2368f413 100644 (file)
 
 struct hv_ring_buffer {
        /* Offset in bytes from the start of ring data below */
-       volatile u32 WriteIndex;
+       volatile u32 write_index;
 
        /* Offset in bytes from the start of ring data below */
-       volatile u32 ReadIndex;
+       volatile u32 read_index;
 
-       volatile u32 InterruptMask;
+       volatile u32 interrupt_mask;
 
        /* Pad it to PAGE_SIZE so that data starts on page boundary */
-       u8      Reserved[4084];
+       u8      reserved[4084];
 
        /* NOTE:
-        * The InterruptMask field is used only for channels but since our
+        * The interrupt_mask field is used only for channels but since our
         * vmbus connection also uses this data structure and its data starts
         * here, we commented out this field.
         */
@@ -50,24 +50,24 @@ struct hv_ring_buffer {
         * Ring data starts here + RingDataStartOffset
         * !!! DO NOT place any fields below this !!!
         */
-       u8 Buffer[0];
+       u8 buffer[0];
 } __attribute__((packed));
 
 struct hv_ring_buffer_info {
-       struct hv_ring_buffer *RingBuffer;
-       u32 RingSize;                   /* Include the shared header */
+       struct hv_ring_buffer *ring_buffer;
+       u32 ring_size;                  /* Include the shared header */
        spinlock_t ring_lock;
 
-       u32 RingDataSize;               /* < ringSize */
-       u32 RingDataStartOffset;
+       u32 ring_datasize;              /* < ring_size */
+       u32 ring_data_startoffset;
 };
 
 struct hv_ring_buffer_debug_info {
-       u32 CurrentInterruptMask;
-       u32 CurrentReadIndex;
-       u32 CurrentWriteIndex;
-       u32 BytesAvailToRead;
-       u32 BytesAvailToWrite;
+       u32 current_interrupt_mask;
+       u32 current_read_index;
+       u32 current_write_index;
+       u32 bytes_avail_toread;
+       u32 bytes_avail_towrite;
 };