From: Greg KH <gregkh@linuxfoundation.org>
To: Glen Lee <glen.lee@atmel.com>
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 11/12] staging: wilc1000: rename os_context to wilc
Date: Wed, 4 Nov 2015 12:40:43 -0800 [thread overview]
Message-ID: <20151104204043.GA15421@kroah.com> (raw)
In-Reply-To: <1446088732-12301-11-git-send-email-glen.lee@atmel.com>
On Thu, Oct 29, 2015 at 12:18:51PM +0900, Glen Lee wrote:
> This patch rename os_context to wilc because it is used as struct wilc and
> move os_private from struct wilc_wlan_os_context_t to struct wilc_wlan_inp_t.
> Finally, delete wilc_wlan_os_context_t.
>
> Signed-off-by: Glen Lee <glen.lee@atmel.com>
> ---
> drivers/staging/wilc1000/linux_wlan.c | 2 +-
> drivers/staging/wilc1000/wilc_sdio.c | 6 +++---
> drivers/staging/wilc1000/wilc_spi.c | 6 +++---
> drivers/staging/wilc1000/wilc_wlan_if.h | 6 +-----
> 4 files changed, 8 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
> index 017799f..d0161cd 100644
> --- a/drivers/staging/wilc1000/linux_wlan.c
> +++ b/drivers/staging/wilc1000/linux_wlan.c
> @@ -1012,7 +1012,7 @@ void linux_to_wlan(wilc_wlan_inp_t *nwi, struct wilc *nic)
>
> PRINT_D(INIT_DBG, "Linux to Wlan services ...\n");
>
> - nwi->os_context.os_private = (void *)nic;
> + nwi->wilc = (void *)nic;
Why do you need the cast to a void * here?
>
> #ifdef WILC_SDIO
> nwi->io_func.io_type = HIF_SDIO;
> diff --git a/drivers/staging/wilc1000/wilc_sdio.c b/drivers/staging/wilc1000/wilc_sdio.c
> index 300c571..82f68eb 100644
> --- a/drivers/staging/wilc1000/wilc_sdio.c
> +++ b/drivers/staging/wilc1000/wilc_sdio.c
> @@ -14,7 +14,7 @@
> #define WILC_SDIO_BLOCK_SIZE 512
>
> typedef struct {
> - void *os_context;
> + void *wilc;
This should be a struct wilc *, right? Don't add a void pointer for
something that you know what it is.
thanks,
greg k-h
next prev parent reply other threads:[~2015-11-04 20:40 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 [this message]
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
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=20151104204043.GA15421@kroah.com \
--to=gregkh@linuxfoundation.org \
--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=glen.lee@atmel.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.