From nobody Tue Feb 10 05:09:45 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BFB448C8B9; Wed, 21 Jan 2026 14:11:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769004697; cv=none; b=oZ5o1R3nWEn9hxpfuLqsMqYqJ8vZJT6gJVANvleUMOqqFYt7oyDR9au7pvXEhks5L24f7vseIfUIrqJSDxAH/dq5qUH7Q2vLM1uY7HSIhQ20X93h65IOtB3BVZ46Wt79Ada5hoVHwwc6y7B+DnSzw0tipdK8cUhOV1vhKN+GKzw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769004697; c=relaxed/simple; bh=AniItZ42tKauvjfP/x2WMTbXkdm/ea1F8M05YC6oMHc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Gh30Hmxin9YZpkvrO3hPI52o3mvA3plZa8usxz0dkUhdtAxxEcDUU6ywNuuAKKLHtL+3HJWod5p8TorjktQH9te2/hIF5pO0zPNTwrFVCVVmf0UN2z1hmf61PtsOzZ+46X41O2RQHYccYbh99STGWYxDU+mNjU3eeM2D9f6PNTw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C3CFC4CEF1; Wed, 21 Jan 2026 14:11:36 +0000 (UTC) From: Geert Uytterhoeven To: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 4/4] usb: phy: generic: Convert to device property API Date: Wed, 21 Jan 2026 15:11:23 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Convert from OF properties to device properties, to make the driver more generic and simpler. Signed-off-by: Geert Uytterhoeven --- drivers/usb/phy/phy-generic.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c index 9f3a38b93f2649a8..de26b302334de974 100644 --- a/drivers/usb/phy/phy-generic.c +++ b/drivers/usb/phy/phy-generic.c @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include =20 @@ -199,12 +199,7 @@ int usb_phy_gen_create_phy(struct device *dev, struct = usb_phy_generic *nop) int err =3D 0; u32 clk_rate =3D 0; =20 - if (dev->of_node) { - struct device_node *node =3D dev->of_node; - - if (of_property_read_u32(node, "clock-frequency", &clk_rate)) - clk_rate =3D 0; - } + device_property_read_u32(dev, "clock-frequency", &clk_rate); nop->gpiod_reset =3D devm_gpiod_get_optional(dev, "reset", GPIOD_ASIS); err =3D PTR_ERR_OR_ZERO(nop->gpiod_reset); @@ -269,7 +264,6 @@ EXPORT_SYMBOL_GPL(usb_phy_gen_create_phy); static int usb_phy_generic_probe(struct platform_device *pdev) { struct device *dev =3D &pdev->dev; - struct device_node *dn =3D dev->of_node; struct usb_phy_generic *nop; int err; =20 @@ -305,7 +299,7 @@ static int usb_phy_generic_probe(struct platform_device= *pdev) platform_set_drvdata(pdev, nop); =20 device_set_wakeup_capable(dev, - of_property_read_bool(dn, "wakeup-source")); + device_property_read_bool(dev, "wakeup-source")); =20 return 0; } --=20 2.43.0