Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp409263pxb; Wed, 3 Mar 2021 06:26:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVdqLTwpYsYcVmdPibP8AWJb2eS7p1Ailbd2Nzscf9b7Ukevcm9oFSlPAbnH1kStSOnIVn X-Received: by 2002:a17:907:77c1:: with SMTP id kz1mr26647553ejc.481.1614781572067; Wed, 03 Mar 2021 06:26:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614781572; cv=none; d=google.com; s=arc-20160816; b=eiMJD+IwR7bFdgXq6XUoPwmA4fqytlPs53VjPin0QgdGehctStuqGzaU2CYd7ypk2M Hjv++mVHF8KvDvzcb4ZeSieF6cv/RWlh9HysFxkEZNykeuRjnkHWVaG+63cOLZc3IvE9 1zfL1NMXscYsLJ10SWRQALO4Sn53rVd5eNMUgyFbGT+ClvEy6Z1ZB7iKF2dgNMjPtpie +EW6wpJhxUYjHfm+ICw+ppnxg0q9NTYveeltT0raHI5nSbhjuqgXR6jHU6+mpgQ2Tut2 zYxMmJKhkro4yR78zrYSOuMXg8gug3PZWabJsjcgnlWLnH022bbn8QOW9uMO/vrDEA8o RyPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Oz6lsf6ckremocHT8SsJnRS7xVOwv+O+d4HUu68FrXo=; b=R0G49ROka6kNCOpTHV4u0GpLApkhF+XaWRM6StaceDR8/PjVMUsoZpQJS6xNyuZOJQ ImOMYcVcWYGY6uNnks0ksA53K+2CZyF9yw8lFQEXoiXaEwDODFx4hmzlVwQ/mvJ23l4F qb+MHFfHHo6SKf/qRlDUNfSSdvX5y2VlG24vKF0m4MOukowoF3ZAA43OpxZvooJGmmLN X8z7325QOhH2NoFxFiaM+neEtPwMl9YYUQ5CNiXS1Qs4T77ckgJ43mYaHDujyn0TlQ7E ckKaB8o2JcSWQyY5idDztRDM5xUqhMSO0yq6K8GWne9/U9ZFTOg6X9yRhzEGibT7xtuE Z+Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CjukDUd8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ot6si4474866ejb.337.2021.03.03.06.25.14; Wed, 03 Mar 2021 06:26:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CjukDUd8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237090AbhCAU7k (ORCPT + 99 others); Mon, 1 Mar 2021 15:59:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:48196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237358AbhCARLS (ORCPT ); Mon, 1 Mar 2021 12:11:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AEF7364ED9; Mon, 1 Mar 2021 16:42:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616979; bh=UUua6UXLZUyGz5W22RL/hvUmbMLew6PK3JO1vXiNIkg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CjukDUd8b5ecB3bDfiJGiBEE1ZYijHQ8i7I5ZasKEPleP0tuTinKleNWRaSb4a6CB QLOL2XQiXQqZPT0P+74MjAMPivGvj9M+DfillEyu65sZVKvNHwDRqTwfwVxsLyM58w PcBu//usKApVlOOp0ARTmMUNf5ITWdynb94g3hzI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Miguel Ojeda , Sasha Levin Subject: [PATCH 4.19 130/247] auxdisplay: ht16k33: Fix refresh rate handling Date: Mon, 1 Mar 2021 17:12:30 +0100 Message-Id: <20210301161038.038916323@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven [ Upstream commit e89b0a426721a8ca5971bc8d70aa5ea35c020f90 ] Drop the call to msecs_to_jiffies(), as "HZ / fbdev->refresh_rate" is already the number of jiffies to wait. Fixes: 8992da44c6805d53 ("auxdisplay: ht16k33: Driver for LED controller") Signed-off-by: Geert Uytterhoeven Signed-off-by: Miguel Ojeda Signed-off-by: Sasha Levin --- drivers/auxdisplay/ht16k33.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c index 21393ec3b9a4a..194370ae37dd0 100644 --- a/drivers/auxdisplay/ht16k33.c +++ b/drivers/auxdisplay/ht16k33.c @@ -117,8 +117,7 @@ static void ht16k33_fb_queue(struct ht16k33_priv *priv) { struct ht16k33_fbdev *fbdev = &priv->fbdev; - schedule_delayed_work(&fbdev->work, - msecs_to_jiffies(HZ / fbdev->refresh_rate)); + schedule_delayed_work(&fbdev->work, HZ / fbdev->refresh_rate); } /* -- 2.27.0