Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5468C35FFB for ; Wed, 19 Mar 2025 03:22:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1FBC581E13; Wed, 19 Mar 2025 04:19:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1742354385; bh=4bQfaHH6VFCdyRAw6SXaJwyFJN8iVNgicRtW7CXLy7M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Gz7Pb73Cuxvr+57gO+u44xc+NawBGcKnbHR1djmR/kzpzO/4STq4r2ovJxLdN5PAW yA3VzmEjJtolz9uqMoWbufiVSOc21BVu2TJn8gz5QYk513UnnCS1C9Gfn0EKnfSxy9 KpM4GU+NuvtfLAScF6P1AbPEvfPDJnzVzzIjtSZy3KNde5xEHqVCQzMfoBD+ugQx67 TpIKRm41kVFwh/Fc6MG3bRMm7eGc7redtevkZLBK93ECu/yxGkQGyDD7FdR033WNqB RAE8/MgGRuGMzGbvb4P20ahAZco4TzF+5bFVj+V8+GWv1xN+AsTM8F95crEgJJuUXt +kLYeKQeHXapg== Received: by phobos.denx.de (Postfix, from userid 109) id BE4B681EE5; Wed, 19 Mar 2025 04:19:40 +0100 (CET) Received: from mx.denx.de (mx.denx.de [89.58.32.78]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A1E9B81F4E for ; Wed, 19 Mar 2025 04:19:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marex@denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.b="ZhYnZULT"; dkim-atps=neutral Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 51C45101E91C3; Wed, 19 Mar 2025 04:19:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=mx-20241105; t=1742354378; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=4bQfaHH6VFCdyRAw6SXaJwyFJN8iVNgicRtW7CXLy7M=; b=ZhYnZULTIYFoVD5owBh1FO2NAFK+LBX6RRVdW5td4V5NMq8N8EZTPeuuZ134jsvwRt3wiY +WCDi2TXAzHgMtn/Bl5A4lzl6hw0K1gPghDUDMprgpWftClebyujI14Oy1m1dLQ5lswnN/ YJbKeMeYw9x+Z1tZNtrGwGTxcF5qJio3PaZeW4kczFF+QAQVXOK6YqW5cZzH5rkTsMlKKI qgMq/sc5uMAVmLoR5oNDVS9sbWY6HOJSmIfmkZGOEGh+lHAvz2850TO1sUXnBlv4eZKtXJ iYcnzHMuNHWdJtTsZWTTxW5qHgSsCQKK6yanY8+PsKhDtGPq4eQMOmSqiLZP4A== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Christoph Niedermaier , Dong Aisheng , Hou Zhiqiang , Michael Trimarchi , Peng Fan , Tim Harvey , Tom Rini , uboot-imx@nxp.com Subject: [PATCH 22/24] clk: clk-fixed-factor: Use struct udevice instead of struct device Date: Wed, 19 Mar 2025 04:17:32 +0100 Message-ID: <20250319031852.233537-23-marex@denx.de> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250319031852.233537-1-marex@denx.de> References: <20250319031852.233537-1-marex@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Use U-Boot specific struct udevice instead of Linux compatibility struct device in clk-fixed-factor registration. Signed-off-by: Marek Vasut --- Cc: Christoph Niedermaier Cc: Dong Aisheng Cc: Hou Zhiqiang Cc: Michael Trimarchi Cc: Peng Fan Cc: Tim Harvey Cc: Tom Rini Cc: u-boot@lists.denx.de Cc: uboot-imx@nxp.com --- drivers/clk/clk-fixed-factor.c | 4 ++-- include/linux/clk-provider.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index 068798cf9b0..ff61fb4d706 100644 --- a/drivers/clk/clk-fixed-factor.c +++ b/drivers/clk/clk-fixed-factor.c @@ -37,7 +37,7 @@ const struct clk_ops ccf_clk_fixed_factor_ops = { .get_rate = clk_factor_recalc_rate, }; -struct clk *clk_hw_register_fixed_factor(struct device *dev, +struct clk *clk_hw_register_fixed_factor(struct udevice *dev, const char *name, const char *parent_name, unsigned long flags, unsigned int mult, unsigned int div) { @@ -65,7 +65,7 @@ struct clk *clk_hw_register_fixed_factor(struct device *dev, return clk; } -struct clk *clk_register_fixed_factor(struct device *dev, const char *name, +struct clk *clk_register_fixed_factor(struct udevice *dev, const char *name, const char *parent_name, unsigned long flags, unsigned int mult, unsigned int div) { diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 198f3ff0e42..5ea2171492e 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -233,7 +233,7 @@ struct clk *clk_register_composite(struct udevice *dev, const char *name, int clk_register(struct clk *clk, const char *drv_name, const char *name, const char *parent_name); -struct clk *clk_register_fixed_factor(struct device *dev, const char *name, +struct clk *clk_register_fixed_factor(struct udevice *dev, const char *name, const char *parent_name, unsigned long flags, unsigned int mult, unsigned int div); -- 2.47.2