Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1909802pxv; Fri, 2 Jul 2021 15:54:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMPJaIN7NDH8gwYSbLWeF5Pbiti2hNofXFntVfK2GoGiG2h0bkZJ/MW+cZ9PV6N0eTMUC3 X-Received: by 2002:a05:6602:19:: with SMTP id b25mr1698229ioa.93.1625266457700; Fri, 02 Jul 2021 15:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625266457; cv=none; d=google.com; s=arc-20160816; b=wRjx60v3QHZf3Kgbve0yuAvX1DEe0zCrEratC7H2/nFxZHuk47b6zHYxDk4IxzLydH 7CGfRSian5csE5p4IDR3YP5143IADF6uYLcZe9hrrPe/BxnXEeRS86OwFWjM9DkJagC9 qmHXxSZounCB6Y3byf/lBRljMjDAhqcvaNKryx4kZeR1PWwaM5PrfBQQP2bPd05s7GjJ AzY/7EKqppouPsQdSBUIGiHxT7XJzQtlSLz2lWcz4LpqLDTay8nzk396+opWHRVi4x3c Nj9IEU5DW3cKWfzB87zKeJZt+U8i5AZ/ri5EwYQlU5uPsANNvI8wgWFn++w5zOhLk3fR vbVA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CUXIdV7IyIYLsaimkDpH07CvQJHcqNP5b8K6Nj4IrE4=; b=I3Ra8vCVHMzvAl//+G30SoPGUmAetVoOGAiCsskkSF5HtiAVS69TBK46eBmSh7/924 c6F5ISB4nZO1tg55IiYyfL/uRv40kQI6nBCpUFPL72nlJ1mNjZ4Qj+wAHeWdtwtzkLJ2 WxpvH0P8jtp/Rietd4KvjAOC0uwE2t2PcgCZWMnni1x7ByOtA0Ur7bw2XDuRrJxukYYY JeTb+XH/JuATmHxR4Z2KktfzYK8wC74LPLwrU/1zn/aVIpiDvYmXt4IT6szu5Qr4XY4y hFESaHh8AtLC9aOD3hHc0mENDIclgrCwgW6t4eq2a5zHidCWrTYWE+Dsn1vyPxfDab9N 4gmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=FCo1WJAA; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si4325135ilc.40.2021.07.02.15.54.06; Fri, 02 Jul 2021 15:54:17 -0700 (PDT) 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=@googlemail.com header.s=20161025 header.b=FCo1WJAA; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231236AbhGBWyn (ORCPT + 99 others); Fri, 2 Jul 2021 18:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbhGBWyg (ORCPT ); Fri, 2 Jul 2021 18:54:36 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DF34C0613DB; Fri, 2 Jul 2021 15:52:03 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id bg14so18604336ejb.9; Fri, 02 Jul 2021 15:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CUXIdV7IyIYLsaimkDpH07CvQJHcqNP5b8K6Nj4IrE4=; b=FCo1WJAAgMsJncjryBYDadhLVfBG08rP33YJnoPHG90FhHsz357vFHnIzBo1nLcjNR lH0eZWtHZtimnegirn9Y0rXLi4kQ4+xX+KulK73EWQ3DBEz6rl0SvUfd/V/Rh1lQSN1F Zb1MhTGoDljyVuvLlqIGvIm6af09vb1ongwRsIfrxnANCuMYJl/QupK1i36K+JgERmzf cl/JJUQ7WblSFFRaxZr0hYpoMIYyTzDQ/ozQGqO3W375dYqJxbsbVIaURxsPvNHjBplK WtGTwcVRwErEGHG2B2GL08fqqlW+IOBQd4lJIa3sk107tUmbgopKw+mC/oyf0OVmlXq5 pqyA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=CUXIdV7IyIYLsaimkDpH07CvQJHcqNP5b8K6Nj4IrE4=; b=f8us1ZWvu5GfkA9o46RKDDQtec5GQCYHqx0Qy2WHDRnRmr9jM1uO1eiZ587eVm949m nD8d6JacbjqsJ5ttVVrCQN7voIInH2Kgs7hGXBCQnFEXOWFbGcK/9NvuVVptsHvdH8Ak si2q5tFlk2HGFjmg+mgAgqCGqDv719agofrEoqD4xS+bKqWGP/xRPBA7vmE0mAlPPrw/ L9z9CnfVpqhDfJ66Cfr1vRyKj5mENUdHg4sjmM8U39O2UsjiIwAOUo45Ax+4aVhgQBJR 6HJYApmqGPrahu60qnJmj+2iPbdtWJCwV1Sml6UTwOIpPSaXZ+0XpHkorGdfNjh8XQx8 HYBA== X-Gm-Message-State: AOAM530P8SYKK5PIjlszj9LRbIn9hJ1W7+PmXVFh2/G/1ecVL/pkmI3K lapGxYEnxMDi+OppsdJsDT4YZRFxOA4= X-Received: by 2002:a17:906:4fc7:: with SMTP id i7mr2113939ejw.46.1625266321918; Fri, 02 Jul 2021 15:52:01 -0700 (PDT) Received: from localhost.localdomain (dynamic-095-117-063-046.95.117.pool.telefonica.de. [95.117.63.46]) by smtp.googlemail.com with ESMTPSA id r17sm1866964edt.33.2021.07.02.15.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 15:52:01 -0700 (PDT) From: Martin Blumenstingl To: linux-clk@vger.kernel.org, sboyd@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Blumenstingl , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v1 4/6] clk: stm32f4: Switch to clk_divider.determine_rate Date: Sat, 3 Jul 2021 00:51:43 +0200 Message-Id: <20210702225145.2643303-5-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210702225145.2643303-1-martin.blumenstingl@googlemail.com> References: <20210702225145.2643303-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org .determine_rate is meant to replace .round_rate in CCF in the future. Switch over to .determine_rate now that clk_divider_ops has gained support for that. Cc: Maxime Coquelin Cc: Alexandre Torgue Cc: linux-stm32@st-md-mailman.stormreply.com Signed-off-by: Martin Blumenstingl --- drivers/clk/clk-stm32f4.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/clk-stm32f4.c b/drivers/clk/clk-stm32f4.c index 18117ce5ff85..22267fb3e92e 100644 --- a/drivers/clk/clk-stm32f4.c +++ b/drivers/clk/clk-stm32f4.c @@ -709,10 +709,10 @@ static unsigned long stm32f4_pll_div_recalc_rate(struct clk_hw *hw, return clk_divider_ops.recalc_rate(hw, parent_rate); } -static long stm32f4_pll_div_round_rate(struct clk_hw *hw, unsigned long rate, - unsigned long *prate) +static int stm32f4_pll_div_determine_rate(struct clk_hw *hw, + struct clk_rate_request *req) { - return clk_divider_ops.round_rate(hw, rate, prate); + return clk_divider_ops.determine_rate(hw, req); } static int stm32f4_pll_div_set_rate(struct clk_hw *hw, unsigned long rate, @@ -738,7 +738,7 @@ static int stm32f4_pll_div_set_rate(struct clk_hw *hw, unsigned long rate, static const struct clk_ops stm32f4_pll_div_ops = { .recalc_rate = stm32f4_pll_div_recalc_rate, - .round_rate = stm32f4_pll_div_round_rate, + .determine_rate = stm32f4_pll_div_determine_rate, .set_rate = stm32f4_pll_div_set_rate, }; -- 2.32.0