[U-Boot] [PATCH] cmd_sf: rename "speed" to "hz"
Mike Frysinger
vapier at gentoo.org
Fri Dec 12 03:30:02 CET 2008
On Thursday 11 December 2008 18:59:46 Wolfgang Denk wrote:
> In message Mike Frysinger you wrote:
> > The term "hz" is used everywhere else when talking about the frequency of
> > the SPI bus, so have the sf command use it as well to stay consistent.
> > It even presents itself as "hz" when showing user help.
> >
> > Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> > ---
> > common/cmd_sf.c | 10 +++++-----
> > 1 files changed, 5 insertions(+), 5 deletions(-)
> >
> > diff --git a/common/cmd_sf.c b/common/cmd_sf.c
> > index 8c0a751..902e51d 100644
> > --- a/common/cmd_sf.c
> > +++ b/common/cmd_sf.c
> > @@ -8,8 +8,8 @@
> >
> > #include <asm/io.h>
> >
> > -#ifndef CONFIG_SF_DEFAULT_SPEED
> > -# define CONFIG_SF_DEFAULT_SPEED 1000000
> > +#ifndef CONFIG_SF_DEFAULT_HZ
> > +# define CONFIG_SF_DEFAULT_HZ 1000000
>
> I consider "FREQ" (and even "SPEED) a much better name than "HZ".
>
> "HZ" is the unit of what you are measuring, not a name for what you
> are measuring.
then they should all be converted. not 90% using hz and 10% using something
else. "speed" is bad as it doesnt convey the unit while "hz" is pretty clear.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20081211/12343581/attachment-0001.pgp
More information about the U-Boot
mailing list