Return-path: Received: from esa5.microchip.iphmx.com ([216.71.150.166]:9146 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934193AbeAKPI5 (ORCPT ); Thu, 11 Jan 2018 10:08:57 -0500 From: Ajay Singh To: CC: , , , , , , Ajay Singh Subject: [PATCH v3 1/6] staging: wilc1000: removed typedef from enum BSSTYPE_T Date: Thu, 11 Jan 2018 19:42:14 +0530 Message-ID: <1515679939-13202-2-git-send-email-ajay.kathat@microchip.com> (sfid-20180111_160905_662597_9CA24F45) In-Reply-To: <1515679939-13202-1-git-send-email-ajay.kathat@microchip.com> References: <1515679939-13202-1-git-send-email-ajay.kathat@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: This patch removes typedef from enum BSSTYPE_T and rename it to bss_types. It fixes "WARNING: do not add new typdefs" warning reported by checkpatch.pl. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 2 +- drivers/staging/wilc1000/wilc_wlan_if.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index d69248a..4ff1a59 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -202,7 +202,7 @@ struct host_if_msg { }; struct join_bss_param { - BSSTYPE_T bss_type; + enum bss_types bss_type; u8 dtim_period; u16 beacon_period; u16 cap_info; diff --git a/drivers/staging/wilc1000/wilc_wlan_if.h b/drivers/staging/wilc1000/wilc_wlan_if.h index c1693cf..2baf6c4 100644 --- a/drivers/staging/wilc1000/wilc_wlan_if.h +++ b/drivers/staging/wilc1000/wilc_wlan_if.h @@ -85,11 +85,11 @@ typedef enum { P2P_IE = 221, } BEACON_IE; -typedef enum { +enum bss_types { INFRASTRUCTURE = 0, INDEPENDENT, AP, -} BSSTYPE_T; +}; typedef enum { RATE_AUTO = 0, -- 2.7.4