]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: ks7010: change cast from uint16_t to u16
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 13 May 2018 18:35:39 +0000 (20:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 12:07:06 +0000 (14:07 +0200)
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>
drivers/staging/ks7010/ks7010_sdio.c

index f56db0772b454a2f93bfbdd627d65bdb43106a5f..a51b5e8d1a56840648f9de6a6b6c4234d68aea8e 100644 (file)
@@ -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)));