Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: ti-st: set right the data types

replace uint and family by a much more proper u8/u16 types.
This is required specifically for data members of structures coming
in from the chip and data members parsed from the binary firmware file.

Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Pavan Savoy and committed by
Greg Kroah-Hartman
5d702ea3 9b906a33

+21 -21
+3 -3
drivers/staging/ti-st/fm.h
··· 1 1 struct fm_event_hdr { 2 - unsigned char plen; 2 + u8 plen; 3 3 } __attribute__ ((packed)); 4 4 5 5 #define FM_MAX_FRAME_SIZE 0xFF /* TODO: */ ··· 8 8 9 9 /* gps stuff */ 10 10 struct gps_event_hdr { 11 - unsigned char opcode; 12 - unsigned short plen; 11 + u8 opcode; 12 + u16 plen; 13 13 } __attribute__ ((packed));
+18 -18
drivers/staging/ti-st/st_kim.h
··· 128 128 * relevant procedure to be called. 129 129 */ 130 130 struct bts_header { 131 - uint32_t magic; 132 - uint32_t version; 133 - uint8_t future[24]; 134 - uint8_t actions[0]; 131 + u32 magic; 132 + u32 version; 133 + u8 future[24]; 134 + u8 actions[0]; 135 135 } __attribute__ ((packed)); 136 136 137 137 /** ··· 139 139 * data. 140 140 */ 141 141 struct bts_action { 142 - uint16_t type; 143 - uint16_t size; 144 - uint8_t data[0]; 142 + u16 type; 143 + u16 size; 144 + u8 data[0]; 145 145 } __attribute__ ((packed)); 146 146 147 147 struct bts_action_send { 148 - uint8_t data[0]; 148 + u8 data[0]; 149 149 } __attribute__ ((packed)); 150 150 151 151 struct bts_action_wait { 152 - uint32_t msec; 153 - uint32_t size; 154 - uint8_t data[0]; 152 + u32 msec; 153 + u32 size; 154 + u8 data[0]; 155 155 } __attribute__ ((packed)); 156 156 157 157 struct bts_action_delay { 158 - uint32_t msec; 158 + u32 msec; 159 159 } __attribute__ ((packed)); 160 160 161 161 struct bts_action_serial { 162 - uint32_t baud; 163 - uint32_t flow_control; 162 + u32 baud; 163 + u32 flow_control; 164 164 } __attribute__ ((packed)); 165 165 166 166 /** ··· 170 170 * when it receives request from KIM for ldisc installation. 171 171 */ 172 172 struct hci_command { 173 - uint8_t prefix; 174 - uint16_t opcode; 175 - uint8_t plen; 176 - uint32_t speed; 173 + u8 prefix; 174 + u16 opcode; 175 + u8 plen; 176 + u32 speed; 177 177 } __attribute__ ((packed)); 178 178 179 179