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 95EE0C433EF for ; Tue, 29 Mar 2022 20:09:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8112084074; Tue, 29 Mar 2022 22:09:08 +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="JXducXlv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BC8B983FCF; Tue, 29 Mar 2022 22:08:56 +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 80C0284056 for ; Tue, 29 Mar 2022 22:08:52 +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 F10E8B81856; Tue, 29 Mar 2022 20:08:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5AA7C340F2; Tue, 29 Mar 2022 20:08:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648584530; bh=ko03aMYlBFe8+TrWiqRyJ4b6OyVqyR/D8I0EslLhtNE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JXducXlv97rE6pJnPPmTuGmHJWL1/S7V010w8ddGXS/9EQHHG6hf7v81FDM4T0lSz bUh9UeFsv5zUI2v8/kV/oHnGKxYDrbmpi7PKx6bPU4leMmZ1h8hfopAATQ69X2HmtI NIdQjDXLPJjkTb1++hOxIzsqAwX2+HoUaPhbMGXwv9tmhaPF6YUzhUtDSGqvAaTG61 u3Hh2+S+wOgzvSY3lDqkxUOiswl056Bxj6GE9ZNyp1oT//TWjNBRd91qJUEfSX96zP 4hmFbH4AhOqFtrZHMsY0T5uW4gB5JLBY1T1cOFdx9MdwMaNlIZPWcPh71fRqnE6DNS Xfsv6OtMpLQpQ== 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?= Subject: [PATCH u-boot-net v3 01/14] net: mdio-uclass: fix type for phy_mode_str and phy_handle_str Date: Tue, 29 Mar 2022 22:08:32 +0200 Message-Id: <20220329200845.13435-2-kabel@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220329200845.13435-1-kabel@kernel.org> References: <20220329200845.13435-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 --- 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.34.1