From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933038AbcA0OPW (ORCPT ); Wed, 27 Jan 2016 09:15:22 -0500 Received: from mail-yk0-f176.google.com ([209.85.160.176]:35161 "EHLO mail-yk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932935AbcA0OPT (ORCPT ); Wed, 27 Jan 2016 09:15:19 -0500 MIME-Version: 1.0 In-Reply-To: References: <643e31066f3378b9521dd9cd8c569ccfcf185d61.1451659910.git.geliangtang@163.com> Date: Wed, 27 Jan 2016 15:15:18 +0100 Message-ID: Subject: Re: [PATCH 5/7] mmc: usdhi6rol0: use to_delayed_work From: Ulf Hansson To: Geliang Tang Cc: Rabin Vincent , linux-mmc , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1 January 2016 at 15:59, Geliang Tang wrote: > Use to_delayed_work() instead of open-coding it. > > Signed-off-by: Geliang Tang Thanks, applied for next. Kind regards Uffe > --- > drivers/mmc/host/usdhi6rol0.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/usdhi6rol0.c b/drivers/mmc/host/usdhi6rol0.c > index b47122d..b2752fe 100644 > --- a/drivers/mmc/host/usdhi6rol0.c > +++ b/drivers/mmc/host/usdhi6rol0.c > @@ -1630,7 +1630,7 @@ static irqreturn_t usdhi6_cd(int irq, void *dev_id) > */ > static void usdhi6_timeout_work(struct work_struct *work) > { > - struct delayed_work *d = container_of(work, struct delayed_work, work); > + struct delayed_work *d = to_delayed_work(work); > struct usdhi6_host *host = container_of(d, struct usdhi6_host, timeout_work); > struct mmc_request *mrq = host->mrq; > struct mmc_data *data = mrq ? mrq->data : NULL; > -- > 2.5.0 > >