[U-Boot] [PATCH 1/3] miiphy: constify device name

Ben Warren biggerbadderben at gmail.com
Thu Jul 29 19:51:18 CEST 2010


  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<vapier at gentoo.org>
> ---
>   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


More information about the U-Boot mailing list