firefly-linux-kernel-4.4.55.git
10 years agostaging: gdm72xx: Fix some camel-case variables
Michalis Pappas [Fri, 9 May 2014 10:08:24 +0000 (18:08 +0800)]
staging: gdm72xx: Fix some camel-case variables

Fixes the following checkpatch.pl issue:

CHECK: Avoid CamelCase:

Signed-off-by: Michalis Pappas <mpappas@fastmail.fm>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: gdm72xx: Move logical continuation to previous line to conform to coding...
Michalis Pappas [Fri, 9 May 2014 10:08:23 +0000 (18:08 +0800)]
staging: gdm72xx: Move logical continuation to previous line to conform to coding style

Fixes the following checkpatch.pl issue:

CHECK: Logical continuations should be on the previous line

Signed-off-by: Michalis Pappas <mpappas@fastmail.fm>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: gdm72xx: Modify a struct allocation to match coding standards
Michalis Pappas [Fri, 9 May 2014 10:08:22 +0000 (18:08 +0800)]
staging: gdm72xx: Modify a struct allocation to match coding standards

Fixes the following checkpatch.pl issue:

CHECK: Prefer kmalloc(sizeof(*entry)...) over kmalloc(sizeof(struct qos_entry_s)...)

Signed-off-by: Michalis Pappas <mpappas@fastmail.fm>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: gdm72xx: Replace comparisons on jiffies values with wrap-safe functions
Michalis Pappas [Fri, 9 May 2014 10:08:21 +0000 (18:08 +0800)]
staging: gdm72xx: Replace comparisons on jiffies values with wrap-safe functions

Fixes the following checkpatch.pl issue:

WARNING: Comparing jiffies is almost always wrong; prefer time_after,
time_before and friends

Signed-off-by: Michalis Pappas <mpappas@fastmail.fm>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: gdm72xx: Remove unnecessary extern declarations from header files
Michalis Pappas [Fri, 9 May 2014 10:08:20 +0000 (18:08 +0800)]
staging: gdm72xx: Remove unnecessary extern declarations from header files

Fixes the following checkpatch.pl issue:

CHECK: extern prototypes should be avoided in .h files

Signed-off-by: Michalis Pappas <mpappas@fastmail.fm>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove some unused ODM dynamic TX power functionality
Jes Sorensen [Fri, 16 May 2014 08:05:13 +0000 (10:05 +0200)]
staging: rtl8723au: Remove some unused ODM dynamic TX power functionality

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: The DBG_IO code is all gone
Jes Sorensen [Fri, 16 May 2014 08:05:12 +0000 (10:05 +0200)]
staging: rtl8723au: The DBG_IO code is all gone

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove some leftover obsolete prototypes
Jes Sorensen [Fri, 16 May 2014 08:05:11 +0000 (10:05 +0200)]
staging: rtl8723au: Remove some leftover obsolete prototypes

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Name port vs register access functions consistently
Jes Sorensen [Fri, 16 May 2014 08:05:10 +0000 (10:05 +0200)]
staging: rtl8723au: Name port vs register access functions consistently

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Call usb_write*() functions directly
Jes Sorensen [Fri, 16 May 2014 08:05:09 +0000 (10:05 +0200)]
staging: rtl8723au: Call usb_write*() functions directly

This allows us to finally remove the ugly HAL interface for accessing
registers, and remove rtw_io.c

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Call usb_read*() functions directly
Jes Sorensen [Fri, 16 May 2014 08:05:08 +0000 (10:05 +0200)]
staging: rtl8723au: Call usb_read*() functions directly

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Call usb_read_interrupt() directly instead of via HAL layer
Jes Sorensen [Fri, 16 May 2014 08:05:07 +0000 (10:05 +0200)]
staging: rtl8723au: Call usb_read_interrupt() directly instead of via HAL layer

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Call usb_{read,write}_port() functions directly
Jes Sorensen [Fri, 16 May 2014 08:05:06 +0000 (10:05 +0200)]
staging: rtl8723au: Call usb_{read,write}_port() functions directly

Get rid of more HAL layer obfuscations

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Clean up usb_{read,write}_port() usage
Jes Sorensen [Fri, 16 May 2014 08:05:05 +0000 (10:05 +0200)]
staging: rtl8723au: Clean up usb_{read,write}_port() usage

Get rid of silly HAL convolution for calling usb_{read,write}_port()
functions.

Benefit from fact we just have one input address for read_port, so no
point storing this and carrying it around.

Pick pipe in the local function instead of based on dst/src address.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Use correct pipe type for USB interrupts
Jes Sorensen [Fri, 16 May 2014 08:05:04 +0000 (10:05 +0200)]
staging: rtl8723au: Use correct pipe type for USB interrupts

Use a correct pipe type when filling un interrupt urbs. This should
finally take care of the WARN() messages on the console when USB urbs
are submitted.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Clean up mess of parenthesis abuse
Jes Sorensen [Fri, 16 May 2014 08:05:03 +0000 (10:05 +0200)]
staging: rtl8723au: Clean up mess of parenthesis abuse

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: usb_ops_linux.h: Remove some unused #defines
Jes Sorensen [Fri, 16 May 2014 08:05:02 +0000 (10:05 +0200)]
staging: rtl8723au: usb_ops_linux.h: Remove some unused #defines

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove nasty wrappers used to hide wrong function types
Jes Sorensen [Fri, 16 May 2014 08:05:01 +0000 (10:05 +0200)]
staging: rtl8723au: Remove nasty wrappers used to hide wrong function types

Do not use #defines to hack around pre-history functions not matching
current APIs

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused USB bulk related macros and variables
Jes Sorensen [Fri, 16 May 2014 08:05:00 +0000 (10:05 +0200)]
staging: rtl8723au: Remove unused USB bulk related macros and variables

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Don't wrap calls to usb_control_msg()
Jes Sorensen [Fri, 16 May 2014 08:04:59 +0000 (10:04 +0200)]
staging: rtl8723au: Don't wrap calls to usb_control_msg()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Call usb_intf_{start,stop} directly
Jes Sorensen [Fri, 16 May 2014 08:04:58 +0000 (10:04 +0200)]
staging: rtl8723au: Call usb_intf_{start,stop} directly

Rip out multiple layer of useless wrappers

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Call rtl8723au_set_hw_type() directly
Jes Sorensen [Fri, 16 May 2014 08:04:57 +0000 (10:04 +0200)]
staging: rtl8723au: Call rtl8723au_set_hw_type() directly

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused usb_suspend_sema
Jes Sorensen [Fri, 16 May 2014 08:04:56 +0000 (10:04 +0200)]
staging: rtl8723au: Remove unused usb_suspend_sema

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Move last utility function from osdep_service.c to os_intfs.c
Jes Sorensen [Fri, 16 May 2014 08:04:55 +0000 (10:04 +0200)]
staging: rtl8723au: Move last utility function from osdep_service.c to os_intfs.c

No point carrying a dedicated file just for this small helper, so move
it to os_intfs.c and get rid of osdep_service.c

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: os_intfs.c: Various cosmetic cleanups
Jes Sorensen [Fri, 16 May 2014 08:04:54 +0000 (10:04 +0200)]
staging: rtl8723au: os_intfs.c: Various cosmetic cleanups

In addition skb->priorty is a u32, so make rtw_classify8021d return a
u32 to match.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: os_dep/usb_ops_linux.c: More bad parenthesis cleanup
Jes Sorensen [Fri, 16 May 2014 08:04:53 +0000 (10:04 +0200)]
staging: rtl8723au: os_dep/usb_ops_linux.c: More bad parenthesis cleanup

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: hal/usb_ops_linux.c: Various cleanups
Jes Sorensen [Fri, 16 May 2014 08:04:52 +0000 (10:04 +0200)]
staging: rtl8723au: hal/usb_ops_linux.c: Various cleanups

Reduce excessive parenthesis usage, remove unnecessary null
initialization of variables, and some bad formatting.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: odm_precomp.h: Remove unused #define TEST_FALG__
Jes Sorensen [Fri, 16 May 2014 08:04:51 +0000 (10:04 +0200)]
staging: rtl8723au: odm_precomp.h: Remove unused #define TEST_FALG__

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: hal_com.c: Fix one case of returning status in an s32
Jes Sorensen [Fri, 16 May 2014 08:04:50 +0000 (10:04 +0200)]
staging: rtl8723au: hal_com.c: Fix one case of returning status in an s32

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtl8723a_cmd.c: Fix up bad return types
Jes Sorensen [Fri, 16 May 2014 08:04:49 +0000 (10:04 +0200)]
staging: rtl8723au: rtl8723a_cmd.c: Fix up bad return types

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtl8723a_hal_init.c: Fix more messy return type abuse
Jes Sorensen [Fri, 16 May 2014 08:04:48 +0000 (10:04 +0200)]
staging: rtl8723au: rtl8723a_hal_init.c: Fix more messy return type abuse

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtl8723a_phycfg.c: Use int for error return codes
Jes Sorensen [Fri, 16 May 2014 08:04:47 +0000 (10:04 +0200)]
staging: rtl8723au: rtl8723a_phycfg.c: Use int for error return codes

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtl8723au_xmit.c: Fixup messy return type usage
Jes Sorensen [Fri, 16 May 2014 08:04:46 +0000 (10:04 +0200)]
staging: rtl8723au: rtl8723au_xmit.c: Fixup messy return type usage

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtl8723au_xmit_tasklet(): Remove unnecessary variable init
Jes Sorensen [Fri, 16 May 2014 08:04:45 +0000 (10:04 +0200)]
staging: rtl8723au: rtl8723au_xmit_tasklet(): Remove unnecessary variable init

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: usb_halinit.c: Another u8 error code case
Jes Sorensen [Fri, 16 May 2014 08:04:44 +0000 (10:04 +0200)]
staging: rtl8723au: usb_halinit.c: Another u8 error code case

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: usb_intf.c: Fixup yet another round of u8 abuse for error type
Jes Sorensen [Fri, 16 May 2014 08:04:43 +0000 (10:04 +0200)]
staging: rtl8723au: usb_intf.c: Fixup yet another round of u8 abuse for error type

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: os_intfs.c: Fixup more u8/uint abuse for error return codes
Jes Sorensen [Fri, 16 May 2014 08:04:42 +0000 (10:04 +0200)]
staging: rtl8723au: os_intfs.c: Fixup more u8/uint abuse for error return codes

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8732au: ioctl_cfg80211.c: Fix another case of u8 abuse for error return
Jes Sorensen [Fri, 16 May 2014 08:04:41 +0000 (10:04 +0200)]
staging: rtl8732au: ioctl_cfg80211.c: Fix another case of u8 abuse for error return

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_xmit.c: Be consistent in using int for error return type
Jes Sorensen [Fri, 16 May 2014 08:04:40 +0000 (10:04 +0200)]
staging: rtl8723au: rtw_xmit.c: Be consistent in using int for error return type

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_wlan_util.c: Fix up random mixing of bool vs int
Jes Sorensen [Fri, 16 May 2014 08:04:39 +0000 (10:04 +0200)]
staging: rtl8723au: rtw_wlan_util.c: Fix up random mixing of bool vs int

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_sta_mgt.c: Clean up messy usage of return types
Jes Sorensen [Fri, 16 May 2014 08:04:38 +0000 (10:04 +0200)]
staging: rtl8723au: rtw_sta_mgt.c: Clean up messy usage of return types

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_security.c: Clean up mess of error return code types
Jes Sorensen [Fri, 16 May 2014 08:04:37 +0000 (10:04 +0200)]
staging: rtl8723au: rtw_security.c: Clean up mess of error return code types

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: decryptor() use int to store error codes
Jes Sorensen [Fri, 16 May 2014 08:04:36 +0000 (10:04 +0200)]
staging: rtl8723au: decryptor() use int to store error codes

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Don't return true/false in unsigned int
Jes Sorensen [Fri, 16 May 2014 08:04:35 +0000 (10:04 +0200)]
staging: rtl8723au: Don't return true/false in unsigned int

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_mlme_ext.c: Use int to return error codes
Jes Sorensen [Fri, 16 May 2014 08:04:34 +0000 (10:04 +0200)]
staging: rtl8723au: rtw_mlme_ext.c: Use int to return error codes

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_ioctl_set.c: Fix up messy error code handling
Jes Sorensen [Fri, 16 May 2014 08:04:33 +0000 (10:04 +0200)]
staging: rtl8723au: rtw_ioctl_set.c: Fix up messy error code handling

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused usb_read_mem/usb_write_mem stubs
Jes Sorensen [Fri, 16 May 2014 08:04:32 +0000 (10:04 +0200)]
staging: rtl8723au: Remove unused usb_read_mem/usb_write_mem stubs

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Clean up error codes in IO functions
Jes Sorensen [Fri, 16 May 2014 08:04:31 +0000 (10:04 +0200)]
staging: rtl8723au: Clean up error codes in IO functions

This also fixes up another messy case assuming _FAIL == false and
true == _SUCCESS

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused rtw_is_wps_ie23a()
Jes Sorensen [Fri, 16 May 2014 08:04:30 +0000 (10:04 +0200)]
staging: rtl8723au: Remove unused rtw_is_wps_ie23a()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Clean up error code mess in rtw_efuse.c
Jes Sorensen [Fri, 16 May 2014 08:04:29 +0000 (10:04 +0200)]
staging: rtl8723au: Clean up error code mess in rtw_efuse.c

Use int to return error codes, and avoid mixing and matching
true/false with _FAIL/_SUCCESS at random.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Make cmd and event handlers return int instead of u8
Jes Sorensen [Fri, 16 May 2014 08:04:28 +0000 (10:04 +0200)]
staging: rtl8723au: Make cmd and event handlers return int instead of u8

This is needed so we can eventually start passing around proper error
codes instead of the custom RTW ones.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused mp_custom_oid.h
Jes Sorensen [Fri, 16 May 2014 08:04:27 +0000 (10:04 +0200)]
staging: rtl8723au: Remove unused mp_custom_oid.h

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: usb_vendor_req.h isn't used - remove it
Jes Sorensen [Fri, 16 May 2014 08:04:26 +0000 (10:04 +0200)]
staging: rtl8723au: usb_vendor_req.h isn't used - remove it

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: usb_osintf.h isn't used for anything - get rid of it
Jes Sorensen [Fri, 16 May 2014 08:04:25 +0000 (10:04 +0200)]
staging: rtl8723au: usb_osintf.h isn't used for anything - get rid of it

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Get rid of rtl8723au_set_hal_ops() and get rid of hal_ops.h
Jes Sorensen [Fri, 16 May 2014 08:04:24 +0000 (10:04 +0200)]
staging: rtl8723au: Get rid of rtl8723au_set_hal_ops() and get rid of hal_ops.h

Since rtl8723au_set_hal_ops() is just a kmalloc(), move it to
rtw_usb_if1_init() and fix the error handling to not leak memory.

This also allows us to get rid of hal_ops.h

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove sw led hal ops
Jes Sorensen [Fri, 16 May 2014 08:04:23 +0000 (10:04 +0200)]
staging: rtl8723au: Remove sw led hal ops

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused HAL interrupt function wrappers
Jes Sorensen [Fri, 16 May 2014 08:04:22 +0000 (10:04 +0200)]
staging: rtl8723au: Remove unused HAL interrupt function wrappers

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused hal_power_on() wrapper
Jes Sorensen [Fri, 16 May 2014 08:04:21 +0000 (10:04 +0200)]
staging: rtl8723au: Remove unused hal_power_on() wrapper

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Make direct calls to GetHalDefVar8192CUsb()
Jes Sorensen [Fri, 16 May 2014 08:04:20 +0000 (10:04 +0200)]
staging: rtl8723au: Make direct calls to GetHalDefVar8192CUsb()

Remove another round of HAL wrapping, and remove unused
SetHalDefVar8192CUsb().

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Pull update_ramask call out of HAL wrapper layer
Jes Sorensen [Fri, 16 May 2014 08:04:19 +0000 (10:04 +0200)]
staging: rtl8723au: Pull update_ramask call out of HAL wrapper layer

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Call xmit/recv handlers directly instead of via HAL wrappers
Jes Sorensen [Fri, 16 May 2014 08:04:18 +0000 (10:04 +0200)]
staging: rtl8723au: Call xmit/recv handlers directly instead of via HAL wrappers

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Disentangle recv/xmit_priv init/free from HAL wrappers
Jes Sorensen [Fri, 16 May 2014 08:04:17 +0000 (10:04 +0200)]
staging: rtl8723au: Disentangle recv/xmit_priv init/free from HAL wrappers

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Pull hal_init/deinit out of HAL wrapper layer
Jes Sorensen [Fri, 16 May 2014 08:04:16 +0000 (10:04 +0200)]
staging: rtl8723au: Pull hal_init/deinit out of HAL wrapper layer

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove a pile of unused EFUSE read/write functionality
Jes Sorensen [Fri, 16 May 2014 08:04:15 +0000 (10:04 +0200)]
staging: rtl8723au: Remove a pile of unused EFUSE read/write functionality

All this code was only pulled in since it was registered in the HAL
wrapper interface, despite it never being called. It also removes the
lasts pieces of code from rtl8723a_set_hal_ops(), so remove it as
well.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove first half of EFUSE functions from HAL wrappers
Jes Sorensen [Fri, 16 May 2014 08:04:14 +0000 (10:04 +0200)]
staging: rtl8723au: Remove first half of EFUSE functions from HAL wrappers

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Disentangle set_odm_var() from the HAL wrappers
Jes Sorensen [Fri, 16 May 2014 08:04:13 +0000 (10:04 +0200)]
staging: rtl8723au: Disentangle set_odm_var() from the HAL wrappers

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Get rid of unused rtw_hal_get_odm_var23()
Jes Sorensen [Fri, 16 May 2014 08:04:12 +0000 (10:04 +0200)]
staging: rtl8723au: Get rid of unused rtw_hal_get_odm_var23()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Disentangle rtl8723a_add_rateatid() from HAL
Jes Sorensen [Fri, 16 May 2014 08:04:11 +0000 (10:04 +0200)]
staging: rtl8723au: Disentangle rtl8723a_add_rateatid() from HAL

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Disentangle beacon register settings from the HAL wrappers
Jes Sorensen [Fri, 16 May 2014 08:04:10 +0000 (10:04 +0200)]
staging: rtl8723au: Disentangle beacon register settings from the HAL wrappers

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8732au: Remove some unused hal data pointers
Jes Sorensen [Fri, 16 May 2014 08:04:09 +0000 (10:04 +0200)]
staging: rtl8732au: Remove some unused hal data pointers

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Call bandwidth and channel setting handlers directly
Jes Sorensen [Fri, 16 May 2014 08:04:08 +0000 (10:04 +0200)]
staging: rtl8723au: Call bandwidth and channel setting handlers directly

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Disentangle chip_configure from HAL wrappers
Jes Sorensen [Fri, 16 May 2014 08:04:07 +0000 (10:04 +0200)]
staging: rtl8723au: Disentangle chip_configure from HAL wrappers

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: We love wrappers!
Jes Sorensen [Fri, 16 May 2014 08:04:06 +0000 (10:04 +0200)]
staging: rtl8723au: We love wrappers!

Get rid of pointless wrapper around a simple kfree()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove HAL wrappers about USB init/deinit
Jes Sorensen [Fri, 16 May 2014 08:04:05 +0000 (10:04 +0200)]
staging: rtl8723au: Remove HAL wrappers about USB init/deinit

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove HAL wrappers around read_chip_version
Jes Sorensen [Fri, 16 May 2014 08:04:04 +0000 (10:04 +0200)]
staging: rtl8723au: Remove HAL wrappers around read_chip_version

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused HAL wrappers around PHY register read/write calls
Jes Sorensen [Fri, 16 May 2014 08:04:03 +0000 (10:04 +0200)]
staging: rtl8723au: Remove unused HAL wrappers around PHY register read/write calls

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove HAL notch_filter wrappers
Jes Sorensen [Fri, 16 May 2014 08:04:02 +0000 (10:04 +0200)]
staging: rtl8723au: Remove HAL notch_filter wrappers

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused hal_reset_security_engine code
Jes Sorensen [Fri, 16 May 2014 08:04:01 +0000 (10:04 +0200)]
staging: rtl8723au: Remove unused hal_reset_security_engine code

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Get rid of sreset related HAL clutter
Jes Sorensen [Fri, 16 May 2014 08:04:00 +0000 (10:04 +0200)]
staging: rtl8723au: Get rid of sreset related HAL clutter

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Get rid of rtw_hal_dm_* clutter
Jes Sorensen [Fri, 16 May 2014 08:03:59 +0000 (10:03 +0200)]
staging: rtl8723au: Get rid of rtw_hal_dm_* clutter

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove some more HAL clutter
Jes Sorensen [Fri, 16 May 2014 08:03:58 +0000 (10:03 +0200)]
staging: rtl8723au: Remove some more HAL clutter

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Call rtl8723a_init_default_value_directly()
Jes Sorensen [Fri, 16 May 2014 08:03:57 +0000 (10:03 +0200)]
staging: rtl8723au: Call rtl8723a_init_default_value_directly()

We really don't need two layers of silly indirection to call this
function.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused hal_data_sz from struct rtw_adapter
Jes Sorensen [Fri, 16 May 2014 08:03:56 +0000 (10:03 +0200)]
staging: rtl8723au: Remove unused hal_data_sz from struct rtw_adapter

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused rtl8723a_clone_haldata()
Jes Sorensen [Fri, 16 May 2014 08:03:55 +0000 (10:03 +0200)]
staging: rtl8723au: Remove unused rtl8723a_clone_haldata()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused bBTFWReady from struct rtw_adapter
Jes Sorensen [Fri, 16 May 2014 08:03:54 +0000 (10:03 +0200)]
staging: rtl8723au: Remove unused bBTFWReady from struct rtw_adapter

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: osdep_service.h: Reduce excessive header inclusion
Jes Sorensen [Fri, 16 May 2014 08:03:53 +0000 (10:03 +0200)]
staging: rtl8723au: osdep_service.h: Reduce excessive header inclusion

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove obsolete BITx #defines
Jes Sorensen [Fri, 16 May 2014 08:03:52 +0000 (10:03 +0200)]
staging: rtl8723au: Remove obsolete BITx #defines

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: odm_HWConfig.c: Use BIT() consistently
Jes Sorensen [Fri, 16 May 2014 08:03:51 +0000 (10:03 +0200)]
staging: rtl8723au: odm_HWConfig.c: Use BIT() consistently

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: odm.c: Use BIT() instead of BITx
Jes Sorensen [Fri, 16 May 2014 08:03:50 +0000 (10:03 +0200)]
staging: rtl8723au: odm.c: Use BIT() instead of BITx

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtl8723a_hal_init.c: Use BIT() consistently
Jes Sorensen [Fri, 16 May 2014 08:03:49 +0000 (10:03 +0200)]
staging: rtl8723au: rtl8723a_hal_init.c: Use BIT() consistently

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtl8723a_phycfg.c: Use BIT() instead of BITx
Jes Sorensen [Fri, 16 May 2014 08:03:48 +0000 (10:03 +0200)]
staging: rtl8723au: rtl8723a_phycfg.c: Use BIT() instead of BITx

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: HalDMOutSrt8723A_CE.c: Use BIT() instead of BITx
Jes Sorensen [Fri, 16 May 2014 08:03:47 +0000 (10:03 +0200)]
staging: rtl8723au: HalDMOutSrt8723A_CE.c: Use BIT() instead of BITx

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: hal_com.c: Use BIT() consistently instead of BITx
Jes Sorensen [Fri, 16 May 2014 08:03:46 +0000 (10:03 +0200)]
staging: rtl8723au: hal_com.c: Use BIT() consistently instead of BITx

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtl8723a_bt-coexist.c: Be consistent in use of BIT()
Jes Sorensen [Fri, 16 May 2014 08:03:45 +0000 (10:03 +0200)]
staging: rtl8723au: rtl8723a_bt-coexist.c: Be consistent in use of BIT()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: usb_halinit.c: Use BIT() instead of BITx
Jes Sorensen [Fri, 16 May 2014 08:03:44 +0000 (10:03 +0200)]
staging: rtl8723au: usb_halinit.c: Use BIT() instead of BITx

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtl8723au_led.c: Use BIT() instead of BITx
Jes Sorensen [Fri, 16 May 2014 08:03:43 +0000 (10:03 +0200)]
staging: rtl8723au: rtl8723au_led.c: Use BIT() instead of BITx

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_sreset.h: Use BIT() instead of BITx
Jes Sorensen [Fri, 16 May 2014 08:03:42 +0000 (10:03 +0200)]
staging: rtl8723au: rtw_sreset.h: Use BIT() instead of BITx

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: odm_reg.h: Use BIT() instead of BITx
Jes Sorensen [Fri, 16 May 2014 08:03:41 +0000 (10:03 +0200)]
staging: rtl8723au: odm_reg.h: Use BIT() instead of BITx

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: odm_debug.h: Use BIT() instead of BITx
Jes Sorensen [Fri, 16 May 2014 08:03:40 +0000 (10:03 +0200)]
staging: rtl8723au: odm_debug.h: Use BIT() instead of BITx

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: odm.h: Use BIT() instead of BITx
Jes Sorensen [Fri, 16 May 2014 08:03:39 +0000 (10:03 +0200)]
staging: rtl8723au: odm.h: Use BIT() instead of BITx

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>