summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/channel.c
diff options
context:
space:
mode:
authorMalcolm Priestley2015-01-19 19:24:11 +0100
committerGreg Kroah-Hartman2015-01-25 12:59:16 +0100
commit63e8d787b0bbfc9bfca6d7ecdeb6548e6baa6f9e (patch)
treea746ba4f7328bf2e25b0bed25c910b8c8fe00682 /drivers/staging/vt6655/channel.c
parentstaging: vt6655: set_channel replace parameter with ieee80211_channel (diff)
downloadkernel-qcow2-linux-63e8d787b0bbfc9bfca6d7ecdeb6548e6baa6f9e.tar.gz
kernel-qcow2-linux-63e8d787b0bbfc9bfca6d7ecdeb6548e6baa6f9e.tar.xz
kernel-qcow2-linux-63e8d787b0bbfc9bfca6d7ecdeb6548e6baa6f9e.zip
staging: vt6655: common variable size channel numbers to ieee80211_channel->hw_value
hw_value is u16 so fix all to the same size. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/channel.c')
-rw-r--r--drivers/staging/vt6655/channel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/vt6655/channel.c b/drivers/staging/vt6655/channel.c
index 3fc09f4b3842..3c17725d5910 100644
--- a/drivers/staging/vt6655/channel.c
+++ b/drivers/staging/vt6655/channel.c
@@ -197,11 +197,11 @@ bool set_channel(void *pDeviceHandler, struct ieee80211_channel *ch)
if (pDevice->byRFType == RF_AIROHA7230)
RFbAL7230SelectChannelPostProcess(pDevice, pDevice->byCurrentCh,
- (unsigned char)ch->hw_value);
+ ch->hw_value);
- pDevice->byCurrentCh = (unsigned char)ch->hw_value;
+ pDevice->byCurrentCh = ch->hw_value;
bResult &= RFbSelectChannel(pDevice, pDevice->byRFType,
- (unsigned char)ch->hw_value);
+ ch->hw_value);
/* Init Synthesizer Table */
if (pDevice->bEnablePSMode)