From patchwork Wed Jun 12 09:17:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 166530 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3437428ilk; Wed, 12 Jun 2019 02:20:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyXW/h/VhGciWkw0Fg2kOS7aIkrt7bjJGlq0CvgS3VfLbDZqtxpeQzOnZJAKqs0YHwHSCx X-Received: by 2002:a17:902:341:: with SMTP id 59mr27154403pld.20.1560331241396; Wed, 12 Jun 2019 02:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560331241; cv=none; d=google.com; s=arc-20160816; b=W+bj+gyvQDhoZh/Jd3XSRzJZFWr1gblugyFMbl0gITSdiQdxwcS5WNGTSzgvWWFI9c /KyNhobo4Y0hg/W/DM/Dp1/sAJymNR/boyUdyLd4awsGkJDjM8utLy8BRTwd/DanxxwW 6PGKr64hVFBYcXWtFIPz6dQ4q5jFbjtfo200A+kKN4wx7Lay+bSyG2XrdGHjqoLYjiRZ Jnj7ftopxVUgg+qXIgrIFfU+CCbgRniYvCh+DkAvxGEPkqKiQsVkoP439AYGC0nVmCPc ghYubg63E8AWBUqxFP85vMHYyeBrbtgwWrOjD2wNW1k5QzYX23MpTB1Cid0bV0mJnkOJ N8Ng== 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=XbuM2eVHoWF9USVPnlQZ8xEOlii/92ocRo4RZHR7iQ8=; b=oif4B2p+MH2ODBZGXg+V9FCWJV6x5Nq55ao5h3laUA4a2WBidZfXHwSzlirNdYrOqm Bw+bOdQbhiAFnOSYk04Dpp+2tmLd6BsZKs6tu+gMJFDq/ohC6yiwtkoSFi/HtLAssJA1 f6+mlxhdahnC2GdnsmZ9prTzZQfvKVxctEpoz9k4QAXT/JVbkhGPMbvQKn44hVKB5VT5 S3W2GfQmtkUDjgs8IBER8u1tXp6QxFtdBA9vqeVjb59FFFXWxfhxuUnA5xSl9YkZaVmb KHWpEYSYC5LGeBu1JkIXGTY8SUcHU4RmiOD3fw1/izfDuYatDWf+U+xU/kCUgDEJO5R+ AT4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=swWChb+N; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 s12si7195384plr.338.2019.06.12.02.20.41; Wed, 12 Jun 2019 02:20:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=swWChb+N; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S2408703AbfFLJUk (ORCPT + 15 others); Wed, 12 Jun 2019 05:20:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:38586 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406714AbfFLJUk (ORCPT ); Wed, 12 Jun 2019 05:20:40 -0400 Received: from localhost.localdomain (unknown [106.200.205.167]) (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 9DCC1208C2; Wed, 12 Jun 2019 09:20:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560331239; bh=BfsGQZR4Ybb+MkIRvK9Va0OCM+SFEMOozdC+GsS/y6I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=swWChb+NB4og5PUkGnpGHlutKPUPZT76YPFHjo3uPjuurts+S/nJuEDrkjCLXwtNb IoYS8brvJ2yA2fmWLTwk9YlWeuk5NvW5BapobvQiUkYWOSYk0AvyqF4upVCXrDHepL QFNdsCzsBjPJkvxi/LilB2qax/TdhMsKzVlYu9y4= From: Vinod Koul To: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , David Brown , Michael Turquette , linux-clk@vger.kernel.org Subject: [PATCH v2 1/5] clk: qcom: clk-alpha-pll: Remove unnecessary cast Date: Wed, 12 Jun 2019 14:47:18 +0530 Message-Id: <20190612091722.9377-2-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190612091722.9377-1-vkoul@kernel.org> References: <20190612091722.9377-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org We have couple of instances in the driver with unnecessary u64 casts, drop them. 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;