summaryrefslogtreecommitdiff
path: root/drivers/staging/ks7010
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2018-05-13 20:35:54 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-14 14:07:07 +0200
commit9a1420e7a525f8602d84869b6983359799452320 (patch)
treedac38d719ff8d2c3cc7d8fccbad32ede511fdd1d /drivers/staging/ks7010
parentbcbd1f18417ff138e39f7169304fbdb64b64a30a (diff)
staging: ks7010: replace cast types in assignments in hostif_phy_information_request
There are some assignments inside hostif_phy_information_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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index b946f516b4ab..cf9e98f750a3 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1403,11 +1403,11 @@ void hostif_phy_information_request(struct ks_wlan_private *priv)
return;
if (priv->reg.phy_info_timer) {
- pp->type = cpu_to_le16((uint16_t)TIME_TYPE);
- pp->time = cpu_to_le16((uint16_t)(priv->reg.phy_info_timer));
+ pp->type = cpu_to_le16((u16)TIME_TYPE);
+ pp->time = cpu_to_le16((u16)(priv->reg.phy_info_timer));
} else {
- pp->type = cpu_to_le16((uint16_t)NORMAL_TYPE);
- pp->time = cpu_to_le16((uint16_t)0);
+ pp->type = cpu_to_le16((u16)NORMAL_TYPE);
+ pp->time = cpu_to_le16((u16)0);
}
send_request_to_device(priv, pp, hif_align_size(sizeof(*pp)));