Commit 5d702ea3 authored by Pavan Savoy's avatar Pavan Savoy Committed by Greg Kroah-Hartman

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: default avatarPavan Savoy <pavan_savoy@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9b906a33
struct fm_event_hdr { struct fm_event_hdr {
unsigned char plen; u8 plen;
} __attribute__ ((packed)); } __attribute__ ((packed));
#define FM_MAX_FRAME_SIZE 0xFF /* TODO: */ #define FM_MAX_FRAME_SIZE 0xFF /* TODO: */
...@@ -8,6 +8,6 @@ struct fm_event_hdr { ...@@ -8,6 +8,6 @@ struct fm_event_hdr {
/* gps stuff */ /* gps stuff */
struct gps_event_hdr { struct gps_event_hdr {
unsigned char opcode; u8 opcode;
unsigned short plen; u16 plen;
} __attribute__ ((packed)); } __attribute__ ((packed));
...@@ -128,10 +128,10 @@ void kim_st_list_protocols(struct st_data_s *, void *); ...@@ -128,10 +128,10 @@ void kim_st_list_protocols(struct st_data_s *, void *);
* relevant procedure to be called. * relevant procedure to be called.
*/ */
struct bts_header { struct bts_header {
uint32_t magic; u32 magic;
uint32_t version; u32 version;
uint8_t future[24]; u8 future[24];
uint8_t actions[0]; u8 actions[0];
} __attribute__ ((packed)); } __attribute__ ((packed));
/** /**
...@@ -139,28 +139,28 @@ struct bts_header { ...@@ -139,28 +139,28 @@ struct bts_header {
* data. * data.
*/ */
struct bts_action { struct bts_action {
uint16_t type; u16 type;
uint16_t size; u16 size;
uint8_t data[0]; u8 data[0];
} __attribute__ ((packed)); } __attribute__ ((packed));
struct bts_action_send { struct bts_action_send {
uint8_t data[0]; u8 data[0];
} __attribute__ ((packed)); } __attribute__ ((packed));
struct bts_action_wait { struct bts_action_wait {
uint32_t msec; u32 msec;
uint32_t size; u32 size;
uint8_t data[0]; u8 data[0];
} __attribute__ ((packed)); } __attribute__ ((packed));
struct bts_action_delay { struct bts_action_delay {
uint32_t msec; u32 msec;
} __attribute__ ((packed)); } __attribute__ ((packed));
struct bts_action_serial { struct bts_action_serial {
uint32_t baud; u32 baud;
uint32_t flow_control; u32 flow_control;
} __attribute__ ((packed)); } __attribute__ ((packed));
/** /**
...@@ -170,10 +170,10 @@ struct bts_action_serial { ...@@ -170,10 +170,10 @@ struct bts_action_serial {
* when it receives request from KIM for ldisc installation. * when it receives request from KIM for ldisc installation.
*/ */
struct hci_command { struct hci_command {
uint8_t prefix; u8 prefix;
uint16_t opcode; u16 opcode;
uint8_t plen; u8 plen;
uint32_t speed; u32 speed;
} __attribute__ ((packed)); } __attribute__ ((packed));
......
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