Commit 49705f9a authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: ks7010: use u8 instead of unsigned char in write_to_device function

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: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a98ebb8f
...@@ -318,7 +318,7 @@ static int enqueue_txdev(struct ks_wlan_private *priv, unsigned char *p, ...@@ -318,7 +318,7 @@ static int enqueue_txdev(struct ks_wlan_private *priv, unsigned char *p,
} }
/* write data */ /* 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) unsigned long size)
{ {
struct hostif_hdr *hdr; struct hostif_hdr *hdr;
...@@ -1071,8 +1071,7 @@ static int send_stop_request(struct sdio_func *func) ...@@ -1071,8 +1071,7 @@ static int send_stop_request(struct sdio_func *func)
pp->header.event = cpu_to_le16((uint16_t)HIF_STOP_REQ); pp->header.event = cpu_to_le16((uint16_t)HIF_STOP_REQ);
sdio_claim_host(func); sdio_claim_host(func);
write_to_device(card->priv, (unsigned char *)pp, write_to_device(card->priv, (u8 *)pp, hif_align_size(sizeof(*pp)));
hif_align_size(sizeof(*pp)));
sdio_release_host(func); sdio_release_host(func);
kfree(pp); kfree(pp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment