staging: wilc1000: use helper API to pack data for firmware
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 6 Aug 2019 10:33:49 +0000 (10:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Aug 2019 16:59:18 +0000 (18:59 +0200)
commitb0d525a007b9c954bd2f777174a378eb76cb89e2
tree2c939af94f7c6a95306f1a246341a9472ac92478
parent36d042bd6865ada4fc5b14e2cb5fd325eeb248db
staging: wilc1000: use helper API to pack data for firmware

As discussed in [1] use put_unaligned_le16() & put_unaligned_le32()
helper to pack the data before sending to firmware.

[1]. https://lore.kernel.org/linux-wireless/86bc79ccd379497d56bade79ec8f717603110ef7.camel@sipsolutions.net/

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20190806103325.14063-1-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan_cfg.c