From patchwork Fri Jan 1 14:59:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 7939541 Return-Path: X-Original-To: patchwork-linux-input@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 9BC49BEEED for ; Fri, 1 Jan 2016 15:00:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF1DC20520 for ; Fri, 1 Jan 2016 15:00:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 02B44204CF for ; Fri, 1 Jan 2016 15:00:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751565AbcAAO7r (ORCPT ); Fri, 1 Jan 2016 09:59:47 -0500 Received: from m50-135.163.com ([123.125.50.135]:56243 "EHLO m50-135.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751894AbcAAO7d (ORCPT ); Fri, 1 Jan 2016 09:59:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=LaCM/90LDObQRap/Rq qdzp487Tnjr5yfH8f3TJQJuNk=; b=VvsSRKlr94JPMJ/+dYr4j4/j/BVst4HRmD /BkI8Ja8lAhOIbieWp5lXZAO+i9mQMcq9d+XV3w6gV6cZJAH3Vjtztb67zG3SvOr zcDN7MsHOu8+XSmxc3z+8R4OhQCRALhq4QgiG8pXiX7mYcE84ia6Mb8AGw9Fh8Ux n5pL0Akz8= Received: from localhost (unknown [116.77.129.183]) by smtp5 (Coremail) with SMTP id D9GowADH3+RRlIZWyonnCQ--.47829S3; Fri, 01 Jan 2016 22:59:30 +0800 (CST) From: Geliang Tang To: Dmitry Torokhov Cc: Geliang Tang , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/7] input: touchscreen: use to_delayed_work Date: Fri, 1 Jan 2016 22:59:08 +0800 Message-Id: <178deb25bed7a09d97a5b37e75fa4db9f3194e1d.1451659910.git.geliangtang@163.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <643e31066f3378b9521dd9cd8c569ccfcf185d61.1451659910.git.geliangtang@163.com> References: <643e31066f3378b9521dd9cd8c569ccfcf185d61.1451659910.git.geliangtang@163.com> In-Reply-To: <643e31066f3378b9521dd9cd8c569ccfcf185d61.1451659910.git.geliangtang@163.com> References: <643e31066f3378b9521dd9cd8c569ccfcf185d61.1451659910.git.geliangtang@163.com> X-CM-TRANSID: D9GowADH3+RRlIZWyonnCQ--.47829S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gw1xAF48Gw15ury8ur45ZFb_yoW3Crc_u3 y0vF92gryjvrWxtrnIkrnxAryvyw18Zw1vk3WxtrWfJw47Jr4jqa97Zw18A3y7Ww4xAF13 CwnxXF15uws7AjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUaL9UUUUUU== X-Originating-IP: [116.77.129.183] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbiNRLimVSILKaLJQAAsk Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@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/input/touchscreen/pcap_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/pcap_ts.c b/drivers/input/touchscreen/pcap_ts.c index 23a354a..0e3fc41 100644 --- a/drivers/input/touchscreen/pcap_ts.c +++ b/drivers/input/touchscreen/pcap_ts.c @@ -87,7 +87,7 @@ static void pcap_ts_read_xy(void *data, u16 res[2]) static void pcap_ts_work(struct work_struct *work) { - struct delayed_work *dw = container_of(work, struct delayed_work, work); + struct delayed_work *dw = to_delayed_work(work); struct pcap_ts *pcap_ts = container_of(dw, struct pcap_ts, work); u8 ch[2];