diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-05-13 20:35:39 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-14 14:07:06 +0200 |
commit | 83911837f892ecd5c77c5cdafab569ea018be641 (patch) | |
tree | cc4e8715b25ed3cdc9f8a1d4624dec9a315e5165 /drivers | |
parent | 62a37b72ced4f73d605c1a8654417c5f1625ce06 (diff) | |
download | linux-83911837f892ecd5c77c5cdafab569ea018be641.tar.bz2 |
staging: ks7010: change cast from uint16_t to u16
Header size and event fields of header are declared
as __le16 and being casted using uint16_t in cpu_to_le16.
Change cast to use preferred u16.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/ks7010/ks7010_sdio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index f56db0772b45..a51b5e8d1a56 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -1061,8 +1061,8 @@ static int send_stop_request(struct sdio_func *func) return -ENOMEM; size = sizeof(*pp) - sizeof(pp->header.size); - pp->header.size = cpu_to_le16((uint16_t)size); - pp->header.event = cpu_to_le16((uint16_t)HIF_STOP_REQ); + pp->header.size = cpu_to_le16((u16)size); + pp->header.event = cpu_to_le16((u16)HIF_STOP_REQ); sdio_claim_host(func); write_to_device(card->priv, (u8 *)pp, hif_align_size(sizeof(*pp))); |