Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758685AbbFAEYb (ORCPT ); Mon, 1 Jun 2015 00:24:31 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:45123 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754718AbbFAEYV (ORCPT ); Mon, 1 Jun 2015 00:24:21 -0400 Date: Sun, 31 May 2015 21:23:49 -0700 (PDT) Message-Id: <20150531.212349.1040388068581621723.davem@davemloft.net> To: vthakkar1994@gmail.com Cc: sebastian.hesselbarth@gmail.com, julia.lawall@lip6.fr, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: mv643xx_eth: Use setup_timer From: David Miller In-Reply-To: <20150601040602.GA3767@vaishali-Ideapad-Z570> References: <20150601040602.GA3767@vaishali-Ideapad-Z570> X-Mailer: Mew version 6.6 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 31 May 2015 21:24:21 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 775 Lines: 26 From: Vaishali Thakkar Date: Mon, 1 Jun 2015 09:36:02 +0530 > Use the timer API function setup_timer instead of structure field > assignments to initialize a timer. > > A simplified version of the Coccinelle semantic patch that performs > this transformation is as follows: > > @change@ > expression e, func, da; > @@ > > -init_timer (&e); > +setup_timer (&e, func, da); > -e.data = da; > -e.function = func; > > Signed-off-by: Vaishali Thakkar Applied to net-next, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/