From: glen lee <glen.lee@atmel.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: <devel@driverdev.osuosl.org>, <austin.shin@atmel.com>,
<linux-wireless@vger.kernel.org>, <Nicolas.FERRE@atmel.com>,
<adel.noureldin@atmel.com>, <tony.cho@atmel.com>,
<leo.kim@atmel.com>, <adham.abozaeid@atmel.com>
Subject: Re: [PATCH RESEND 12/12] staging: wilc1000: add argument wilc and use it instead of g_linux_wlan
Date: Thu, 5 Nov 2015 11:22:47 +0900 [thread overview]
Message-ID: <563ABD77.2050303@atmel.com> (raw)
In-Reply-To: <20151104204120.GB15421@kroah.com>
On 2015년 11월 05일 05:41, Greg KH wrote:
> On Thu, Oct 29, 2015 at 12:18:52PM +0900, Glen Lee wrote:
>> This patch adds new argument wilc to linux_sdio_cmd53 and linux_sdio_cmd52
>> , and use it instead of g_linux_wlan. Pass wilc to the functions as well.
>> The void type wilc will be changed with struct wilc when SDIO and SPI
>> modules are reworked.
>>
>> Signed-off-by: Glen Lee <glen.lee@atmel.com>
>> ---
>> drivers/staging/wilc1000/linux_wlan_sdio.c | 8 ++--
>> drivers/staging/wilc1000/linux_wlan_sdio.h | 4 +-
>> drivers/staging/wilc1000/wilc_sdio.c | 66 +++++++++++++++---------------
>> drivers/staging/wilc1000/wilc_wlan_if.h | 4 +-
>> 4 files changed, 41 insertions(+), 41 deletions(-)
>>
>> diff --git a/drivers/staging/wilc1000/linux_wlan_sdio.c b/drivers/staging/wilc1000/linux_wlan_sdio.c
>> index bf05e22..8150d6f 100644
>> --- a/drivers/staging/wilc1000/linux_wlan_sdio.c
>> +++ b/drivers/staging/wilc1000/linux_wlan_sdio.c
>> @@ -53,9 +53,9 @@ static void wilc_sdio_interrupt(struct sdio_func *func)
>> }
>>
>>
>> -int linux_sdio_cmd52(sdio_cmd52_t *cmd)
>> +int linux_sdio_cmd52(void *wilc, sdio_cmd52_t *cmd)
> Again, why a void *? Please use the correct type, you know what it is,
> that way you can get rid of horrid stuff like this:
>
>> {
>> - struct sdio_func *func = g_linux_wlan->wilc_sdio_func;
>> + struct sdio_func *func = ((struct wilc*)wilc)->wilc_sdio_func;
> All of those casts should not be needed.
I was planning to change this void type with struct wilc as I commented in changelog.
But as you pointed out, I will do this after fixing current SDIO modules.
Regards,
glen lee.
>
> thanks,
>
> greg k-h
next prev parent reply other threads:[~2015-11-05 2:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-29 3:18 [PATCH RESEND 01/12] staging: wilc1000: wilc_wlan_txq_get_first: add argument struct wilc Glen Lee
2015-10-29 3:18 ` [PATCH RESEND 02/12] staging: wilc1000: linux_wlan_firmware_download: change argument Glen Lee
2015-10-29 3:18 ` [PATCH RESEND 03/12] staging: wilc1000: wilc_wlan_txq_remove_from_head: add new argument dev Glen Lee
2015-10-29 3:18 ` [PATCH RESEND 04/12] staging: wilc1000: wilc_wlan_txq_add_mgmt_pkt: " Glen Lee
2015-10-29 3:18 ` [PATCH RESEND 05/12] staging: wilc1000: wilc_wlan_txq_add_to_tail: add argument net_device Glen Lee
2015-10-29 3:18 ` [PATCH RESEND 06/12] staging: wilc1000: linux_wlan_start_firmware: change argument with dev Glen Lee
2015-10-29 3:18 ` [PATCH RESEND 07/12] staging: wilc1000: wilc_wlan_init: add argument struct net_device Glen Lee
2015-10-29 3:18 ` [PATCH RESEND 08/12] staging: wilc1000: wilc_wlan_init: add argument net_device Glen Lee
2015-10-29 3:18 ` [PATCH RESEND 09/12] staging: wilc1000: linux_wlan_get_firmware: change argument p_nic with dev Glen Lee
2015-10-29 3:18 ` [PATCH RESEND 10/12] staging: wilc1000: wl_wlan_cleanup: add argument struct wilc Glen Lee
2015-10-29 3:18 ` [PATCH RESEND 11/12] staging: wilc1000: rename os_context to wilc Glen Lee
2015-11-04 20:40 ` Greg KH
2015-10-29 3:18 ` [PATCH RESEND 12/12] staging: wilc1000: add argument wilc and use it instead of g_linux_wlan Glen Lee
2015-11-04 20:41 ` Greg KH
2015-11-05 2:22 ` glen lee [this message]
2015-11-05 3:04 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=563ABD77.2050303@atmel.com \
--to=glen.lee@atmel.com \
--cc=Nicolas.FERRE@atmel.com \
--cc=adel.noureldin@atmel.com \
--cc=adham.abozaeid@atmel.com \
--cc=austin.shin@atmel.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=leo.kim@atmel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=tony.cho@atmel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).