qcacld-3.0: Replace hdd_adapter_t in wlan_hdd_ftm.[ch]

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: I48952b52777b523d5b383ea4278b8390a4bc4a8e
CRs-Fixed: 2101054
This commit is contained in:
Jeff Johnson 2017-08-29 14:34:33 -07:00 • committed by snandini
commit a5dc3f4de9
2 changed files with 6 additions and 6 deletions

View file

@ -47,7 +47,7 @@ int hdd_update_cds_config_ftm(struct hdd_context *hdd_ctx);
void hdd_ftm_mc_process_msg(void *message);
#if defined(QCA_WIFI_FTM)
QDF_STATUS wlan_hdd_ftm_testmode_cmd(void *data, int len);
int wlan_hdd_qcmbr_unified_ioctl(hdd_adapter_t *adapter, struct ifreq *ifr);
int wlan_hdd_qcmbr_unified_ioctl(struct hdd_adapter *adapter, struct ifreq *ifr);
#endif
#endif

View file

@ -176,7 +176,7 @@ void hdd_ftm_mc_process_msg(void *message)
*
* Return: 0 on success, non-zero on error
*/
static int wlan_hdd_qcmbr_command(hdd_adapter_t *adapter,
static int wlan_hdd_qcmbr_command(struct hdd_adapter *adapter,
struct qcmbr_data *pqcmbr_data)
{
int ret = 0;
@ -236,7 +236,7 @@ static int wlan_hdd_qcmbr_command(hdd_adapter_t *adapter,
*
* Return: 0 on success, non-zero on error
*/
static int wlan_hdd_qcmbr_compat_ioctl(hdd_adapter_t *adapter,
static int wlan_hdd_qcmbr_compat_ioctl(struct hdd_adapter *adapter,
struct ifreq *ifr)
{
struct qcmbr_data *qcmbr_data;
@ -262,7 +262,7 @@ exit:
return ret;
}
#else /* CONFIG_COMPAT */
static int wlan_hdd_qcmbr_compat_ioctl(hdd_adapter_t *adapter,
static int wlan_hdd_qcmbr_compat_ioctl(struct hdd_adapter *adapter,
struct ifreq *ifr)
{
return 0;
@ -276,7 +276,7 @@ static int wlan_hdd_qcmbr_compat_ioctl(hdd_adapter_t *adapter,
*
* Return: 0 on success, non-zero on error
*/
static int wlan_hdd_qcmbr_ioctl(hdd_adapter_t *adapter, struct ifreq *ifr)
static int wlan_hdd_qcmbr_ioctl(struct hdd_adapter *adapter, struct ifreq *ifr)
{
struct qcmbr_data *qcmbr_data;
int ret = 0;
@ -308,7 +308,7 @@ exit:
*
* Return: 0 on success, non-zero on error
*/
int wlan_hdd_qcmbr_unified_ioctl(hdd_adapter_t *adapter, struct ifreq *ifr)
int wlan_hdd_qcmbr_unified_ioctl(struct hdd_adapter *adapter, struct ifreq *ifr)
{
int ret = 0;