Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1349913ybb; Sun, 29 Mar 2020 02:24:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsX2sXkvMhZmW99D7a8d8i+abYCgazLF3UkJmyYmhXwfBiteRuKHyQjGH40pM7Reb9v0Ndv X-Received: by 2002:a9d:748e:: with SMTP id t14mr3311104otk.334.1585473883182; Sun, 29 Mar 2020 02:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585473883; cv=none; d=google.com; s=arc-20160816; b=guIQCYwZSwys30x5DUNuVuPSexsQfPQQJP9cVwNKrttqM0aFl+3Eubws3+N2gTaApC LUguhINnhxZUb4PCMXVqYaSmgJK5iaG/nRneNti5Veihs8izbzsCY72ayRPhPHhtQ7Fj 7RzFFi3P0o/31Z/eY4KEL5j4dV8DvoFmsHXAA3Egb2jVgq7F/ppNY8oD2Y/ENJ577LfE 5nZ1bwK+YwOgvLviPyYwdHPqA1D2A23BuN+edRUjD4QXspXK/tpbTgvB3fptoslUkJS6 3S8GK9GfEh3iZ5u2GgqsEGoEQ87TA2ihfgmUIO13X//ObKxJ50N2KwW7ZYH7EVmGA6x2 ZV0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1hCX0Eu5BSFoHJWyRefAvnMuTN8T0slwSrNK+D8BVUE=; b=PrlKGDnuGN6hF7QPO65R1gMs/h2gmVmOaVkJP7Vt1jUBdsi5VL9NLhsrT8jCmjNTGd exB4+DPHaFwd+URUo1FuebPOY0jTkyRCu3pBvlFEeRL/mvreG+9u5tl7TOh2xuHqvNyq td50Xmg+0Y0pRXgdrofDtid6TcebiO7pd+KO8hx6eMp+MPQ3DUO96Q0xdA4kq9JQHVvc ClR6muZd4mAe0UO5atxyrQuImdMc5p1oymMGtve+ekZWkRs1wwMazByAfdRquYPzRafy 2tknQWVCQg+ofl0UCGN+/nqQ6Ta7ymfMmDrzpE1rU4PV24cwYEmiu0dta4Mn0SHhWDhD sNIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=seiBEgEW; 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 l143si4371560oih.269.2020.03.29.02.24.30; Sun, 29 Mar 2020 02:24:43 -0700 (PDT) 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=seiBEgEW; 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 S1727895AbgC2JWj (ORCPT + 99 others); Sun, 29 Mar 2020 05:22:39 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:37254 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727286AbgC2JWj (ORCPT ); Sun, 29 Mar 2020 05:22:39 -0400 Received: by mail-pf1-f194.google.com with SMTP id h72so7021665pfe.4; Sun, 29 Mar 2020 02:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1hCX0Eu5BSFoHJWyRefAvnMuTN8T0slwSrNK+D8BVUE=; b=seiBEgEWo89G0cm4eLCRBhoG4Ilds9sW/UkUVahSr62V/bc68xt4FSrpnMVkw8BfJn SO8C+hWFr7MqBP927XPkgd1v5y+scKb3sdMF15SV9rB60OKms3nLkpWT/7LpeBYmTx8T 5MZ2mRL/6P8rvgoMzla/a+Wl1XOW4dHDbn0pXPmU/uibNDN+JK2J1blSPVOMMEyPC+py NLawegDjyJ203XfGz6tILqTQPOzGBBFiy9IiaXDbsJQFs2cI81MQw9gW6l4zRcpzMFPQ K5jmOkIUmQrD0ABHxXfFEG6P+rX2v6oke5jSor4qvAI1G3hOQZ09GYU377NQXRtPDM/e a/PA== 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:mime-version :content-transfer-encoding; bh=1hCX0Eu5BSFoHJWyRefAvnMuTN8T0slwSrNK+D8BVUE=; b=hI9Vb/eNTK0LCsNVvriupsby62+XLxDhaYR5fUIC9Yyg4B97WGEhwQYBfZ4nSEz3TI 4oZbYTbFubR8H6avy4Fy+5mfeQ/Ur2zMh31BmVWViH3+pzG0TwcRiW3MbUvMC0oe8XsD c+Hm1DVnunLD8RciWW3yAQHZABCEPfgrljDpsVBxzMnNa5CcnS1eOg1GH/FkH2YnchYt ny2xYlEtRaFQqWz53Auncz4Qx2L+lN6ILXVZECFhtL+6ws3FLU+oMQPN1je/vHp04sE2 tr7xE2Y3uU9xx5uSh/IeKE2WEq1rqy4lT39azQcm37VfcSmyW+fFRNawMLHyUlpZSD3J 5lrg== X-Gm-Message-State: ANhLgQ3pr+J7IVhnKhfOAj5qbruR5bsJD9zBveLafq38rrPZfrH2G3CG JTak3F3HNuo8au/p5HJPPqE= X-Received: by 2002:a65:5a87:: with SMTP id c7mr7664384pgt.237.1585473758132; Sun, 29 Mar 2020 02:22:38 -0700 (PDT) Received: from OptiPlexFedora.fios-router.home ([47.144.161.84]) by smtp.gmail.com with ESMTPSA id b3sm7366962pgs.69.2020.03.29.02.22.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Mar 2020 02:22:37 -0700 (PDT) From: "John B. Wyatt IV" To: outreachy-kernel@googlegroups.com, Greg Kroah-Hartman , Payal Kshirsagar , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: "John B. Wyatt IV" Subject: [PATCH] staging: fbtft: Replace udelay with preferred usleep_range Date: Sun, 29 Mar 2020 02:22:04 -0700 Message-Id: <20200329092204.770405-1-jbwyatt4@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix style issue with usleep_range being reported as preferred over udelay. Issue reported by checkpatch. Please review. As written in Documentation/timers/timers-howto.rst udelay is the generally preferred API. hrtimers, as noted in the docs, may be too expensive for this short timer. Are the docs out of date, or, is this a checkpatch issue? Signed-off-by: John B. Wyatt IV --- drivers/staging/fbtft/fb_agm1264k-fl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c index eeeeec97ad27..019c8cce6bab 100644 --- a/drivers/staging/fbtft/fb_agm1264k-fl.c +++ b/drivers/staging/fbtft/fb_agm1264k-fl.c @@ -85,7 +85,7 @@ static void reset(struct fbtft_par *par) dev_dbg(par->info->device, "%s()\n", __func__); gpiod_set_value(par->gpio.reset, 0); - udelay(20); + usleep_range(20, 20); gpiod_set_value(par->gpio.reset, 1); mdelay(120); } -- 2.25.1