From mboxrd@z Thu Jan 1 00:00:00 1970 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 79147C433EF for ; Mon, 11 Apr 2022 19:21:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C1C4983E4B; Mon, 11 Apr 2022 21:21:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="H3cNmeA8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C2E0083DA4; Mon, 11 Apr 2022 21:21:08 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 45C7C83DEF for ; Mon, 11 Apr 2022 21:21:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kabel@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EAE76B8187F; Mon, 11 Apr 2022 19:21:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46369C385A6; Mon, 11 Apr 2022 19:21:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649704864; bh=Bz5f3dFxTB38KhWgyCoZCbpv4OXqC1B/gCEkAh1Klug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H3cNmeA8T6b+b4zJ77a5gCHUGsztTTDaj9q5Xw/k7+Jb0Ztd34bKoY+qrJCT9pALR /x+QWLfLUNXnf1AJFMw0DKy4HtUWHkT8plfbdMTgPVi4t137K9mV/JWcD2U1vulVwp L5uNSBFhEPmqEVaal4fOQTZaH/zcFU5H/gYlEEMML6CtFBMXY1TLQeEnMwYbzpMJYC abUxaD2qDHw8uL8X6VrSBG4Z224urkX6mfGyZlheTAoglW3V2293MU2muiYgPOA2go Ce4DlcLot4zbBmk+xoKqTnmCJoIyfrfTp/TH2cLcmUfiyUEId+SUP6HteEiv6zmvRH u2B23MrwN3IJQ== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Ramon Fried Cc: Joe Hershberger , u-boot@lists.denx.de, =?UTF-8?q?Marek=20Beh=C3=BAn?= , Grygorii Strashko , Murali Karicheri Subject: [PATCH u-boot-net 3/3] driver: net: ti: keystone_net: Change priv member type Date: Mon, 11 Apr 2022 21:20:55 +0200 Message-Id: <20220411192055.31080-4-kabel@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220411192055.31080-1-kabel@kernel.org> References: <20220411192055.31080-1-kabel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean From: Marek BehĂșn Change type of private struct member mdio_base from void * to phys_addr_t. This allows us to drop 2 casts. Signed-off-by: Marek BehĂșn --- drivers/net/ti/keystone_net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ti/keystone_net.c b/drivers/net/ti/keystone_net.c index 3c1f616086..fbec69f571 100644 --- a/drivers/net/ti/keystone_net.c +++ b/drivers/net/ti/keystone_net.c @@ -92,7 +92,7 @@ struct ks2_eth_priv { phy_interface_t phy_if; ofnode phy_ofnode; int sgmii_link_type; - void * mdio_base; + phys_addr_t mdio_base; struct rx_buff_desc net_rx_buffs; struct pktdma_cfg *netcp_pktdma; void *hd; @@ -569,7 +569,7 @@ static int ks2_eth_probe(struct udevice *dev) * to re-use the same */ mdio_bus = cpsw_mdio_init("ethernet-mdio", - (u32)priv->mdio_base, + priv->mdio_base, EMAC_MDIO_CLOCK_FREQ, EMAC_MDIO_BUS_FREQ); if (!mdio_bus) { @@ -701,7 +701,7 @@ static int ks2_eth_parse_slave_interface(ofnode netcp, ofnode slave, pr_err("mdio dt not found\n"); return -ENODEV; } - priv->mdio_base = (void *)ofnode_get_addr(mdio); + priv->mdio_base = ofnode_get_addr(mdio); } if (priv->link_type == LINK_TYPE_SGMII_MAC_TO_PHY_MODE) { -- 2.35.1