* [PATCH 1/5] staging: wilc1000: fix alignment of open parenthesis
@ 2016-01-12 0:32 Chaehyun Lim
2016-01-12 0:32 ` [PATCH 2/5] staging: wilc1000: remove typedef from struct wilc_cfg_byte_t Chaehyun Lim
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Chaehyun Lim @ 2016-01-12 0:32 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch fixes alignment of open parenthesis found by checkpatch.pl
CHECK: Alignment should match open parenthesis
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 5fac516..d735267 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -303,7 +303,7 @@ static s32 handle_set_channel(struct wilc_vif *vif,
PRINT_D(HOSTINF_DBG, "Setting channel\n");
result = wilc_send_config_pkt(vif->wilc, SET_CFG, &wid, 1,
- wilc_get_vif_idx(vif));
+ wilc_get_vif_idx(vif));
if (result) {
PRINT_ER("Failed to set channel\n");
@@ -350,7 +350,7 @@ static s32 handle_set_operation_mode(struct wilc_vif *vif,
wid.size = sizeof(u32);
result = wilc_send_config_pkt(vif->wilc, SET_CFG, &wid, 1,
- wilc_get_vif_idx(vif));
+ wilc_get_vif_idx(vif));
if ((hif_op_mode->mode) == IDLE_MODE)
up(&hif_sema_driver);
@@ -383,7 +383,7 @@ static s32 handle_set_ip_address(struct wilc_vif *vif, u8 *ip_addr, u8 idx)
wid.size = IP_ALEN;
result = wilc_send_config_pkt(vif->wilc, SET_CFG, &wid, 1,
- wilc_get_vif_idx(vif));
+ wilc_get_vif_idx(vif));
host_int_get_ipaddress(vif, firmware_ip_addr, idx);
@@ -408,7 +408,7 @@ static s32 handle_get_ip_address(struct wilc_vif *vif, u8 idx)
wid.size = IP_ALEN;
result = wilc_send_config_pkt(vif->wilc, GET_CFG, &wid, 1,
- wilc_get_vif_idx(vif));
+ wilc_get_vif_idx(vif));
PRINT_INFO(HOSTINF_DBG, "%pI4\n", wid.val);
@@ -451,7 +451,7 @@ static s32 handle_set_mac_address(struct wilc_vif *vif,
PRINT_D(GENERIC_DBG, "mac addr = :%pM\n", wid.val);
result = wilc_send_config_pkt(vif->wilc, SET_CFG, &wid, 1,
- wilc_get_vif_idx(vif));
+ wilc_get_vif_idx(vif));
if (result) {
PRINT_ER("Failed to set mac address\n");
result = -EFAULT;
@@ -473,7 +473,7 @@ static s32 handle_get_mac_address(struct wilc_vif *vif,
wid.size = ETH_ALEN;
result = wilc_send_config_pkt(vif->wilc, GET_CFG, &wid, 1,
- wilc_get_vif_idx(vif));
+ wilc_get_vif_idx(vif));
if (result) {
PRINT_ER("Failed to get mac address\n");
--
2.6.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/5] staging: wilc1000: remove typedef from struct wilc_cfg_byte_t
2016-01-12 0:32 [PATCH 1/5] staging: wilc1000: fix alignment of open parenthesis Chaehyun Lim
@ 2016-01-12 0:32 ` Chaehyun Lim
2016-01-12 1:00 ` Joe Perches
2016-01-12 0:32 ` [PATCH 3/5] staging: wilc1000: remove typedef from struct wilc_cfg_hword_t Chaehyun Lim
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Chaehyun Lim @ 2016-01-12 0:32 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch removes typedef from struct wilc_cfg_byte_t and renames it to
wilc_cfg_byte.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/wilc_wlan_cfg.c | 2 +-
drivers/staging/wilc1000/wilc_wlan_cfg.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.c b/drivers/staging/wilc1000/wilc_wlan_cfg.c
index b72c77b..54b394c 100644
--- a/drivers/staging/wilc1000/wilc_wlan_cfg.c
+++ b/drivers/staging/wilc1000/wilc_wlan_cfg.c
@@ -44,7 +44,7 @@ typedef struct {
static wilc_mac_cfg_t g_mac;
-static wilc_cfg_byte_t g_cfg_byte[] = {
+static struct wilc_cfg_byte g_cfg_byte[] = {
{WID_BSS_TYPE, 0},
{WID_CURRENT_TX_RATE, 0},
{WID_CURRENT_CHANNEL, 0},
diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.h b/drivers/staging/wilc1000/wilc_wlan_cfg.h
index 5f74eb8..d978615 100644
--- a/drivers/staging/wilc1000/wilc_wlan_cfg.h
+++ b/drivers/staging/wilc1000/wilc_wlan_cfg.h
@@ -10,10 +10,10 @@
#ifndef WILC_WLAN_CFG_H
#define WILC_WLAN_CFG_H
-typedef struct {
+struct wilc_cfg_byte {
u16 id;
u16 val;
-} wilc_cfg_byte_t;
+};
typedef struct {
u16 id;
--
2.6.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/5] staging: wilc1000: remove typedef from struct wilc_cfg_hword_t
2016-01-12 0:32 [PATCH 1/5] staging: wilc1000: fix alignment of open parenthesis Chaehyun Lim
2016-01-12 0:32 ` [PATCH 2/5] staging: wilc1000: remove typedef from struct wilc_cfg_byte_t Chaehyun Lim
@ 2016-01-12 0:32 ` Chaehyun Lim
2016-01-12 0:32 ` [PATCH 4/5] staging: wilc1000: remove typedef from struct wilc_cfg_word_t Chaehyun Lim
2016-01-12 0:32 ` [PATCH 5/5] staging: wilc1000: remove typedef from struct wilc_cfg_str_t Chaehyun Lim
3 siblings, 0 replies; 7+ messages in thread
From: Chaehyun Lim @ 2016-01-12 0:32 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch removes typedef from struct wilc_cfg_hword_t and renames it
to wilc_cfg_hword.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/wilc_wlan_cfg.c | 2 +-
drivers/staging/wilc1000/wilc_wlan_cfg.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.c b/drivers/staging/wilc1000/wilc_wlan_cfg.c
index 54b394c..003f2af 100644
--- a/drivers/staging/wilc1000/wilc_wlan_cfg.c
+++ b/drivers/staging/wilc1000/wilc_wlan_cfg.c
@@ -87,7 +87,7 @@ static struct wilc_cfg_byte g_cfg_byte[] = {
{WID_NIL, 0}
};
-static wilc_cfg_hword_t g_cfg_hword[] = {
+static struct wilc_cfg_hword g_cfg_hword[] = {
{WID_LINK_LOSS_THRESHOLD, 0},
{WID_RTS_THRESHOLD, 0},
{WID_FRAG_THRESHOLD, 0},
diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.h b/drivers/staging/wilc1000/wilc_wlan_cfg.h
index d978615..aed7b80 100644
--- a/drivers/staging/wilc1000/wilc_wlan_cfg.h
+++ b/drivers/staging/wilc1000/wilc_wlan_cfg.h
@@ -15,10 +15,10 @@ struct wilc_cfg_byte {
u16 val;
};
-typedef struct {
+struct wilc_cfg_hword {
u16 id;
u16 val;
-} wilc_cfg_hword_t;
+};
typedef struct {
u32 id;
--
2.6.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/5] staging: wilc1000: remove typedef from struct wilc_cfg_word_t
2016-01-12 0:32 [PATCH 1/5] staging: wilc1000: fix alignment of open parenthesis Chaehyun Lim
2016-01-12 0:32 ` [PATCH 2/5] staging: wilc1000: remove typedef from struct wilc_cfg_byte_t Chaehyun Lim
2016-01-12 0:32 ` [PATCH 3/5] staging: wilc1000: remove typedef from struct wilc_cfg_hword_t Chaehyun Lim
@ 2016-01-12 0:32 ` Chaehyun Lim
2016-01-12 0:32 ` [PATCH 5/5] staging: wilc1000: remove typedef from struct wilc_cfg_str_t Chaehyun Lim
3 siblings, 0 replies; 7+ messages in thread
From: Chaehyun Lim @ 2016-01-12 0:32 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch removes typedef from struct wilc_cfg_word_t and renames it to
wilc_cfg_word.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/wilc_wlan_cfg.c | 2 +-
drivers/staging/wilc1000/wilc_wlan_cfg.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.c b/drivers/staging/wilc1000/wilc_wlan_cfg.c
index 003f2af..94193b3 100644
--- a/drivers/staging/wilc1000/wilc_wlan_cfg.c
+++ b/drivers/staging/wilc1000/wilc_wlan_cfg.c
@@ -108,7 +108,7 @@ static struct wilc_cfg_hword g_cfg_hword[] = {
{WID_NIL, 0}
};
-static wilc_cfg_word_t g_cfg_word[] = {
+static struct wilc_cfg_word g_cfg_word[] = {
{WID_FAILED_COUNT, 0},
{WID_RETRY_COUNT, 0},
{WID_MULTIPLE_RETRY_COUNT, 0},
diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.h b/drivers/staging/wilc1000/wilc_wlan_cfg.h
index aed7b80..f51091e 100644
--- a/drivers/staging/wilc1000/wilc_wlan_cfg.h
+++ b/drivers/staging/wilc1000/wilc_wlan_cfg.h
@@ -20,10 +20,10 @@ struct wilc_cfg_hword {
u16 val;
};
-typedef struct {
+struct wilc_cfg_word {
u32 id;
u32 val;
-} wilc_cfg_word_t;
+};
typedef struct {
u32 id;
--
2.6.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 5/5] staging: wilc1000: remove typedef from struct wilc_cfg_str_t
2016-01-12 0:32 [PATCH 1/5] staging: wilc1000: fix alignment of open parenthesis Chaehyun Lim
` (2 preceding siblings ...)
2016-01-12 0:32 ` [PATCH 4/5] staging: wilc1000: remove typedef from struct wilc_cfg_word_t Chaehyun Lim
@ 2016-01-12 0:32 ` Chaehyun Lim
3 siblings, 0 replies; 7+ messages in thread
From: Chaehyun Lim @ 2016-01-12 0:32 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch removes typedef from struct wilc_cfg_str_t and renames it to
wilc_cfg_str.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/wilc_wlan_cfg.c | 2 +-
drivers/staging/wilc1000/wilc_wlan_cfg.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.c b/drivers/staging/wilc1000/wilc_wlan_cfg.c
index 94193b3..068b06d 100644
--- a/drivers/staging/wilc1000/wilc_wlan_cfg.c
+++ b/drivers/staging/wilc1000/wilc_wlan_cfg.c
@@ -131,7 +131,7 @@ static struct wilc_cfg_word g_cfg_word[] = {
};
-static wilc_cfg_str_t g_cfg_str[] = {
+static struct wilc_cfg_str g_cfg_str[] = {
{WID_SSID, g_mac.ssid}, /* 33 + 1 bytes */
{WID_FIRMWARE_VERSION, g_mac.firmware_version},
{WID_OPERATIONAL_RATE_SET, g_mac.supp_rate},
diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.h b/drivers/staging/wilc1000/wilc_wlan_cfg.h
index f51091e..9b74cc3 100644
--- a/drivers/staging/wilc1000/wilc_wlan_cfg.h
+++ b/drivers/staging/wilc1000/wilc_wlan_cfg.h
@@ -25,10 +25,10 @@ struct wilc_cfg_word {
u32 val;
};
-typedef struct {
+struct wilc_cfg_str {
u32 id;
u8 *str;
-} wilc_cfg_str_t;
+};
struct wilc;
int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size);
--
2.6.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/5] staging: wilc1000: remove typedef from struct wilc_cfg_byte_t
2016-01-12 0:32 ` [PATCH 2/5] staging: wilc1000: remove typedef from struct wilc_cfg_byte_t Chaehyun Lim
@ 2016-01-12 1:00 ` Joe Perches
2016-01-12 23:18 ` Chaehyun Lim
0 siblings, 1 reply; 7+ messages in thread
From: Joe Perches @ 2016-01-12 1:00 UTC (permalink / raw)
To: Chaehyun Lim, gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel
On Tue, 2016-01-12 at 09:32 +0900, Chaehyun Lim wrote:
> This patch removes typedef from struct wilc_cfg_byte_t and renames it to
> wilc_cfg_byte.
Is this really a good name?
> diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.h b/drivers/staging/wilc1000/wilc_wlan_cfg.h
[]
> @@ -10,10 +10,10 @@
> #ifndef WILC_WLAN_CFG_H
> #define WILC_WLAN_CFG_H
>
> -typedef struct {
> +struct wilc_cfg_byte {
> u16 id;
> u16 val;
> -} wilc_cfg_byte_t;
> +};
val is a u16, calling it cfg_byte seems misleading.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/5] staging: wilc1000: remove typedef from struct wilc_cfg_byte_t
2016-01-12 1:00 ` Joe Perches
@ 2016-01-12 23:18 ` Chaehyun Lim
0 siblings, 0 replies; 7+ messages in thread
From: Chaehyun Lim @ 2016-01-12 23:18 UTC (permalink / raw)
To: Joe Perches
Cc: Greg KH, Johnny Kim, Austin Shin, Chris Park, tony.cho, glen.lee,
leo.kim, linux-wireless, devel
Thank you for your comment.
I'll resend again this patch after considering your suggestion.
regards
Chaehyun Lim
On Tue, Jan 12, 2016 at 10:00 AM, Joe Perches <joe@perches.com> wrote:
> On Tue, 2016-01-12 at 09:32 +0900, Chaehyun Lim wrote:
>> This patch removes typedef from struct wilc_cfg_byte_t and renames it to
>> wilc_cfg_byte.
>
> Is this really a good name?
>
>> diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.h b/drivers/staging/wilc1000/wilc_wlan_cfg.h
> []
>> @@ -10,10 +10,10 @@
>> #ifndef WILC_WLAN_CFG_H
>> #define WILC_WLAN_CFG_H
>>
>> -typedef struct {
>> +struct wilc_cfg_byte {
>> u16 id;
>> u16 val;
>> -} wilc_cfg_byte_t;
>> +};
>
> val is a u16, calling it cfg_byte seems misleading.
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-01-12 23:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-12 0:32 [PATCH 1/5] staging: wilc1000: fix alignment of open parenthesis Chaehyun Lim
2016-01-12 0:32 ` [PATCH 2/5] staging: wilc1000: remove typedef from struct wilc_cfg_byte_t Chaehyun Lim
2016-01-12 1:00 ` Joe Perches
2016-01-12 23:18 ` Chaehyun Lim
2016-01-12 0:32 ` [PATCH 3/5] staging: wilc1000: remove typedef from struct wilc_cfg_hword_t Chaehyun Lim
2016-01-12 0:32 ` [PATCH 4/5] staging: wilc1000: remove typedef from struct wilc_cfg_word_t Chaehyun Lim
2016-01-12 0:32 ` [PATCH 5/5] staging: wilc1000: remove typedef from struct wilc_cfg_str_t Chaehyun Lim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).