staging: ks7010: use u8 instead of unsigned char in write_to_device function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 4 May 2018 04:16:10 +0000 (06:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 01:58:37 +0000 (18:58 -0700)
Parameter buffer in write_to_device function is declared as
a pointer to unsigned char and can be declared as an u8 type
which is preferred. Internally it calls to ks7010_sdio_write
which is using also u8 as parameter type. Update calls to this
function as well.

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 078f37e7ac4ea7b27499f889c402bd333f12a623..71e12d62feebe4b95e12aec005c229b26f0b9170 100644 (file)
@@ -318,7 +318,7 @@ err_complete:
 }
 
 /* write data */
-static int write_to_device(struct ks_wlan_private *priv, unsigned char *buffer,
+static int write_to_device(struct ks_wlan_private *priv, u8 *buffer,
                           unsigned long size)
 {
        struct hostif_hdr *hdr;
@@ -1071,8 +1071,7 @@ static int send_stop_request(struct sdio_func *func)
        pp->header.event = cpu_to_le16((uint16_t)HIF_STOP_REQ);
 
        sdio_claim_host(func);
-       write_to_device(card->priv, (unsigned char *)pp,
-                       hif_align_size(sizeof(*pp)));
+       write_to_device(card->priv, (u8 *)pp, hif_align_size(sizeof(*pp)));
        sdio_release_host(func);
 
        kfree(pp);