rt2x00: Cleanup chip handling helper functions.
Let each of them take a struct rt2x00_dev pointer as argument instead of a mixture of struct rt2x00_chip and struct rt2x00_dev pointers. Preparation for further clean ups in the rt2x00 chip handling, especially for rt2800 devices. Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
73a2f1259e
commit
5122d89862
@@ -92,7 +92,7 @@ static bool rt2800usb_check_crc(const u8 *data, const size_t len)
|
||||
static int rt2800usb_check_firmware(struct rt2x00_dev *rt2x00dev,
|
||||
const u8 *data, const size_t len)
|
||||
{
|
||||
u16 chipset = (rt2x00_rev(&rt2x00dev->chip) >> 16) & 0xffff;
|
||||
u16 chipset = (rt2x00_rev(rt2x00dev) >> 16) & 0xffff;
|
||||
size_t offset = 0;
|
||||
|
||||
/*
|
||||
@@ -138,7 +138,7 @@ static int rt2800usb_load_firmware(struct rt2x00_dev *rt2x00dev,
|
||||
u32 reg;
|
||||
u32 offset;
|
||||
u32 length;
|
||||
u16 chipset = (rt2x00_rev(&rt2x00dev->chip) >> 16) & 0xffff;
|
||||
u16 chipset = (rt2x00_rev(rt2x00dev) >> 16) & 0xffff;
|
||||
|
||||
/*
|
||||
* Check which section of the firmware we need.
|
||||
|
Reference in New Issue
Block a user