X-GM-THRID: 6208113115518730240 X-Received: by 10.180.210.71 with SMTP id ms7mr2399315wic.4.1445439424211; Wed, 21 Oct 2015 07:57:04 -0700 (PDT) X-BeenThere: outreachy-kernel@googlegroups.com Received: by 10.25.25.67 with SMTP id 64ls248166lfz.41.gmail; Wed, 21 Oct 2015 07:57:03 -0700 (PDT) X-Received: by 10.112.145.201 with SMTP id sw9mr930455lbb.13.1445439423321; Wed, 21 Oct 2015 07:57:03 -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 cm6si1028351wib.1.2015.10.21.07.57.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Oct 2015 07:57:03 -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.17,712,1437429600"; d="scan'208";a="183860874" 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; 21 Oct 2015 16:57:02 +0200 Date: Wed, 21 Oct 2015 16:56:53 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Shraddha Barke cc: outreachy-kernel@googlegroups.com Subject: Re: [Outreachy kernel] [PATCH] Staging: rtl8192u: Eliminate use of MSECS macro In-Reply-To: <1445438958-7663-1-git-send-email-shraddha.6596@gmail.com> Message-ID: References: <1445438958-7663-1-git-send-email-shraddha.6596@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, 21 Oct 2015, Shraddha Barke wrote: > Use msecs_to_jiffies instead of driver specific macro > MSECS. This is done using Coccinelle and semantic > patch used for this is as follows: > > @@expression t;@@ > > - MSECS(t) > + msecs_to_jiffies(t) Can you now get rid of the marco? julia > > Signed-off-by: Shraddha Barke > --- > drivers/staging/rtl8192u/r8192U_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c > index 678ecf6..e06864f 100644 > --- a/drivers/staging/rtl8192u/r8192U_core.c > +++ b/drivers/staging/rtl8192u/r8192U_core.c > @@ -3516,7 +3516,7 @@ static void watch_dog_timer_callback(unsigned long data) > > queue_delayed_work(priv->priv_wq, &priv->watch_dog_wq, 0); > mod_timer(&priv->watch_dog_timer, > - jiffies + MSECS(IEEE80211_WATCH_DOG_TIME)); > + jiffies + msecs_to_jiffies(IEEE80211_WATCH_DOG_TIME)); > } > static int _rtl8192_up(struct net_device *dev) > { > -- > 2.1.4 > > -- > 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/1445438958-7663-1-git-send-email-shraddha.6596%40gmail.com. > For more options, visit https://groups.google.com/d/optout. >