diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/debugfs.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/debugfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/mwifiex/debugfs.c b/drivers/net/wireless/mwifiex/debugfs.c index a5f9875cfd6e..b8a49aad12fd 100644 --- a/drivers/net/wireless/mwifiex/debugfs.c +++ b/drivers/net/wireless/mwifiex/debugfs.c | |||
@@ -85,8 +85,8 @@ static struct mwifiex_debug_data items[] = { | |||
85 | item_addr(hs_activated), 1}, | 85 | item_addr(hs_activated), 1}, |
86 | {"num_tx_timeout", item_size(num_tx_timeout), | 86 | {"num_tx_timeout", item_size(num_tx_timeout), |
87 | item_addr(num_tx_timeout), 1}, | 87 | item_addr(num_tx_timeout), 1}, |
88 | {"num_cmd_timeout", item_size(num_cmd_timeout), | 88 | {"is_cmd_timedout", item_size(is_cmd_timedout), |
89 | item_addr(num_cmd_timeout), 1}, | 89 | item_addr(is_cmd_timedout), 1}, |
90 | {"timeout_cmd_id", item_size(timeout_cmd_id), | 90 | {"timeout_cmd_id", item_size(timeout_cmd_id), |
91 | item_addr(timeout_cmd_id), 1}, | 91 | item_addr(timeout_cmd_id), 1}, |
92 | {"timeout_cmd_act", item_size(timeout_cmd_act), | 92 | {"timeout_cmd_act", item_size(timeout_cmd_act), |
@@ -493,7 +493,7 @@ mwifiex_regrdwr_write(struct file *file, | |||
493 | { | 493 | { |
494 | unsigned long addr = get_zeroed_page(GFP_KERNEL); | 494 | unsigned long addr = get_zeroed_page(GFP_KERNEL); |
495 | char *buf = (char *) addr; | 495 | char *buf = (char *) addr; |
496 | size_t buf_size = min(count, (size_t) (PAGE_SIZE - 1)); | 496 | size_t buf_size = min_t(size_t, count, PAGE_SIZE - 1); |
497 | int ret; | 497 | int ret; |
498 | u32 reg_type = 0, reg_offset = 0, reg_value = UINT_MAX; | 498 | u32 reg_type = 0, reg_offset = 0, reg_value = UINT_MAX; |
499 | 499 | ||
@@ -594,7 +594,7 @@ mwifiex_rdeeprom_write(struct file *file, | |||
594 | { | 594 | { |
595 | unsigned long addr = get_zeroed_page(GFP_KERNEL); | 595 | unsigned long addr = get_zeroed_page(GFP_KERNEL); |
596 | char *buf = (char *) addr; | 596 | char *buf = (char *) addr; |
597 | size_t buf_size = min(count, (size_t) (PAGE_SIZE - 1)); | 597 | size_t buf_size = min_t(size_t, count, PAGE_SIZE - 1); |
598 | int ret = 0; | 598 | int ret = 0; |
599 | int offset = -1, bytes = -1; | 599 | int offset = -1, bytes = -1; |
600 | 600 | ||