Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2003001imu; Sun, 16 Dec 2018 14:14:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/WW4qm8yXcNcqKK3cwLrCfMR1AdgPEd2EBr6SCbM2J52TNATCQfbZtVt6XvBIsDCuF41XvC X-Received: by 2002:a17:902:24e7:: with SMTP id l36mr10578105plg.61.1544998451663; Sun, 16 Dec 2018 14:14:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544998451; cv=none; d=google.com; s=arc-20160816; b=jv8HzJ/Q+X+sncEjWF96yXsKZHAFRCOANmZwg2u9DufEpoz9R7YvprCS6xRSy/ffSn OKj2JvSORLSrm1l7dI6v8clQVSK1lBqGfSgC+5XC3CG/cL7GBRcAgc996Qk8J3rsmpVN P4hd5W2p7PcpddideFl5BiOhy1TWvuGtljuXx5lq5ofjt/a0DwYnvd5NTGT7kVOCu3ul enA9dpFuSTXKGYdf22Q9aW7X8LjumEpVRrdpDZfXglGjACfVFAk7s84iEf2GTALLSI9X Lpelj262TIHQshHuJYnnvzv5gzmH2cJ7ZvHq6v3KzaGqCSzQk7wpZSXykwDAz5O/m1bY 4pRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=bwVsWfSOkHXisZL6Xc4MoMxw3RY51YJz4Sl3LpEOmkw=; b=qpw1AQ9JrcD9Eas6o+gCCJkh9NXRK1PDz3QbJYmHaAyCDIyHH2s+ww1+chlLyPNEiW lWzAM5jJxYDhF62v+MRHHrG2pDNF/7+G5bTr0omUzJc1+Co73YekuPgfidUBnLC3cn3K sF8xn3gTT4QprF8x7va2rBfSweYcOyHi+qEg2BVNqmrLDYFGka37Vo39TG1C/SW+bEU/ pleRcZBYI3K/S3mPk2QRdqKsR5VS+RNtd3srKKa9ocjD+hZBAYb/D9lwlEjOyzwhVJx/ ieouNY2CRbyK1EOgNl2N1QnY3pNwiAiS4Onsrk4Z7sIp8q/iI1IsVcKDojLKA3B2gqTf 1RJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OMY31ieN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si9259275pgq.434.2018.12.16.14.13.56; Sun, 16 Dec 2018 14:14:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OMY31ieN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730958AbeLPVn5 (ORCPT + 99 others); Sun, 16 Dec 2018 16:43:57 -0500 Received: from mail-yw1-f67.google.com ([209.85.161.67]:35730 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727256AbeLPVn5 (ORCPT ); Sun, 16 Dec 2018 16:43:57 -0500 Received: by mail-yw1-f67.google.com with SMTP id h32so4454180ywk.2; Sun, 16 Dec 2018 13:43:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=bwVsWfSOkHXisZL6Xc4MoMxw3RY51YJz4Sl3LpEOmkw=; b=OMY31ieNevhcW0U7sGXVmBZHyDN989kLngfx89x7rlx8MSSt9npnfyoKy1G0p3RY9a 20bPMwtsJY1rBbgmCqD5M7L3pw44WD6tcq1DymBf7d6w7LfckhvcdDF98+fpqr+fsJBj hyFHXUZ9v39+YKTn8O4VD75d7VFTXl9gObACWMa0mEArOfUhHK+V/SdZQlOsULbzrZZX DZlsburJBLXmt3vlXlqR1qmuZojqmXcJJ3id4Ur/4AN57pGY7OphsQnNcOh7MRXjzwKO QpdR9ilmjbxrA4pl9IZlAbqb0SEMtNLcJpyqQoHMcB7ZEcvHXtbOjq/LWNSEq4Sb6uvj DNcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bwVsWfSOkHXisZL6Xc4MoMxw3RY51YJz4Sl3LpEOmkw=; b=lfIo7D/0l3JiC7v272K4ah9aB22IunVoLDfcgg5uTX6rC+nIGOvVssEuM08OjEYLDU WeB7y5WD5VBjWUCdDdzRuW12Jr4s37j1HusiEPHAIStNar9HVROgzwQ+iPUxoKzVzD08 vwx08C55J/aJMtLGgg+H/Qx6ZbXOpc6OMpwV+LqMOeraPAoFIa3BcOr22BL7QeSPrFOx wLJiWmTKHQjGftQCkuyLMZpJkjDjEMJyupFoppMHMQQhiLbRYYTmu7cu6lj78vFMdUXW jREUiwT4EyNYZlWTPHmEDQ/9eEt6RVFxTo/7MHVVlKREkys3ZzCfsX3BBGbv1uQlKR5Y rgJg== X-Gm-Message-State: AA+aEWZJJayqONYBKSUge2Vsu9OysUZdTyqwZvU8TNtSwxF8RRKILYTN wpvJi2onENbXIUcIYhI1FvP4Vsrt X-Received: by 2002:a81:a355:: with SMTP id a82mr10862027ywh.445.1544996636315; Sun, 16 Dec 2018 13:43:56 -0800 (PST) Received: from ubuntu ([67.191.186.148]) by smtp.gmail.com with ESMTPSA id u132sm3212511ywc.11.2018.12.16.13.43.55 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 16 Dec 2018 13:43:55 -0800 (PST) From: Amir Mahdi Ghorbanian To: marvin24@gmx.de Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, ac100@lists.launchpad.net, linux-tegra@vger.kernel.org Subject: [PATCH] Staging: nvec: nvec: fixed check style issues Date: Sun, 16 Dec 2018 13:43:54 -0800 Message-Id: <1544996634-10427-1-git-send-email-indigoomega021@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replaced udelay() by the preferred usleep_range() function. Signed-off-by: Amir Mahdi Ghorbanian --- drivers/staging/nvec/nvec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 08027a3..6f35f92 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c @@ -626,7 +626,7 @@ static irqreturn_t nvec_interrupt(int irq, void *dev) break; case 2: /* first byte after command */ if (status == (I2C_SL_IRQ | RNW | RCVD)) { - udelay(33); + usleep_range(0, 33); if (nvec->rx->data[0] != 0x01) { dev_err(nvec->dev, "Read without prior read command\n"); @@ -713,7 +713,7 @@ static irqreturn_t nvec_interrupt(int irq, void *dev) * We experience less incomplete messages with this delay than without * it, but we don't know why. Help is appreciated. */ - udelay(100); + usleep_range(0, 100); return IRQ_HANDLED; } -- 2.7.4