aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ks7010
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2018-05-13 20:35:50 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-14 14:07:06 +0200
commit22bef066492536570c9a1156110df59ef42fbec9 (patch)
tree585070bc5c126955e18a99f68c74e3d60baec991 /drivers/staging/ks7010
parentstaging: ks7010: use u16 as cast type in hostif_start_request (diff)
downloadlinux-dev-22bef066492536570c9a1156110df59ef42fbec9.tar.xz
linux-dev-22bef066492536570c9a1156110df59ef42fbec9.zip
staging: ks7010: replace casts to use type u16 in init_request
There are soem assignments inside init_request function which are being used together with cpu_to_le16 using uint16_t as cast type. Replace all of them to use 'u16' instead. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010')
-rw-r--r--drivers/staging/ks7010/ks_hostif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index ee8dcb3cb342..2681e2e57204 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1281,9 +1281,9 @@ static __le16 ks_wlan_cap(struct ks_wlan_private *priv)
static void init_request(struct ks_wlan_private *priv,
struct hostif_request *req)
{
- req->phy_type = cpu_to_le16((uint16_t)(priv->reg.phy_type));
- req->cts_mode = cpu_to_le16((uint16_t)(priv->reg.cts_mode));
- req->scan_type = cpu_to_le16((uint16_t)(priv->reg.scan_type));
+ req->phy_type = cpu_to_le16((u16)(priv->reg.phy_type));
+ req->cts_mode = cpu_to_le16((u16)(priv->reg.cts_mode));
+ req->scan_type = cpu_to_le16((u16)(priv->reg.scan_type));
req->rate_set.size = priv->reg.rate_set.size;
req->capability = ks_wlan_cap(priv);
memcpy(&req->rate_set.body[0], &priv->reg.rate_set.body[0],