[PATCH 2/3] staging: nokia_h4: avoid __uX types

From: Pavel Machek
Date: Sun Aug 10 2014 - 03:31:21 EST



__u8/16 types should not be neccessary inside kernel, u8/16 should
be enough.

Signed-off-by: Pavel Machek <pavel@xxxxxx>

diff --git a/drivers/staging/nokia_h4p/hci_h4p.h b/drivers/staging/nokia_h4p/hci_h4p.h
index 76eaaaa..b91e8b3 100644
--- a/drivers/staging/nokia_h4p/hci_h4p.h
+++ b/drivers/staging/nokia_h4p/hci_h4p.h
@@ -100,12 +100,12 @@ struct hci_h4p_info {
};

struct hci_h4p_radio_hdr {
- __u8 evt;
- __u8 dlen;
+ u8 evt;
+ u8 dlen;
} __packed;

struct hci_h4p_neg_hdr {
- __u8 dlen;
+ u8 dlen;
} __packed;
#define H4P_NEG_HDR_SIZE 1

@@ -121,36 +121,36 @@ struct hci_h4p_neg_hdr {
#define H4P_ID_TI1271 0x31

struct hci_h4p_neg_cmd {
- __u8 ack;
- __u16 baud;
- __u16 unused1;
- __u8 proto;
- __u16 sys_clk;
- __u16 unused2;
+ u8 ack;
+ u16 baud;
+ u16 unused1;
+ u8 proto;
+ u16 sys_clk;
+ u16 unused2;
} __packed;

struct hci_h4p_neg_evt {
- __u8 ack;
- __u16 baud;
- __u16 unused1;
- __u8 proto;
- __u16 sys_clk;
- __u16 unused2;
- __u8 man_id;
- __u8 ver_id;
+ u8 ack;
+ u16 baud;
+ u16 unused1;
+ u8 proto;
+ u16 sys_clk;
+ u16 unused2;
+ u8 man_id;
+ u8 ver_id;
} __packed;

#define H4P_ALIVE_REQ 0x55
#define H4P_ALIVE_RESP 0xcc

struct hci_h4p_alive_hdr {
- __u8 dlen;
+ u8 dlen;
} __packed;
#define H4P_ALIVE_HDR_SIZE 1

struct hci_h4p_alive_pkt {
- __u8 mid;
- __u8 unused;
+ u8 mid;
+ u8 unused;
} __packed;

#define MAX_BAUD_RATE 921600

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/