Add tabs to make struct members easier to read and unify the style of the code. Link: https://lkml.kernel.org/r/20230328235219.203-13-beaub@linux.microsoft.com
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -25,25 +25,25 @@ · 24 unmodified lines | ||
| 25 | 25 | struct user_reg { |
| 26 | 26 | |
| 27 | 27 | /* Input: Size of the user_reg structure being used */ |
| 28 | − __u32 size; | |
| 28 | + __u32 size; | |
| 29 | 29 | |
| 30 | 30 | /* Input: Bit in enable address to use */ |
| 31 | − __u8 enable_bit; | |
| 31 | + __u8 enable_bit; | |
| 32 | 32 | |
| 33 | 33 | /* Input: Enable size in bytes at address */ |
| 34 | − __u8 enable_size; | |
| 34 | + __u8 enable_size; | |
| 35 | 35 | |
| 36 | 36 | /* Input: Flags for future use, set to 0 */ |
| 37 | − __u16 flags; | |
| 37 | + __u16 flags; | |
| 38 | 38 | |
| 39 | 39 | /* Input: Address to update when enabled */ |
| 40 | − __u64 enable_addr; | |
| 40 | + __u64 enable_addr; | |
| 41 | 41 | |
| 42 | 42 | /* Input: Pointer to string with event name, description and flags */ |
| 43 | − __u64 name_args; | |
| 43 | + __u64 name_args; | |
| 44 | 44 | |
| 45 | 45 | /* Output: Index of the event to use when writing data */ |
| 46 | − __u32 write_index; | |
| 46 | + __u32 write_index; | |
| 47 | 47 | } __attribute__((__packed__)); |
| 48 | 48 | |
| 49 | 49 | /* |
| @@ -52,19 +52,19 @@ struct user_reg { · 2 unmodified lines | ||
| 52 | 52 | */ |
| 53 | 53 | struct user_unreg { |
| 54 | 54 | /* Input: Size of the user_unreg structure being used */ |
| 55 | − __u32 size; | |
| 55 | + __u32 size; | |
| 56 | 56 | |
| 57 | 57 | /* Input: Bit to unregister */ |
| 58 | − __u8 disable_bit; | |
| 58 | + __u8 disable_bit; | |
| 59 | 59 | |
| 60 | 60 | /* Input: Reserved, set to 0 */ |
| 61 | − __u8 __reserved; | |
| 61 | + __u8 __reserved; | |
| 62 | 62 | |
| 63 | 63 | /* Input: Reserved, set to 0 */ |
| 64 | − __u16 __reserved2; | |
| 64 | + __u16 __reserved2; | |
| 65 | 65 | |
| 66 | 66 | /* Input: Address to unregister */ |
| 67 | − __u64 disable_addr; | |
| 67 | + __u64 disable_addr; | |
| 68 | 68 | } __attribute__((__packed__)); |
| 69 | 69 | |
| 70 | 70 | #define DIAG_IOC_MAGIC '*' |