qcacld-3.0: Replace hdd_adapter_t in wlan_hdd_green_ap.c

The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_adapter_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I762cb4c29060d780dcf9647aebe7246610d8f923
CRs-Fixed: 2101057
This commit is contained in:
Jeff Johnson 2017-08-29 14:33:56 -07:00 • committed by snandini
commit 9a7136d522

View file

@ -118,7 +118,7 @@ static void hdd_green_ap_update(struct hdd_context *hdd_ctx,
*
* Return: 0 upon success, non-zero upon failure
*/
static int hdd_green_ap_enable(hdd_adapter_t *adapter, uint8_t enable)
static int hdd_green_ap_enable(struct hdd_adapter *adapter, uint8_t enable)
{
int ret;
@ -142,7 +142,7 @@ static void hdd_green_ap_mc(struct hdd_context *hdd_ctx,
enum hdd_green_ap_event event)
{
struct hdd_green_ap_ctx *green_ap;
hdd_adapter_t *adapter;
struct hdd_adapter *adapter;
green_ap = hdd_ctx->green_ap_ctx;
if (green_ap == NULL)