Commit 9a1420e7 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

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: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bcbd1f18
......@@ -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)));
......
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