From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: axienet: Utilize of_get_mac_address() Date: Thu, 08 Dec 2016 11:34:21 -0500 (EST) Message-ID: <20161208.113421.1653870087082595146.davem@davemloft.net> References: <20161207122529.29508-1-tklauser@distanz.ch> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, michal.simek@xilinx.com, soren.brinkmann@xilinx.com, f.fainelli@gmail.com To: tklauser@distanz.ch Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:34088 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753985AbcLHQeX (ORCPT ); Thu, 8 Dec 2016 11:34:23 -0500 In-Reply-To: <20161207122529.29508-1-tklauser@distanz.ch> Sender: netdev-owner@vger.kernel.org List-ID: From: Tobias Klauser Date: Wed, 7 Dec 2016 13:25:28 +0100 > Do not open code getting the MAC address exclusively from the > "local-mac-address" property, but instead use of_get_mac_address() > which looks up the MAC address using the 3 typical property names. > > Also avoid casting away the const qualifier of the return value by > making axienet_set_mac_address() take a const void* address. > > Follows commit b34296a9c047 ("net: ethoc: Utilize > of_get_mac_address()"). > > Cc: Florian Fainelli > Signed-off-by: Tobias Klauser Applied.