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 2A183C433EF for ; Wed, 6 Apr 2022 22:33:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A745083E40; Thu, 7 Apr 2022 00:33:24 +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="KSiXD37T"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 826AA83E20; Thu, 7 Apr 2022 00:33:18 +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 2261683E42 for ; Thu, 7 Apr 2022 00:33:16 +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 B4CD5B82552; Wed, 6 Apr 2022 22:33:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 399B9C385A5; Wed, 6 Apr 2022 22:33:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649284394; bh=CtUdxgut+L4+a3gQxWnSIHICDbDbCXQ4zrxrXxeCp8o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KSiXD37TW4ah/7c+ITqSTQesBdgALMHNTI3qalVTedirlKBiLh/rcrCI0LduOALy3 oX8najbKWWz8bYN9xEFDQZszgbFUoM7OKULg2JGu+ADfM4Y5EZJJWoCNtZq7hodwIA 4lLKKeMecFAl0cvS9DmBVcSYlyUR4ph3DjB8as26Pnaw6DAmNXd3Jii/cNfsz/UVf1 kfAieEXxZyzTZ4pyPDqyY/rhrR52gH2SFQwQaC+vxYib8w+CKMCKaSBEvmk1oRr7FU jBubOY2IvO5UsxKLc+tJv1MH/Eqxny4WDaT46V/XOqzMePrMrTxa6ZlTEumxII53iF jftQHhm3L6OIw== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Joe Hershberger , Ramon Fried Cc: u-boot@lists.denx.de, =?UTF-8?q?Marek=20Beh=C3=BAn?= , Vladimir Oltean Subject: [PATCH u-boot-net v4 01/14] net: mdio-uclass: fix type for phy_mode_str and phy_handle_str Date: Thu, 7 Apr 2022 00:32:55 +0200 Message-Id: <20220406223308.9833-2-kabel@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220406223308.9833-1-kabel@kernel.org> References: <20220406223308.9833-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 These global variables should both have type static const char * const Signed-off-by: Marek BehĂșn Reviewed-by: Ramon Fried Reviewed-by: Vladimir Oltean --- net/mdio-uclass.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index e74e34f78f..5735afe49e 100644 --- a/net/mdio-uclass.c +++ b/net/mdio-uclass.c @@ -17,13 +17,14 @@ /* DT node properties for MAC-PHY interface */ #define PHY_MODE_STR_CNT 2 -static const char *phy_mode_str[PHY_MODE_STR_CNT] = { "phy-mode", - "phy-connection-type" }; +static const char * const phy_mode_str[PHY_MODE_STR_CNT] = { + "phy-mode", "phy-connection-type" +}; /* DT node properties that reference a PHY node */ #define PHY_HANDLE_STR_CNT 3 -const char *phy_handle_str[PHY_HANDLE_STR_CNT] = { "phy-handle", - "phy", - "phy-device" }; +static const char * const phy_handle_str[PHY_HANDLE_STR_CNT] = { + "phy-handle", "phy", "phy-device" +}; void dm_mdio_probe_devices(void) { -- 2.35.1