summaryrefslogtreecommitdiff
path: root/drivers/staging/gdm72xx/gdm_sdio.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2014-06-30 23:32:27 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-09 11:49:16 -0700
commita8a175d9fc2ddb513baf5f043c1e9de512f886f7 (patch)
tree6ad60b4b0527226717ed8090fea1444c719eded9 /drivers/staging/gdm72xx/gdm_sdio.c
parentbbd500d8cdb071e7964fc07ab988817d719e1578 (diff)
staging: gdm72xx: clean up endianness conversions
This patch cleans up the endianness conversions in the gdm72xx driver: - Directly use the generic byte-reordering macros for endianness conversion instead of some custom-defined macros. - Convert values on the constant side instead of the variable side when appropriate. - Add endianness annotations. Signed-off-by: Ben Chan <benchan@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gdm72xx/gdm_sdio.c')
-rw-r--r--drivers/staging/gdm72xx/gdm_sdio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/gdm72xx/gdm_sdio.c b/drivers/staging/gdm72xx/gdm_sdio.c
index 9d2de6ff7903..a9031738588f 100644
--- a/drivers/staging/gdm72xx/gdm_sdio.c
+++ b/drivers/staging/gdm72xx/gdm_sdio.c
@@ -275,8 +275,9 @@ static void send_sdu(struct sdio_func *func, struct tx_cxt *tx)
aggr_len = pos;
hci = (struct hci_s *)(tx->sdu_buf + TYPE_A_HEADER_SIZE);
- hci->cmd_evt = H2B(WIMAX_TX_SDU_AGGR);
- hci->length = H2B(aggr_len - TYPE_A_HEADER_SIZE - HCI_HEADER_SIZE);
+ hci->cmd_evt = cpu_to_be16(WIMAX_TX_SDU_AGGR);
+ hci->length = cpu_to_be16(aggr_len - TYPE_A_HEADER_SIZE -
+ HCI_HEADER_SIZE);
spin_unlock_irqrestore(&tx->lock, flags);