From patchwork Mon Jul 22 07:43:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 169348 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp7186173ilk; Mon, 22 Jul 2019 00:45:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeLysaUUxf503LP6Kj2jg3kU4R4aQ78Fcl1MA6m/HpGrMRnQ2iV3MJg0APQ3OtCLf2alOy X-Received: by 2002:a17:902:112a:: with SMTP id d39mr74785703pla.254.1563781522390; Mon, 22 Jul 2019 00:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563781522; cv=none; d=google.com; s=arc-20160816; b=gOVHVH6h618BjmZ1JvsXYbyGgjUBxoMgksmOmPm4OEwYJM3X1yXEyDKSiC4J5MDaEA uo6mvMutbi7ylh8aXxPKjpsowO7tRJh52sjNRglGq2Cg3qsx809arW3KuX4Vo/uz15KL kSa26Uxe2pfL8qIZZ3N1YGjgGj9pMBhKUHh+8hnGKOxPgYEtg8vL9VGNY19Xzm4ByYFu 7/XEG06duP6hl2kI9qY62lmma25jrZIMxDQY0obB1ncPXMnaSB7gZznPbs8JI+o2+9iT ZO64QKsHtKEogePv3ouB3bY5mwpBGwe2lKQxrUYK3NBoqCdk+JtSYO4Mz7As240z8qej eL5A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Cvs2jQ6E8QumG1+g/91Qa+StJztCy/jld8Uie+sMfw8=; b=wqU9DI2EWSmc0018ZQwJh07NyIk7o+jkhVHASQ76sN//wTOhgFLvOEEmQXR3MHbB0V niZ0maKRwGUvk/NNWXsw4Rp/1g6unTKpjH3kVTnDjys+P7Te/ZG0nqDga8yiX3V9LbJG 7nIUFle8tFohI1AnX68sxfNoHnFrXJ79BSBpHw6ljYCa9ITlPC34RFHdrAPCY7dUr4Mq SPDYtlIyvcW63uvZlCLDuRvNCMmA6+obpyGVwuJPEAGtDg1oUqeCj08PLT3qpHr+R1xK vdf6W706bPMgt6gKBRNckNMi+kOOaORclybO4qm5SwQTFFe2/ncFsnnhLs5ynLoP3LPP jdew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hSYrcq+b; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m184si8445548pgm.580.2019.07.22.00.45.21; Mon, 22 Jul 2019 00:45:22 -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=@kernel.org header.s=default header.b=hSYrcq+b; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728186AbfGVHpU (ORCPT + 29 others); Mon, 22 Jul 2019 03:45:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:59826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbfGVHpT (ORCPT ); Mon, 22 Jul 2019 03:45:19 -0400 Received: from localhost.localdomain (unknown [223.226.98.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 78448222F9; Mon, 22 Jul 2019 07:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563781518; bh=Uzwq5/4J5MdKAccI6gISq/8RUt+kwmeDRELR7MXlFbc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hSYrcq+bfRHUpfls88+m04dCVsD2Eg9nPtp47qM0KYmJje4lw6RWGWpZ1lIBvo1Aq bTlj/7+HQX+XsQnRRzCGSqPGUaryqwZQGm93Jfp4CeG9XKXO7jTZmfIid4CqsLS5Ry +NUXjm+YCx2reicYnAmSyjwIkW4pLg8x3wJYfytk= From: Vinod Koul To: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Deepak Katragadda , Andy Gross , David Brown , Michael Turquette , linux-clk@vger.kernel.org, Taniya Das , linux-kernel@vger.kernel.org Subject: [PATCH v4 1/5] clk: qcom: clk-alpha-pll: Remove unnecessary cast Date: Mon, 22 Jul 2019 13:13:44 +0530 Message-Id: <20190722074348.29582-2-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190722074348.29582-1-vkoul@kernel.org> References: <20190722074348.29582-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 8f9fab480c7a ("linux/kernel.h: fix overflow for DIV_ROUND_UP_ULL") fixed the overflow for DIV_ROUND_UP_ULL, so we no longer need the cast for DIV_ROUND_UP_ULL, so remove the unnecessary u64 casts. Signed-off-by: Vinod Koul --- drivers/clk/qcom/clk-alpha-pll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c index 0ced4a5a9a17..b48707693ffd 100644 --- a/drivers/clk/qcom/clk-alpha-pll.c +++ b/drivers/clk/qcom/clk-alpha-pll.c @@ -832,7 +832,7 @@ static int clk_alpha_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate, int div; /* 16 -> 0xf, 8 -> 0x7, 4 -> 0x3, 2 -> 0x1, 1 -> 0x0 */ - div = DIV_ROUND_UP_ULL((u64)parent_rate, rate) - 1; + div = DIV_ROUND_UP_ULL(parent_rate, rate) - 1; return regmap_update_bits(pll->clkr.regmap, PLL_USER_CTL(pll), PLL_POST_DIV_MASK(pll) << PLL_POST_DIV_SHIFT, @@ -1094,7 +1094,7 @@ static int clk_alpha_pll_postdiv_fabia_set_rate(struct clk_hw *hw, return -EINVAL; } - div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); + div = DIV_ROUND_UP_ULL(parent_rate, rate); for (i = 0; i < pll->num_post_div; i++) { if (pll->post_div_table[i].div == div) { val = pll->post_div_table[i].val;