qcacmn: Rename enum tQDF_ADAPTER_MODE

The name tQDF_ADAPTER_MODE is a poor name on many levels:
-  The "t" prefix implies it is a typedef when it isn't.
-  The "t" prefix makes this a mixed-case identifier which is "frowned
   upon" in the Linux coding style guide.
-  The term "ADAPTER" is MCL-specific and is not suitable for
   converged code.

Therefore rename enum tQDF_ADAPTER_MODE to enum QDF_OPMODE to better
align with with the Linix coding style and the converged nomenclature.

Change-Id: I20f1b6d1a0ab4b8fe6a85cefdff96a49e2f4652c
CRs-Fixed: 2140295
This commit is contained in:
Jeff Johnson 2017-11-03 09:08:26 -07:00 • committed by snandini
commit 616d1309d2

View file

@ -452,7 +452,7 @@ typedef enum {
} QDF_TRACE_LEVEL;
/**
* enum tQDF_ADAPTER_MODE - Concurrency role.
* enum QDF_OPMODE - vdev operating mode
* @QDF_STA_MODE: STA mode
* @QDF_SAP_MODE: SAP mode
* @QDF_P2P_CLIENT_MODE: P2P client mode
@ -473,7 +473,7 @@ typedef enum {
* These are generic IDs that identify the various roles
* in the software system
*/
enum tQDF_ADAPTER_MODE {
enum QDF_OPMODE {
QDF_STA_MODE,
QDF_SAP_MODE,
QDF_P2P_CLIENT_MODE,
@ -492,6 +492,9 @@ enum tQDF_ADAPTER_MODE {
QDF_MAX_NO_OF_MODE
};
/* for backward compatability with the legacy definition */
#define tQDF_ADAPTER_MODE QDF_OPMODE
/**
* enum tQDF_GLOBAL_CON_MODE - global config mode when
* driver is loaded.