diff options
| author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-05-04 06:16:10 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-06 18:58:37 -0700 |
| commit | 49705f9a0ddd5bc4b694fae9bcfe03a2c0eb9cdd (patch) | |
| tree | 4d4b29e856c5ac4f9eb7af141766186413d7918c /drivers | |
| parent | a98ebb8f8b1dbc194a60b81d849a2bb939980fbb (diff) | |
| download | linux-49705f9a0ddd5bc4b694fae9bcfe03a2c0eb9cdd.tar.bz2 | |
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: 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 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index 078f37e7ac4e..71e12d62feeb 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -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); |