X-GM-THRID: 6210650684709142528 X-Received: by 10.194.248.131 with SMTP id ym3mr10632434wjc.7.1446030056666; Wed, 28 Oct 2015 04:00:56 -0700 (PDT) X-BeenThere: outreachy-kernel@googlegroups.com Received: by 10.28.12.71 with SMTP id 68ls125278wmm.48.gmail; Wed, 28 Oct 2015 04:00:56 -0700 (PDT) X-Received: by 10.28.170.75 with SMTP id t72mr221733wme.5.1446030056248; Wed, 28 Oct 2015 04:00:56 -0700 (PDT) Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr. [192.134.164.83]) by gmr-mx.google.com with ESMTPS id en3si660815wib.3.2015.10.28.04.00.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Oct 2015 04:00:56 -0700 (PDT) Received-SPF: neutral (google.com: 192.134.164.83 is neither permitted nor denied by domain of julia.lawall@lip6.fr) client-ip=192.134.164.83; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.134.164.83 is neither permitted nor denied by domain of julia.lawall@lip6.fr) smtp.mailfrom=julia.lawall@lip6.fr X-IronPort-AV: E=Sophos;i="5.20,209,1444687200"; d="scan'208";a="184826680" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 28 Oct 2015 12:00:53 +0100 Date: Wed, 28 Oct 2015 12:00:29 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Shivani Bhardwaj cc: outreachy-kernel@googlegroups.com Subject: Re: [Outreachy kernel] [PATCH 1/2] Staging: wilc1000: linux_wlan_sdio: Drop unnecessary wrapper functions In-Reply-To: <16ce4db27490fbed8cbe035c6bf7bc6993b19c80.1446029550.git.shivanib134@gmail.com> Message-ID: References: <16ce4db27490fbed8cbe035c6bf7bc6993b19c80.1446029550.git.shivanib134@gmail.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 28 Oct 2015, Shivani Bhardwaj wrote: > Remove the functions linux_sdio_get_speed(), linux_sdio_set_max_speed() > and linux_sdio_set_default_speed(). Replace their calls with appropriate > functions. Also, definitions associated with these functions should be removed. > > Signed-off-by: Shivani Bhardwaj > --- > drivers/staging/wilc1000/linux_wlan_sdio.c | 42 +++--------------------------- > 1 file changed, 4 insertions(+), 38 deletions(-) > > diff --git a/drivers/staging/wilc1000/linux_wlan_sdio.c b/drivers/staging/wilc1000/linux_wlan_sdio.c > index 1f8d874..d58baf2 100644 > --- a/drivers/staging/wilc1000/linux_wlan_sdio.c > +++ b/drivers/staging/wilc1000/linux_wlan_sdio.c > @@ -1,26 +1,12 @@ > #include "wilc_wfi_netdevice.h" > - > #include > #include > #include > #include > #include > > - > - Not clear why these blank lines are removed. They are not needed, but they are not part of what is described in the commit message either. > #define SDIO_MODALIAS "wilc1000_sdio" > > -#if defined(CUSTOMER_PLATFORM) > -/* TODO : User have to stable bus clock as user's environment. */ > - #ifdef MAX_BUS_SPEED > - #define MAX_SPEED MAX_BUS_SPEED > - #else > - #define MAX_SPEED 50000000 > - #endif > -#else > - #define MAX_SPEED (6 * 1000000) /* Max 50M */ > -#endif > - > struct wilc_sdio { > struct sdio_func *func; > struct wilc *wilc; > @@ -104,7 +90,6 @@ int linux_sdio_cmd53(sdio_cmd53_t *cmd) > > sdio_release_host(func); > > - Sane for this one. julia > if (ret < 0) { > PRINT_ER("wilc_sdio_cmd53..failed, err(%d)\n", ret); > return 0; > @@ -206,11 +191,6 @@ static int linux_sdio_set_speed(int speed) > return 1; > } > > -static int linux_sdio_get_speed(void) > -{ > - return local_sdio_func->card->host->ios.clock; > -} > - > int linux_sdio_init(void *pv) > { > > @@ -219,30 +199,16 @@ int linux_sdio_init(void *pv) > **/ > > > - sdio_default_speed = linux_sdio_get_speed(); > + sdio_default_speed = local_sdio_func->card->host->ios.clock; > return 1; > } > > void linux_sdio_deinit(void *pv) > { > - > - /** > - * TODO : > - **/ > - > + /** > + * TODO : > + **/ > > sdio_unregister_driver(&wilc_bus); > } > > -int linux_sdio_set_max_speed(void) > -{ > - return linux_sdio_set_speed(MAX_SPEED); > -} > - > -int linux_sdio_set_default_speed(void) > -{ > - return linux_sdio_set_speed(sdio_default_speed); > -} > - > - > - > -- > 2.1.0 > > -- > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com. > To post to this group, send email to outreachy-kernel@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/16ce4db27490fbed8cbe035c6bf7bc6993b19c80.1446029550.git.shivanib134%40gmail.com. > For more options, visit https://groups.google.com/d/optout. >