summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-09-12 15:45:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-09-17 09:50:41 +0200
commit51c2a0a8d4513b8ea3b852dfc7915098265f370e (patch)
tree878934d62bb3e1760101431823b642895dd7b406 /common
parent1743f3716b1ef1b0304ff2bb933716586d2c9a68 (diff)
downloadbarebox-51c2a0a8d4513b8ea3b852dfc7915098265f370e.tar.gz
barebox-51c2a0a8d4513b8ea3b852dfc7915098265f370e.tar.xz
ratp: use __packed instead of the full form
Just a minor coding style change to follow the suggestions given in patch reviews for other RATP commands. Signed-off-by: Aleksander Morgado <aleksander@aleksander.es> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/ratp/md.c4
-rw-r--r--common/ratp/mw.c4
-rw-r--r--common/ratp/reset.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/common/ratp/md.c b/common/ratp/md.c
index 9b8fc2bc50..5b877947c9 100644
--- a/common/ratp/md.c
+++ b/common/ratp/md.c
@@ -46,7 +46,7 @@ struct ratp_bb_md_request {
uint16_t path_size;
uint16_t path_offset;
uint8_t buffer[];
-} __attribute__((packed));
+} __packed;
struct ratp_bb_md_response {
struct ratp_bb header;
@@ -55,7 +55,7 @@ struct ratp_bb_md_response {
uint16_t data_size;
uint16_t data_offset;
uint8_t buffer[];
-} __attribute__((packed));
+} __packed;
extern char *mem_rw_buf;
diff --git a/common/ratp/mw.c b/common/ratp/mw.c
index 7d6df3d0a0..3234d7dacb 100644
--- a/common/ratp/mw.c
+++ b/common/ratp/mw.c
@@ -47,7 +47,7 @@ struct ratp_bb_mw_request {
uint16_t data_size;
uint16_t data_offset;
uint8_t buffer[];
-} __attribute__((packed));
+} __packed;
struct ratp_bb_mw_response {
struct ratp_bb header;
@@ -55,7 +55,7 @@ struct ratp_bb_mw_response {
uint32_t errno;
uint16_t written;
uint8_t buffer[];
-} __attribute__((packed));
+} __packed;
static int ratp_cmd_mw(const struct ratp_bb *req, int req_len,
struct ratp_bb **rsp, int *rsp_len)
diff --git a/common/ratp/reset.c b/common/ratp/reset.c
index ca8be4e62f..60b6ff536a 100644
--- a/common/ratp/reset.c
+++ b/common/ratp/reset.c
@@ -27,7 +27,7 @@
struct ratp_bb_reset {
struct ratp_bb header;
uint8_t force;
-} __attribute__((packed));
+} __packed;
static int ratp_cmd_reset(const struct ratp_bb *req, int req_len,
struct ratp_bb **rsp, int *rsp_len)