From patchwork Mon Jan 29 11:33:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 10189539 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0BC786020C for ; Mon, 29 Jan 2018 11:34:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E32C2223A7 for ; Mon, 29 Jan 2018 11:34:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7520268AE; Mon, 29 Jan 2018 11:34:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7AD4E223A7 for ; Mon, 29 Jan 2018 11:34:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751798AbeA2Ldh (ORCPT ); Mon, 29 Jan 2018 06:33:37 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:10425 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751598AbeA2Ldd (ORCPT ); Mon, 29 Jan 2018 06:33:33 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20180129113331epoutp035990df0d4fa0a664461f1c116a79f2d3~ORKfDT3-i1788417884epoutp03q; Mon, 29 Jan 2018 11:33:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20180129113331epoutp035990df0d4fa0a664461f1c116a79f2d3~ORKfDT3-i1788417884epoutp03q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1517225611; bh=BCkZOjQ3JbIYsJUcjmqNFdS5ULU4Lb2s2xsQoKVGMdw=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=vbBSzxi0FXR0WEHmfjAsPAHjCrdAA6sLUEBRLTJ5+AEY2vuPoS4cTv9FEfCnaxd7s wXVVoTlXJHGRzuqsjbiGIPlzAcPwyF2RkNWyjF2SnFTzmTR9gg/TcMCVwHYvfzLO+J di+QaVMfhn/br1YPhRuYho+uI8Wit/F3so+bRP8k= Received: from epsmges2p1.samsung.com (unknown [182.195.40.70]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20180129113331epcas1p26e933a504f94bca76d6a109556676d69~ORKexBtt80773307733epcas1p2B; Mon, 29 Jan 2018 11:33:31 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id B1.A4.04131.B860F6A5; Mon, 29 Jan 2018 20:33:31 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20180129113331epcas2p3fab78689f5f00a3049ae675bbc8dee59~ORKecgcOH1482014820epcas2p3E; Mon, 29 Jan 2018 11:33:31 +0000 (GMT) X-AuditID: b6c32a45-403ff70000001023-6a-5a6f068b7fbe Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 7F.EC.03890.A860F6A5; Mon, 29 Jan 2018 20:33:31 +0900 (KST) Received: from gangnam.samsung ([10.113.77.200]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P3B00AJIERSSUA0@mmp2.samsung.com>; Mon, 29 Jan 2018 20:33:30 +0900 (KST) From: Andi Shyti To: Dmitry Torokhov , Simon Shields Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH 3/8] Input: mms114 - replace mdelay with msleep Date: Mon, 29 Jan 2018 20:33:18 +0900 Message-id: <20180129113323.18961-4-andi.shyti@samsung.com> X-Mailer: git-send-email 2.15.1 In-reply-to: <20180129113323.18961-1-andi.shyti@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCKsWRmVeSWpSXmKPExsWy7bCmmW43W36UweOz0hbbjzxjtVj84zmT xeFFLxgtbn76xmpxedccNostZ26zObB5XF/yidlj56y77B4t6zexefRtWcXo8XmTXABrVKpN RmpiSmqRQmpecn5KZl66rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtAFSgpliTml QKGAxOJiJX07m6L80pJUhYz84hJbpWhDQyM9QwNzPSMjIz0T41grI1OgkoTUjGXv3QrWs1as P7WVsYFxP0sXIyeHhICJRMvM70xdjFwcQgI7GCWmnuqFcr4zSixtn8gGU/V6Wz9Yh5DABkaJ nS0WEEWfGCWu3XzBBJJgE9CUaLr9A6xBRCBMon/1UmaQImaBZkaJvxdaGEESwgL2Eo/PbwOb xCKgKvFx1Ud2EJtXwFpi19pDUNvkJSZsaQKr4RSwkeibeZoNZJCEwF9Wia71DawQRS4Sp270 QD0hLPHq+BZ2CFta4tmqjYwQNtDmbbeTIZonMEp82vuVCSJhLPFsYReYzSzAJ9Fx+C9QMwdQ nFeio00IosRD4uC0I1AHOUosXzwBGi79jBItJz8wT2CUWsDIsIpRLLWgODc9tdiowFCvODG3 uDQvXS85P3cTIziFaLnuYJxxzucQowAHoxIP74fQvCgh1sSy4srcQ4wSHMxKIrz3CoFCvCmJ lVWpRfnxRaU5qcWHGE2BgTORWUo0OR+Y3vJK4g1NLA1MzMyMzM0sgMlBnLctwCVKSCA9sSQ1 OzW1ILUIpo+Jg1OqgbF/3uSEt+I1n9fE2khOfb5brXQnJ/d6GXnh460xvh8i9kwzmvmZlW9x bOerFm/fVbf0Zpsm1DHcdXht/q5gbY2y4LUwt68TzPYeXbxT8KtP6NUAj0S/2N57Hlf/6nzp 3fxP8ob8NS+B0mVndY6W/JD/Z99SmX3+wvNHMYdYfi+5/++gQfyB1TlKLMUZiYZazEXFiQBu W1flNwMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplluLIzCtJLcpLzFFi42I5/e+xoG43W36UwccPLBbbjzxjtVj84zmT xeFFLxgtbn76xmpxedccNostZ26zObB5XF/yidlj56y77B4t6zexefRtWcXo8XmTXABrFJdN SmpOZllqkb5dAlfGsvduBetZK9af2srYwLifpYuRk0NCwETi9bZ+MFtIYB2jxJ6ZKhD2J0aJ LyvFQGw2AU2Jpts/2EBsEYEwib/7PjN2MXJxMAs0M0q0H7gElhAWsJd4fH4b2CAWAVWJj6s+ soPYvALWErvWHmKDWCYvMWFLE1gNp4CNRN/M02wQy6wl+p6+YZnAyLOAkWEVo2RqQXFuem6x UYFRXmq5XnFibnFpXrpecn7uJkZg4Gw7rNW/g/HxkvhDjAIcjEo8vB9C86KEWBPLiitzDzFK cDArifDeKwQK8aYkVlalFuXHF5XmpBYfYpTmYFES5+XPPxYpJJCeWJKanZpakFoEk2Xi4JRq YBSbOH/7ztQM7SPdm4IPPcu7IlR3eC+Pbe7dTXelivfktomk80e7H/0cmytwdtbhdnuv8sOr uC5N7JtsJa3PNn/PTLtUr3NWH5r2vFbVz626Niv5woXX98zTFgiyT49PXn5rvyGX7KJ8602R f9YHvtR8nyn5aeov8ZcbGj1Ov3Av/zGL68x95+1KLMUZiYZazEXFiQDVHSqHGAIAAA== X-CMS-MailID: 20180129113331epcas2p3fab78689f5f00a3049ae675bbc8dee59 X-Msg-Generator: CA CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20180129113331epcas2p3fab78689f5f00a3049ae675bbc8dee59 X-RootMTR: 20180129113331epcas2p3fab78689f5f00a3049ae675bbc8dee59 References: <20180129113323.18961-1-andi.shyti@samsung.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 200ms seconds is a very long time to keep the CPU busy looping. Use msleep instead. Signed-off-by: Andi Shyti --- drivers/input/touchscreen/mms114.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c index 94a97049d711..fb4435ae506b 100644 --- a/drivers/input/touchscreen/mms114.c +++ b/drivers/input/touchscreen/mms114.c @@ -290,7 +290,7 @@ static int mms114_start(struct mms114_data *data) return error; } - mdelay(MMS114_POWERON_DELAY); + msleep(MMS114_POWERON_DELAY); error = mms114_setup_regs(data); if (error < 0) {