From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Thu, 29 Jul 2010 10:51:18 -0700 Subject: [U-Boot] [PATCH 1/3] miiphy: constify device name In-Reply-To: <1280270110-22879-1-git-send-email-vapier@gentoo.org> References: <1280270110-22879-1-git-send-email-vapier@gentoo.org> Message-ID: <4C51BF96.30906@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Mike, On 7/27/2010 3:35 PM, Mike Frysinger wrote: > The driver name does not need to be writable, so constify it. > > Signed-off-by: Mike Frysinger > --- > arch/arm/cpu/arm920t/at91rm9200/ether.c | 4 +- > arch/arm/cpu/ixp/npe/include/npe.h | 4 +- > arch/arm/cpu/ixp/npe/miiphy.c | 4 +- > arch/m68k/include/asm/fec.h | 4 +- > arch/mips/cpu/au1x00_eth.c | 4 +- > arch/powerpc/cpu/mpc8220/fec.c | 8 +++--- > arch/powerpc/cpu/mpc8xx/fec.c | 8 +++--- > arch/powerpc/cpu/ppc4xx/miiphy.c | 4 +- > board/evb64260/eth.c | 6 ++-- > board/prodrive/p3mx/mv_eth.c | 8 +++--- > common/cmd_mii.c | 2 +- > common/miiphyutil.c | 41 ++++++++++++++++--------------- > drivers/net/4xx_enet.c | 4 +- > drivers/net/altera_tse.c | 4 +- > drivers/net/at91_emac.c | 4 +- > drivers/net/bfin_mac.c | 4 +- > drivers/net/davinci_emac.c | 4 +- > drivers/net/designware.c | 4 +- > drivers/net/eepro100.c | 4 +- > drivers/net/ep93xx_eth.c | 8 +++--- > drivers/net/fec_mxc.c | 4 +- > drivers/net/macb.c | 4 +- > drivers/net/mcfmii.c | 4 +- > drivers/net/mpc512x_fec.c | 8 +++--- > drivers/net/mpc5xxx_fec.c | 8 +++--- > drivers/net/mvgbe.c | 4 +- > drivers/net/ns7520_eth.c | 4 +- > drivers/net/tsec.c | 8 +++--- > drivers/qe/uec.c | 6 ++-- > include/miiphy.h | 30 +++++++++++----------- > 30 files changed, 107 insertions(+), 106 deletions(-) As usually happens when going for const-correctness, it becomes an exercise in peeling back the layers of compile warnings. When I run MAKEALL ppc, I get all sorts of 'discards qualifier' warnings. Anyway, I think they're fixed and as soon as MAKEALL finishes running I'll post a follow-on patch. thanks, Ben