From 2acf0091684511084befc5280fbde8a17f79088d Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 31 Mar 2019 14:34:53 -0700 Subject: [PATCH] qcacld-3.0: Rename HDD identifier deviceMode The Linux Coding Style frowns upon mixed-case names so rename HDD identifier deviceMode to be compliant. Change-Id: I24c3ffc1c477eb65ebb04ea1434d1902b1fec343 CRs-Fixed: 2427182 --- core/hdd/src/wlan_hdd_oemdata.c | 10 +++++----- core/hdd/src/wlan_hdd_stats.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/hdd/src/wlan_hdd_oemdata.c b/core/hdd/src/wlan_hdd_oemdata.c index 9a3a5e90a0a4..5105999dfe6d 100644 --- a/core/hdd/src/wlan_hdd_oemdata.c +++ b/core/hdd/src/wlan_hdd_oemdata.c @@ -183,7 +183,7 @@ static void send_oem_reg_rsp_nlink_msg(void) tAniMsgHdr *ani_hdr; uint8_t *buf; uint8_t *numInterfaces; - uint8_t *deviceMode; + uint8_t *device_mode; uint8_t *vdevId; struct hdd_adapter *adapter; @@ -217,13 +217,13 @@ static void send_oem_reg_rsp_nlink_msg(void) /* Iterate through each adapter and fill device mode and vdev id */ hdd_for_each_adapter(p_hdd_ctx, adapter) { - deviceMode = buf++; + device_mode = buf++; vdevId = buf++; - *deviceMode = adapter->device_mode; + *device_mode = adapter->device_mode; *vdevId = adapter->vdev_id; (*numInterfaces)++; - hdd_debug("numInterfaces: %d, deviceMode: %d, vdevId: %d", - *numInterfaces, *deviceMode, + hdd_debug("numInterfaces: %d, device_mode: %d, vdevId: %d", + *numInterfaces, *device_mode, *vdevId); } diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index 13b94390fd54..41a680d51fa0 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -517,13 +517,13 @@ static bool put_wifi_iface_stats(tpSirWifiIfaceStat if_stat, /** * hdd_map_device_to_ll_iface_mode() - map device to link layer interface mode - * @deviceMode: Device mode + * @device_mode: Device mode * * Return: interface mode */ -static tSirWifiInterfaceMode hdd_map_device_to_ll_iface_mode(int deviceMode) +static tSirWifiInterfaceMode hdd_map_device_to_ll_iface_mode(int device_mode) { - switch (deviceMode) { + switch (device_mode) { case QDF_STA_MODE: return WIFI_INTERFACE_STA; case QDF_SAP_MODE: