From patchwork Fri Jan 1 15:48:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 7939751 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8EBB7BEEE5 for ; Fri, 1 Jan 2016 15:52:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D1B4C20225 for ; Fri, 1 Jan 2016 15:52:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 085292012E for ; Fri, 1 Jan 2016 15:52:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752112AbcAAPul (ORCPT ); Fri, 1 Jan 2016 10:50:41 -0500 Received: from m50-134.163.com ([123.125.50.134]:57128 "EHLO m50-134.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752052AbcAAPtg (ORCPT ); Fri, 1 Jan 2016 10:49:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=XjY0S9rWhydV9qPiSq Cg25x5c+kXXUINP18QQv78mSc=; b=BS66ofn1iuJC7zmU5yw2NXyF51+NMRQw4A 1IlDKNc/CrG0W7j03drvYQMilg4whxoY01wPUZ55u5esP2BjjBMmiKGk85GNO6tM aSF+kKME/T4WtF4OIAS6txGe/gMIQsvRWTEUSDWVN2GZvCjxH1dBn/69Wf844zGQ DLnzjwqV0= Received: from localhost (unknown [116.77.129.183]) by smtp4 (Coremail) with SMTP id DtGowEDZekf5n4ZWEjUUAA--.9125S3; Fri, 01 Jan 2016 23:49:13 +0800 (CST) From: Geliang Tang To: Kalle Valo Cc: Geliang Tang , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] wl1251: use to_delayed_work Date: Fri, 1 Jan 2016 23:48:54 +0800 Message-Id: <9a028ab8d643492c36d42d9d89d212471d12f966.1451661580.git.geliangtang@163.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <5df0633bd7779dd21192f7a41c634efd78f8606c.1451661580.git.geliangtang@163.com> References: <5df0633bd7779dd21192f7a41c634efd78f8606c.1451661580.git.geliangtang@163.com> In-Reply-To: <5df0633bd7779dd21192f7a41c634efd78f8606c.1451661580.git.geliangtang@163.com> References: <5df0633bd7779dd21192f7a41c634efd78f8606c.1451661580.git.geliangtang@163.com> X-CM-TRANSID: DtGowEDZekf5n4ZWEjUUAA--.9125S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gw1xAF48Gw4UKr4kKryDWrg_yoW3XrX_ur WIvFs2g340k34rKrWY9F4fA3yFy34kuFn5GrsIva98Za1UZrWUGFW5Zr9rJry8Gr4xuF13 W3sxJF4UC39rAjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUaL9UUUUUU== X-Originating-IP: [116.77.129.183] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbiNRrimVSILKcHtwAAsz Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/net/wireless/ti/wl1251/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ti/wl1251/ps.c b/drivers/net/wireless/ti/wl1251/ps.c index b9e27b9..fa01b0a 100644 --- a/drivers/net/wireless/ti/wl1251/ps.c +++ b/drivers/net/wireless/ti/wl1251/ps.c @@ -32,7 +32,7 @@ void wl1251_elp_work(struct work_struct *work) struct delayed_work *dwork; struct wl1251 *wl; - dwork = container_of(work, struct delayed_work, work); + dwork = to_delayed_work(work); wl = container_of(dwork, struct wl1251, elp_work); wl1251_debug(DEBUG_PSM, "elp work");