mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Re: [PATCH 00/10] miscelleanous beautification patches
  2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
@ 2014-05-30  9:05 ` Holger Schurig
  2014-05-30  9:07 ` [PATCH 01/10] drvlist: factor the driver list out of 'devinfo' Holger Schurig
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:05 UTC (permalink / raw)
  To: barebox

Oh, while converting quilt-patches to git some patch comments (behind
---") were lost. As they are only explanatory, nothing bad happens,
but I'll send them as e-mails now.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 08/10] bootm: beautify output
  2014-05-30  9:07 ` [PATCH 08/10] bootm: beautify output Holger Schurig
@ 2014-05-30  9:06   ` Holger Schurig
  0 siblings, 0 replies; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:06 UTC (permalink / raw)
  To: barebox

The output is now ...

Without -v:

    Loading ARM Linux zImage '/mnt/linux/arch/arm/boot/zImage'
    commandline: console=ttymxc0,115200n8 quiet root=/dev/ram rdinit=/sbin/init

With -v:

    Loading ARM Linux zImage '/mnt/linux/arch/arm/boot/zImage'
    OS image not yet relocated
    Loading initrd GZIP compressed '/mnt/image/boot/initrd.img.gz'
    initrd image not yet relocated
    Passing control to ARM zImage handler
    no OS load address, defaulting to 0x10707000
    no initrd load address, defaulting to 0x109c9000
    commandline: console=ttymxc0,115200n8 quiet root=/dev/ram rdinit=/sbin/init

    Starting kernel at 0x10707000, initrd at 0x109c9000, oftree at 0x10a98000...

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 03/10] devinfo: make the output of "devinfo DEVICE" nicer
  2014-05-30  9:07 ` [PATCH 03/10] devinfo: make the output of "devinfo DEVICE" nicer Holger Schurig
@ 2014-05-30  9:07   ` Holger Schurig
  2014-06-02  8:19     ` Juergen Borleis
  0 siblings, 1 reply; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:07 UTC (permalink / raw)
  To: barebox

Example output before of "devinfo fb0":

    resources:
    num   : 0
    start : 0x4c242000
    size  : 0x00300000
    driver: none
    bus: none

    available modes:
    hsd100pxn1           1024x768@0

    Parameters:
              enable = 0
           mode_name = hsd100pxn1 ("hsd100pxn1")


Example output after this patch:

    Resources:
      num: 0
      start: 0x4c242000
      size: 0x00300000
    Available modes:
      hsd100pxn1: 1024x768@0
    Parameters:
      enable: 0
      mode_name: hsd100pxn1 ("hsd100pxn1")

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [PATCH 00/10] miscelleanous beautification patches
@ 2014-05-30  9:07 Holger Schurig
  2014-05-30  9:05 ` Holger Schurig
                   ` (11 more replies)
  0 siblings, 12 replies; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:07 UTC (permalink / raw)
  To: barebox

The following patches mostly change the output of various commands.

Holger Schurig (10):
  drvlist: factor the driver list out of 'devinfo'
  devinfo: reduce indentation
  devinfo: make the output of "devinfo DEVICE" nicer
  parameters: only show possible enumerations if there are any
  net: show enetaddr in lowercase
  meminfo: purely cosmetical changes
  misc: upper-case some abbreviations
  bootm: beautify output
  beautify PHY driver names
  device drivers: harmonize underscore in driver names

 arch/arm/Kconfig                                |    4 +-
 arch/arm/boards/at91rm9200ek/init.c             |    8 ++--
 arch/arm/boards/at91sam9261ek/init.c            |    4 +-
 arch/arm/boards/at91sam9m10g45ek/init.c         |    2 +-
 arch/arm/boards/nhk8815/setup.c                 |    2 +-
 arch/arm/boards/phytec-phycore-imx27/pcm970.c   |    2 +-
 arch/arm/boards/tny-a926x/init.c                |    4 +-
 arch/arm/boards/usb-a926x/init.c                |    4 +-
 arch/arm/cpu/cpu.c                              |    2 +-
 arch/arm/lib/armlinux.c                         |    2 +-
 arch/arm/lib/bootm.c                            |    4 +-
 arch/arm/mach-imx/iim.c                         |    2 +-
 arch/arm/mach-imx/imx25.c                       |    2 +-
 arch/arm/mach-imx/imx27.c                       |    2 +-
 arch/arm/mach-imx/imx31.c                       |    2 +-
 arch/arm/mach-imx/imx35.c                       |    2 +-
 arch/arm/mach-imx/imx51.c                       |    2 +-
 arch/arm/mach-imx/imx53.c                       |    2 +-
 arch/arm/mach-imx/ocotp.c                       |    2 +-
 arch/mips/mach-ar231x/ar231x_reset.c            |    2 +-
 arch/nios2/boards/generic/generic.c             |    2 +-
 arch/x86/boards/x86_generic/intf_platform_ide.c |    4 +-
 commands/Kconfig                                |   44 +++++++++++-------
 commands/Makefile                               |    1 +
 commands/bootm.c                                |   15 ++++---
 commands/devinfo.c                              |   55 +++++++++++------------
 commands/drvinfo.c                              |   47 +++++++++++++++++++
 common/bootm.c                                  |    8 ++--
 common/dlmalloc.c                               |    8 ++--
 common/filetype.c                               |   20 ++++-----
 common/tlsf_malloc.c                            |    2 +-
 drivers/ata/intf_platform_ide.c                 |    2 +-
 drivers/clk/clk-ar933x.c                        |    2 +-
 drivers/clocksource/arm_smp_twd.c               |    2 +-
 drivers/clocksource/nomadik.c                   |    2 +-
 drivers/gpio/gpio-davinci.c                     |    2 +-
 drivers/gpio/gpio-pl061.c                       |    2 +-
 drivers/input/gpio_keys.c                       |    2 +-
 drivers/input/twl6030_pwrbtn.c                  |    2 +-
 drivers/mci/atmel_mci.c                         |    2 +-
 drivers/mci/dw_mmc.c                            |    2 +-
 drivers/mci/mci-bcm2835.c                       |    2 +-
 drivers/mci/mci_spi.c                           |    2 +-
 drivers/mci/mxs.c                               |    2 +-
 drivers/mci/s3c.c                               |    2 +-
 drivers/mtd/devices/mtd_dataflash.c             |    2 +-
 drivers/mtd/nand/atmel_nand.c                   |    2 +-
 drivers/mtd/nand/nand_imx.c                     |    2 +-
 drivers/mtd/nand/nand_mxs.c                     |    2 +-
 drivers/mtd/nand/nand_omap_gpmc.c               |    4 +-
 drivers/mtd/nand/nand_s3c24xx.c                 |    2 +-
 drivers/mtd/nand/nomadik_nand.c                 |    2 +-
 drivers/mtd/nor/cfi_flash.c                     |    2 +-
 drivers/net/altera_tse.c                        |    2 +-
 drivers/net/ar231x.c                            |    2 +-
 drivers/net/arc_emac.c                          |    2 +-
 drivers/net/at91_ether.c                        |    2 +-
 drivers/net/cpsw.c                              |    2 +-
 drivers/net/cs8900.c                            |    2 +-
 drivers/net/davinci_emac.c                      |    2 +-
 drivers/net/designware.c                        |    2 +-
 drivers/net/dm9k.c                              |    2 +-
 drivers/net/ep93xx.c                            |    2 +-
 drivers/net/ethoc.c                             |    2 +-
 drivers/net/fec_imx.c                           |    2 +-
 drivers/net/fec_mpc5200.c                       |    2 +-
 drivers/net/gianfar.c                           |    6 +--
 drivers/net/ks8851_mll.c                        |    2 +-
 drivers/net/ksz8864rmn.c                        |    2 +-
 drivers/net/macb.c                              |    2 +-
 drivers/net/netx_eth.c                          |    2 +-
 drivers/net/orion-gbe.c                         |    2 +-
 drivers/net/phy/at803x.c                        |    6 +--
 drivers/net/phy/lxt.c                           |    2 +-
 drivers/net/phy/mdio_bus.c                      |    2 +-
 drivers/net/phy/micrel.c                        |   18 ++++----
 drivers/net/phy/national.c                      |    2 +-
 drivers/net/phy/phy.c                           |    2 +-
 drivers/net/phy/smsc.c                          |   10 ++---
 drivers/net/smc91111.c                          |    2 +-
 drivers/net/smc911x.c                           |    2 +-
 drivers/net/tap.c                               |    2 +-
 drivers/net/xgmac.c                             |    2 +-
 drivers/pwm/pxa_pwm.c                           |    2 +-
 drivers/serial/arm_dcc.c                        |    4 +-
 drivers/serial/atmel.c                          |    2 +-
 drivers/serial/serial_altera.c                  |    2 +-
 drivers/serial/serial_altera_jtag.c             |    2 +-
 drivers/serial/serial_ar933x.c                  |    2 +-
 drivers/serial/serial_auart.c                   |    2 +-
 drivers/serial/serial_blackfin.c                |    2 +-
 drivers/serial/serial_cadence.c                 |    2 +-
 drivers/serial/serial_imx.c                     |    2 +-
 drivers/serial/serial_mpc5xxx.c                 |    2 +-
 drivers/serial/serial_netx.c                    |    2 +-
 drivers/serial/serial_ns16550.c                 |    2 +-
 drivers/serial/serial_omap4_usbboot.c           |    2 +-
 drivers/serial/serial_pl010.c                   |    2 +-
 drivers/serial/serial_pxa.c                     |    2 +-
 drivers/serial/serial_s3c.c                     |    2 +-
 drivers/serial/stm-serial.c                     |    2 +-
 drivers/spi/altera_spi.c                        |    2 +-
 drivers/spi/atmel_spi.c                         |    2 +-
 drivers/spi/imx_spi.c                           |    2 +-
 drivers/spi/mxs_spi.c                           |    2 +-
 drivers/usb/gadget/dfu.c                        |    2 +-
 drivers/usb/gadget/serial.c                     |    2 +-
 drivers/usb/host/ohci-at91.c                    |    2 +-
 drivers/video/atmel_hlcdfb.c                    |    2 +-
 drivers/video/atmel_lcdfb.c                     |    2 +-
 drivers/video/bcm2835.c                         |    2 +-
 drivers/video/fb.c                              |    7 +--
 drivers/video/imx.c                             |    2 +-
 drivers/video/omap.c                            |    2 +-
 drivers/video/pxa.c                             |    2 +-
 drivers/video/s3c24xx.c                         |    2 +-
 drivers/video/sdl.c                             |    2 +-
 drivers/video/stm.c                             |    2 +-
 drivers/w1/w1.c                                 |    4 +-
 fs/omap4_usbbootfs.c                            |    2 +-
 lib/decompress_bunzip2.c                        |    2 +-
 lib/parameter.c                                 |    3 ++
 net/net.c                                       |    2 +-
 123 files changed, 275 insertions(+), 215 deletions(-)
 create mode 100644 commands/drvinfo.c

-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [PATCH 01/10] drvlist: factor the driver list out of 'devinfo'
  2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
  2014-05-30  9:05 ` Holger Schurig
@ 2014-05-30  9:07 ` Holger Schurig
  2014-05-30  9:09   ` Holger Schurig
  2014-05-30  9:07 ` [PATCH 02/10] devinfo: reduce indentation Holger Schurig
                   ` (9 subsequent siblings)
  11 siblings, 1 reply; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:07 UTC (permalink / raw)
  To: barebox

The command 'devinfo' was first spitting out all devices, and then
also all drivers. This patch separates them into two commands,
'devinfo' as before, and also the new command 'drvinfo'

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
---
 commands/Kconfig   |    9 ++++++++-
 commands/Makefile  |    1 +
 commands/devinfo.c |    9 ++-------
 commands/drvinfo.c |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+), 8 deletions(-)
 create mode 100644 commands/drvinfo.c

diff --git a/commands/Kconfig b/commands/Kconfig
index 6043cb6..c3b4007 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -79,11 +79,18 @@ config CMD_DEVINFO
 	  devinfo [DEVICE]
 
 	  If called without arguments, devinfo shows a summary of the known
-	  devices and drivers.
+	  devices.
 
 	  If called with a device path being the argument, devinfo shows more
 	  default information about this device and its parameters.
 
+config CMD_DRVINFO
+	tristate
+	default y
+	prompt "drvinfo"
+	help
+	  List compiled-in device drivers and the devices they support.
+
 config CMD_HELP
 	tristate
 	default y
diff --git a/commands/Makefile b/commands/Makefile
index 030a906..a84d333 100644
--- a/commands/Makefile
+++ b/commands/Makefile
@@ -94,6 +94,7 @@ obj-$(CONFIG_CMD_MIITOOL)	+= miitool.o
 obj-$(CONFIG_CMD_DETECT)	+= detect.o
 obj-$(CONFIG_CMD_BOOT)		+= boot.o
 obj-$(CONFIG_CMD_DEVINFO)	+= devinfo.o
+obj-$(CONFIG_CMD_DRVINFO)	+= drvinfo.o
 obj-$(CONFIG_CMD_READF)		+= readf.o
 obj-$(CONFIG_CMD_MENUTREE)	+= menutree.o
 obj-$(CONFIG_CMD_2048)		+= 2048.o
diff --git a/commands/devinfo.c b/commands/devinfo.c
index 685431b..448792d 100644
--- a/commands/devinfo.c
+++ b/commands/devinfo.c
@@ -55,7 +55,6 @@ static int do_devinfo_subtree(struct device_d *dev, int depth)
 static int do_devinfo(int argc, char *argv[])
 {
 	struct device_d *dev;
-	struct driver_d *drv;
 	struct param_d *param;
 	int i;
 	struct resource *res;
@@ -67,10 +66,6 @@ static int do_devinfo(int argc, char *argv[])
 			if (!dev->parent)
 				do_devinfo_subtree(dev, 0);
 		}
-
-		printf("\ndrivers:\n");
-		for_each_driver(drv)
-			printf("%s\n",drv->name);
 	} else {
 		dev = get_device_by_name(argv[1]);
 
@@ -149,7 +144,7 @@ Example from an MPC5200 based system:
 
 BAREBOX_CMD_HELP_START(devinfo)
 BAREBOX_CMD_HELP_TEXT("If called without arguments, devinfo shows a summary of the known")
-BAREBOX_CMD_HELP_TEXT("devices and drivers.")
+BAREBOX_CMD_HELP_TEXT("devices.")
 BAREBOX_CMD_HELP_TEXT("")
 BAREBOX_CMD_HELP_TEXT("If called with a device path being the argument, devinfo shows more")
 BAREBOX_CMD_HELP_TEXT("default information about this device and its parameters.")
@@ -158,7 +153,7 @@ BAREBOX_CMD_HELP_END
 
 BAREBOX_CMD_START(devinfo)
 	.cmd		= do_devinfo,
-	BAREBOX_CMD_DESC("show information about devices and drivers")
+	BAREBOX_CMD_DESC("show information about devices")
 	BAREBOX_CMD_OPTS("[DEVICE]")
 	BAREBOX_CMD_GROUP(CMD_GRP_INFO)
 	BAREBOX_CMD_HELP(cmd_devinfo_help)
diff --git a/commands/drvinfo.c b/commands/drvinfo.c
new file mode 100644
index 0000000..161118a
--- /dev/null
+++ b/commands/drvinfo.c
@@ -0,0 +1,47 @@
+/*
+ * Copyright (C) 2013 Sascha Hauer, Pengutronix
+ * Copyright (C) 2014 Holger Schurig
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#include <common.h>
+#include <command.h>
+#include <driver.h>
+
+int do_drvinfo(int argc, char *argv[])
+{
+	struct driver_d *drv;
+	struct device_d *dev;
+
+	printf("Driver\tDevice(s)\n");
+	printf("--------------------\n");
+	for_each_driver(drv) {
+		printf("%s\n",drv->name);
+		for_each_device(dev) {
+			if (dev->driver == drv)
+				printf("\t%s\n", dev_name(dev));
+		}
+	}
+
+	if (IS_ENABLED(CONFIG_CMD_DEVINFO))
+		printf("\nUse 'devinfo DEVICE' for more information\n");
+
+	return 0;
+}
+
+
+BAREBOX_CMD_START(drvinfo)
+	.cmd		= do_drvinfo,
+	BAREBOX_CMD_DESC("list compiled-in device drivers")
+	BAREBOX_CMD_GROUP(CMD_GRP_INFO)
+BAREBOX_CMD_END
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [PATCH 02/10] devinfo: reduce indentation
  2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
  2014-05-30  9:05 ` Holger Schurig
  2014-05-30  9:07 ` [PATCH 01/10] drvlist: factor the driver list out of 'devinfo' Holger Schurig
@ 2014-05-30  9:07 ` Holger Schurig
  2014-05-30  9:08   ` Holger Schurig
  2014-05-30  9:07 ` [PATCH 03/10] devinfo: make the output of "devinfo DEVICE" nicer Holger Schurig
                   ` (8 subsequent siblings)
  11 siblings, 1 reply; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:07 UTC (permalink / raw)
  To: barebox

This patch reduces the indentation of "devinfo", to reduce the amount of
overly long lines.

And while we're at it, also remove the fixed-size of the human-readable
area. As entries didn't align anyway (because of indentation), this was
just eating more space without giving much more readability.

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
---
 commands/devinfo.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/commands/devinfo.c b/commands/devinfo.c
index 448792d..3fb309b 100644
--- a/commands/devinfo.c
+++ b/commands/devinfo.c
@@ -25,15 +25,15 @@ static int do_devinfo_subtree(struct device_d *dev, int depth)
 	int i;
 
 	for (i = 0; i < depth; i++)
-		printf("     ");
+		printf("   ");
 
-	printf("`---- %s", dev_name(dev));
+	printf("`-- %s", dev_name(dev));
 	if (!list_empty(&dev->cdevs)) {
 		printf("\n");
 		list_for_each_entry(cdev, &dev->cdevs, devices_list) {
 			for (i = 0; i < depth + 1; i++)
-				printf("     ");
-			printf("`---- 0x%08llx-0x%08llx (%10s): /dev/%s\n",
+				printf("   ");
+			printf("`-- 0x%08llx-0x%08llx (%s): /dev/%s\n",
 					cdev->offset,
 					cdev->offset + cdev->size - 1,
 					size_human_readable(cdev->size),
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [PATCH 03/10] devinfo: make the output of "devinfo DEVICE" nicer
  2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
                   ` (2 preceding siblings ...)
  2014-05-30  9:07 ` [PATCH 02/10] devinfo: reduce indentation Holger Schurig
@ 2014-05-30  9:07 ` Holger Schurig
  2014-05-30  9:07   ` Holger Schurig
  2014-05-30  9:07 ` [PATCH 04/10] parameters: only show possible enumerations if there are any Holger Schurig
                   ` (7 subsequent siblings)
  11 siblings, 1 reply; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:07 UTC (permalink / raw)
  To: barebox

* some output sections started with "foo: bar", some with "foo = bar". Unify this.
* there was a fixed size to the "foo =" parameters, which wasn't fitting, this
  was especially visible at "devinfo global"
* don't output "resources:", "driver:" and "bus:" lines if there are none
  resources, drivers or busses involved.
* remove some empty lines
* harmonize differentiation between headlines (e.g. "resources:") and values
  by indenting values slightly
* uppercase some texts

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
---
 commands/devinfo.c |   38 +++++++++++++++++++++-----------------
 drivers/video/fb.c |    7 ++-----
 2 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/commands/devinfo.c b/commands/devinfo.c
index 3fb309b..1a35e3f 100644
--- a/commands/devinfo.c
+++ b/commands/devinfo.c
@@ -52,16 +52,16 @@ static int do_devinfo_subtree(struct device_d *dev, int depth)
 	return 0;
 }
 
+
 static int do_devinfo(int argc, char *argv[])
 {
 	struct device_d *dev;
 	struct param_d *param;
 	int i;
+	int first;
 	struct resource *res;
 
 	if (argc == 1) {
-		printf("devices:\n");
-
 		for_each_device(dev) {
 			if (!dev->parent)
 				do_devinfo_subtree(dev, 0);
@@ -74,38 +74,42 @@ static int do_devinfo(int argc, char *argv[])
 			return -1;
 		}
 
-		printf("resources:\n");
+		if (dev->num_resources)
+			printf("Resources:\n");
 		for (i = 0; i < dev->num_resources; i++) {
 			res = &dev->resource[i];
-			printf("num   : %d\n", i);
+			printf("  num: %d\n", i);
 			if (res->name)
-				printf("name  : %s\n", res->name);
-			printf("start : " PRINTF_CONVERSION_RESOURCE "\nsize  : "
-					PRINTF_CONVERSION_RESOURCE "\n",
+				printf("  name: %s\n", res->name);
+			printf("  start: " PRINTF_CONVERSION_RESOURCE "\n"
+				   "  size: "  PRINTF_CONVERSION_RESOURCE "\n",
 			       res->start, resource_size(res));
 		}
 
-		printf("driver: %s\n", dev->driver ?
-				dev->driver->name : "none");
+		if (dev->driver)
+			printf("Driver: %s\n", dev->driver->name);
 
-		printf("bus: %s\n\n", dev->bus ?
-				dev->bus->name : "none");
+		if (dev->bus)
+			printf("Bus: %s\n", dev->bus->name);
 
 		if (dev->info)
 			dev->info(dev);
 
-		printf("%s\n", list_empty(&dev->parameters) ?
-				"no parameters available" : "Parameters:");
-
+		first = true;
 		list_for_each_entry(param, &dev->parameters, list) {
-			printf("%16s = %s", param->name, dev_get_param(dev, param->name));
-			if (param->info)
+			if (first) {
+				printf("Parameters:\n");
+				first = false;
+			}
+			printf("  %s: %s", param->name, dev_get_param(dev, param->name));
+			if (param->info) {
 				param->info(param);
+			}
 			printf("\n");
 		}
 #ifdef CONFIG_OFDEVICE
 		if (dev->device_node) {
-			printf("\ndevice node: %s\n", dev->device_node->full_name);
+			printf("Device node: %s\n", dev->device_node->full_name);
 			of_print_nodes(dev->device_node, 0);
 		}
 #endif
diff --git a/drivers/video/fb.c b/drivers/video/fb.c
index ecf6142..e30ab59 100644
--- a/drivers/video/fb.c
+++ b/drivers/video/fb.c
@@ -125,7 +125,7 @@ static struct file_operations fb_ops = {
 
 static void fb_print_mode(struct fb_videomode *mode)
 {
-	printf("%-20s %dx%d@%d\n", mode->name,
+	printf("  %s: %dx%d@%d\n", mode->name,
 			mode->xres, mode->yres, mode->refresh);
 }
 
@@ -141,12 +141,9 @@ static void fb_info(struct device_d *dev)
 {
 	struct fb_info *info = dev->priv;
 
-	printf("available modes:\n");
-
+	printf("Available modes:\n");
 	fb_print_modes(&info->modes);
 	fb_print_modes(&info->edid_modes);
-
-	printf("\n");
 }
 
 int register_framebuffer(struct fb_info *info)
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [PATCH 04/10] parameters: only show possible enumerations if there are any
  2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
                   ` (3 preceding siblings ...)
  2014-05-30  9:07 ` [PATCH 03/10] devinfo: make the output of "devinfo DEVICE" nicer Holger Schurig
@ 2014-05-30  9:07 ` Holger Schurig
  2014-05-30  9:09   ` Holger Schurig
  2014-05-30  9:07 ` [PATCH 05/10] net: show enetaddr in lowercase Holger Schurig
                   ` (6 subsequent siblings)
  11 siblings, 1 reply; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:07 UTC (permalink / raw)
  To: barebox

Enumeration values will only be shown if there are at least two of them.
With only one enumeration, it was just repeating what was previously printed
anyway.

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
---
 lib/parameter.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/parameter.c b/lib/parameter.c
index baa2b15..b1f9aa3 100644
--- a/lib/parameter.c
+++ b/lib/parameter.c
@@ -362,6 +362,9 @@ static void param_enum_info(struct param_d *p)
 	struct param_enum *pe = to_param_enum(p);
 	int i;
 
+	if (pe->num_names <= 1)
+		return;
+
 	printf(" (");
 
 	for (i = 0; i < pe->num_names; i++) {
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [PATCH 05/10] net: show enetaddr in lowercase
  2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
                   ` (4 preceding siblings ...)
  2014-05-30  9:07 ` [PATCH 04/10] parameters: only show possible enumerations if there are any Holger Schurig
@ 2014-05-30  9:07 ` Holger Schurig
  2014-05-30  9:07 ` [PATCH 06/10] meminfo: purely cosmetical changes Holger Schurig
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:07 UTC (permalink / raw)
  To: barebox

"ifconfig" and "ip" from normal Linux userspace shows ethernet addresses
normally in lowercase.  And the %pM format specifier in Linux does that,
too. Conform to this custom formatting.

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
---
 net/net.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/net.c b/net/net.c
index f54267a..07350ad 100644
--- a/net/net.c
+++ b/net/net.c
@@ -160,7 +160,7 @@ int string_to_ethaddr(const char *str, u8 enetaddr[6])
 
 void ethaddr_to_string(const u8 enetaddr[6], char *str)
 {
-	sprintf(str, "%02X:%02X:%02X:%02X:%02X:%02X",
+	sprintf(str, "%02x:%02x:%02x:%02x:%02x:%02x",
 		 enetaddr[0], enetaddr[1], enetaddr[2], enetaddr[3],
 		 enetaddr[4], enetaddr[5]);
 }
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [PATCH 06/10] meminfo: purely cosmetical changes
  2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
                   ` (5 preceding siblings ...)
  2014-05-30  9:07 ` [PATCH 05/10] net: show enetaddr in lowercase Holger Schurig
@ 2014-05-30  9:07 ` Holger Schurig
  2014-05-30  9:43   ` Antony Pavlov
  2014-05-30  9:07 ` [PATCH 07/10] misc: upper-case some abbreviations Holger Schurig
                   ` (4 subsequent siblings)
  11 siblings, 1 reply; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:07 UTC (permalink / raw)
  To: barebox

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
---
 common/dlmalloc.c    |    8 ++++----
 common/tlsf_malloc.c |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index f006206..d831e90 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -1942,13 +1942,13 @@ static void malloc_update_mallinfo(void)
 void malloc_stats(void)
 {
 	malloc_update_mallinfo();
-	printf("max system bytes = %10u\n", (unsigned int)(max_total_mem));
-	printf("system bytes     = %10u\n",
+	printf("Maximum system memory: %u\n", (unsigned int)(max_total_mem));
+	printf("Current system memory: %u\n",
 		(unsigned int)(sbrked_mem + mmapped_mem));
-	printf("in use bytes     = %10u\n",
+	printf("in use: %u\n",
 		(unsigned int)(current_mallinfo.uordblks + mmapped_mem));
 #if HAVE_MMAP
-	fprintf(stderr, "max mmap regions = %10u\n",
+	printf("Maximum mmap'ed mmap regions: %u\n",
 		 (unsigned int) max_n_mmaps);
 #endif
 }
diff --git a/common/tlsf_malloc.c b/common/tlsf_malloc.c
index aa8fc13..a3541d8 100644
--- a/common/tlsf_malloc.c
+++ b/common/tlsf_malloc.c
@@ -97,5 +97,5 @@ void malloc_stats(void)
 
 	tlsf_walk_heap(tlsf_mem_pool, malloc_walker, &s);
 
-	printf("used: %10zu\nfree: %10zu\n", s.used, s.free);
+	printf("used: %zu\nfree: %zu\n", s.used, s.free);
 }
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [PATCH 07/10] misc: upper-case some abbreviations
  2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
                   ` (6 preceding siblings ...)
  2014-05-30  9:07 ` [PATCH 06/10] meminfo: purely cosmetical changes Holger Schurig
@ 2014-05-30  9:07 ` Holger Schurig
  2014-05-30  9:07 ` [PATCH 08/10] bootm: beautify output Holger Schurig
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:07 UTC (permalink / raw)
  To: barebox

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
---
 arch/arm/Kconfig         |    4 ++--
 arch/arm/cpu/cpu.c       |    2 +-
 arch/arm/lib/bootm.c     |    4 ++--
 commands/Kconfig         |   20 ++++++++++----------
 common/bootm.c           |    4 ++--
 common/filetype.c        |   20 ++++++++++----------
 lib/decompress_bunzip2.c |    2 +-
 7 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index c236a9e..8674a2d 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -252,7 +252,7 @@ config THUMB2_BAREBOX
 	bool "Compile barebox in thumb-2 mode (read help)"
 	help
 	  This enables compilation of barebox in thumb-2 mode which generates
-	  ~25% smaller binaries. Arm Assembly code needs some fixups to be able
+	  ~25% smaller binaries. ARM assembly code needs some fixups to be able
 	  to work correctly in thumb-2 mode. the barebox core should have these
 	  fixups since most assembly code is derived from the Kernel. However,
 	  your board lowlevel init code may break in thumb-2 mode. You have been
@@ -267,7 +267,7 @@ config ARM_BOARD_APPEND_ATAG
 
 endmenu
 
-menu "Arm specific settings"
+menu "ARM specific settings"
 
 config CPU_V7_DCACHE_SKIP
 	bool "Skip DCache Invalidate"
diff --git a/arch/arm/cpu/cpu.c b/arch/arm/cpu/cpu.c
index 895e07e..badd676 100644
--- a/arch/arm/cpu/cpu.c
+++ b/arch/arm/cpu/cpu.c
@@ -124,7 +124,7 @@ coredevice_initcall(arm_request_stack);
 static void thumb2_execute(void *func, int argc, char *argv[])
 {
 	/*
-	 * Switch back to arm mode before executing external
+	 * Switch back to ARM mode before executing external
 	 * programs.
 	 */
 	__asm__ __volatile__ (
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 1d69052..4896d01 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -135,7 +135,7 @@ static int do_bootm_linux(struct image_data *data)
 		load_address = mem_start + PAGE_ALIGN(
 		               uimage_get_size(data->os, data->os_num) * 4);
 		if (bootm_verbose(data))
-			printf("no os load address, defaulting to 0x%08lx\n",
+			printf("no OS load address, defaulting to 0x%08lx\n",
 				load_address);
 	}
 
@@ -294,7 +294,7 @@ static int do_bootz_linux(struct image_data *data)
 
 		load_address = data->os_address;
 		if (bootm_verbose(data))
-			printf("no os load address, defaulting to 0x%08lx\n",
+			printf("no OS load address, defaulting to 0x%08lx\n",
 				load_address);
 	}
 
diff --git a/commands/Kconfig b/commands/Kconfig
index c3b4007..a1b1fc8 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -809,24 +809,24 @@ Detect file type
 	  what you have compiled into barebox. Example of "filetype -l":
 
 	  known filetypes:
-	  arm-zimage      : arm Linux zImage
-	  lzo             : lzo compressed
-	  lz4             : lz4 compressed
-	  arm-barebox     : arm barebox image
+	  arm-zimage      : ARM Linux zImage
+	  lzo             : LZO compressed
+	  lz4             : LZ4 compressed
+	  arm-barebox     : ARM barebox image
 	  u-boot          : U-Boot uImage
 	  ubi             : UBI image
 	  jffs2           : JFFS2 image
-	  gzip            : gzip compressed
-	  bzip2           : bzip2 compressed
-	  dtb             : open firmware flat device tree
-	  android         : Android boot image
-	  sh              : Bourne Shell
+	  gzip            : GZIP compressed
+	  bzip2           : BZIP2 compressed
+	  dtb             : open firmware Device Tree flattened Binary
+	  android         : android boot image
+	  sh              : bourne SHell
 	  mips-barebox    : MIPS barebox image
 	  fat             : FAT filesytem
 	  mbr             : MBR sector
 	  bmp             : BMP image
 	  png             : PNG image
-	  ext             : ext filesystem
+	  ext             : EXT filesystem
 	  gpt             : GUID Partition Table
 	  bpk             : Binary PacKage
 	  bbenv           : barebox environment file
diff --git a/common/bootm.c b/common/bootm.c
index b250bd1..d6e02a7 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -403,7 +403,7 @@ int bootm_boot(struct bootm_data *bootm_data)
 	if (os_type == filetype_uimage) {
 		ret = bootm_open_os_uimage(data);
 		if (ret) {
-			printf("loading os image failed with %s\n",
+			printf("Loading OS image failed with %s\n",
 					strerror(-ret));
 			goto err_out;
 		}
@@ -455,7 +455,7 @@ int bootm_boot(struct bootm_data *bootm_data)
 		printf("no image handler found for image type %s\n",
 			file_type_to_string(os_type));
 		if (os_type == filetype_uimage)
-			printf("and os type: %d\n", data->os->header.ih_os);
+			printf("and OS type: %d\n", data->os->header.ih_os);
 		ret = -ENODEV;
 		goto err_out;
 	}
diff --git a/common/filetype.c b/common/filetype.c
index 0b5da30..508a2b5 100644
--- a/common/filetype.c
+++ b/common/filetype.c
@@ -32,24 +32,24 @@ struct filetype_str {
 
 static const struct filetype_str filetype_str[] = {
 	[filetype_unknown] = { "unknown", "unkown" },
-	[filetype_arm_zimage] = { "arm Linux zImage", "arm-zimage" },
-	[filetype_lzo_compressed] = { "lzo compressed", "lzo" },
-	[filetype_lz4_compressed] = { "lz4 compressed", "lz4" },
-	[filetype_arm_barebox] = { "arm barebox image", "arm-barebox" },
+	[filetype_arm_zimage] = { "ARM Linux zImage", "arm-zimage" },
+	[filetype_lzo_compressed] = { "LZO compressed", "lzo" },
+	[filetype_lz4_compressed] = { "LZ4 compressed", "lz4" },
+	[filetype_arm_barebox] = { "ARM barebox image", "arm-barebox" },
 	[filetype_uimage] = { "U-Boot uImage", "u-boot" },
 	[filetype_ubi] = { "UBI image", "ubi" },
 	[filetype_jffs2] = { "JFFS2 image", "jffs2" },
-	[filetype_gzip] = { "gzip compressed", "gzip" },
-	[filetype_bzip2] = { "bzip2 compressed", "bzip2" },
-	[filetype_oftree] = { "open firmware flat device tree", "dtb" },
-	[filetype_aimage] = { "Android boot image", "android" },
-	[filetype_sh] = { "Bourne Shell", "sh" },
+	[filetype_gzip] = { "GZIP compressed", "gzip" },
+	[filetype_bzip2] = { "BZIP2 compressed", "bzip2" },
+	[filetype_oftree] = { "open firmware Device Tree flattened Binary", "dtb" },
+	[filetype_aimage] = { "android boot image", "android" },
+	[filetype_sh] = { "bourne SHell", "sh" },
 	[filetype_mips_barebox] = { "MIPS barebox image", "mips-barebox" },
 	[filetype_fat] = { "FAT filesytem", "fat" },
 	[filetype_mbr] = { "MBR sector", "mbr" },
 	[filetype_bmp] = { "BMP image", "bmp" },
 	[filetype_png] = { "PNG image", "png" },
-	[filetype_ext] = { "ext filesystem", "ext" },
+	[filetype_ext] = { "EXT filesystem", "ext" },
 	[filetype_gpt] = { "GUID Partition Table", "gpt" },
 	[filetype_bpk] = { "Binary PacKage", "bpk" },
 	[filetype_barebox_env] = { "barebox environment file", "bbenv" },
diff --git a/lib/decompress_bunzip2.c b/lib/decompress_bunzip2.c
index 4b6edd1..0ca2dcd 100644
--- a/lib/decompress_bunzip2.c
+++ b/lib/decompress_bunzip2.c
@@ -15,7 +15,7 @@
 
 	More efficient reading of Huffman codes, a streamlined read_bunzip()
 	function, and various other tweaks.  In (limited) tests, approximately
-	20% faster than bzcat on x86 and about 10% faster on arm.
+	20% faster than bzcat on x86 and about 10% faster on ARM.
 
 	Note that about 2/3 of the time is spent in read_unzip() reversing
 	the Burrows-Wheeler transformation.  Much of that time is delay
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [PATCH 08/10] bootm: beautify output
  2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
                   ` (7 preceding siblings ...)
  2014-05-30  9:07 ` [PATCH 07/10] misc: upper-case some abbreviations Holger Schurig
@ 2014-05-30  9:07 ` Holger Schurig
  2014-05-30  9:06   ` Holger Schurig
  2014-05-30  9:07 ` [PATCH 09/10] beautify PHY driver names Holger Schurig
                   ` (2 subsequent siblings)
  11 siblings, 1 reply; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:07 UTC (permalink / raw)
  To: barebox

* fix indentation of options in 'help bootm'
* add missing help for -m
* put some output into debug/verbose mode

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
---
 arch/arm/lib/armlinux.c |    2 +-
 commands/Kconfig        |   15 ++++++++++-----
 commands/bootm.c        |   15 ++++++++-------
 common/bootm.c          |    4 ++--
 4 files changed, 21 insertions(+), 15 deletions(-)

diff --git a/arch/arm/lib/armlinux.c b/arch/arm/lib/armlinux.c
index bc28620..16879f8 100644
--- a/arch/arm/lib/armlinux.c
+++ b/arch/arm/lib/armlinux.c
@@ -261,7 +261,7 @@ void start_linux(void *adr, int swap, unsigned long initrd_address,
 	int architecture;
 
 	if (oftree) {
-		printf("booting kernel with devicetree\n");
+		pr_debug("booting kernel with devicetree\n");
 		params = oftree;
 	} else {
 		setup_tags(initrd_address, initrd_size, swap);
diff --git a/commands/Kconfig b/commands/Kconfig
index a1b1fc8..eed6fbd 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -288,11 +288,16 @@ config CMD_BOOT
 	  one succeeds.
 
 	  Options:
-		  -v	Increase verbosity
-		  -d	Dryrun. See what happens but do no actually boot
-		  -l	List available boot sources
-		  -m	Show a menu with boot options
-		  -t SECS	specify timeout in SECS
+	      -c         crc check uImage data
+	      -d         dryrun: check data, but do not run
+	      -f         load images even if type is undetectable
+	      -r INITRD  specify an initrd image
+	      -L ADDR    specify initrd load address
+	      -a ADDR    specify os load address
+	      -e OFFS    entry point to the image relative to start (0)
+	      -o DTS     specify open firmware device tree
+	      -v         verbose
+
 
 config CMD_BOOTM
 	tristate
diff --git a/commands/bootm.c b/commands/bootm.c
index 5801f44..d6625df 100644
--- a/commands/bootm.c
+++ b/commands/bootm.c
@@ -142,16 +142,17 @@ err_out:
 
 BAREBOX_CMD_HELP_START(bootm)
 BAREBOX_CMD_HELP_TEXT("Options:")
-BAREBOX_CMD_HELP_OPT ("-c",  "crc check uImage data")
-BAREBOX_CMD_HELP_OPT ("-d",  "dryrun. Check data, but do not run")
+BAREBOX_CMD_HELP_OPT ("-c\t",  "crc check uImage data")
+BAREBOX_CMD_HELP_OPT ("-d\t",  "dryrun: check data, but do not run")
+BAREBOX_CMD_HELP_OPT ("-f\t",  "load images even if type is undetectable")
 #ifdef CONFIG_CMD_BOOTM_INITRD
 BAREBOX_CMD_HELP_OPT ("-r INITRD","specify an initrd image")
-BAREBOX_CMD_HELP_OPT ("-L ADDR","specify initrd load address")
+BAREBOX_CMD_HELP_OPT ("-L ADDR\t","specify initrd load address")
 #endif
-BAREBOX_CMD_HELP_OPT ("-a ADDR","specify os load address")
-BAREBOX_CMD_HELP_OPT ("-e OFFS","entry point to the image relative to start (0)")
+BAREBOX_CMD_HELP_OPT ("-a ADDR\t","specify os load address")
+BAREBOX_CMD_HELP_OPT ("-e OFFS\t","entry point to the image relative to start (0)")
 #ifdef CONFIG_OFTREE
-BAREBOX_CMD_HELP_OPT ("-o DTS","specify device tree")
+BAREBOX_CMD_HELP_OPT ("-o DTS\t","specify open firmware device tree")
 #endif
 #ifdef CONFIG_CMD_BOOTM_VERBOSE
 BAREBOX_CMD_HELP_OPT ("-v\t","verbose")
@@ -161,7 +162,7 @@ BAREBOX_CMD_HELP_END
 BAREBOX_CMD_START(bootm)
 	.cmd		= do_bootm,
 	BAREBOX_CMD_DESC("boot an application image")
-	BAREBOX_CMD_OPTS("[-cd"
+	BAREBOX_CMD_OPTS("[-cdf"
 #ifdef CONFIG_CMD_BOOTM_INITRD
 					  "rL"
 #endif
diff --git a/common/bootm.c b/common/bootm.c
index d6e02a7..871959c 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -428,7 +428,7 @@ int bootm_boot(struct bootm_data *bootm_data)
 		}
 	}
 
-	printf("\nLoading OS %s '%s'", file_type_to_string(os_type),
+	printf("\nLoading %s '%s'", file_type_to_string(os_type),
 			data->os_file);
 	if (os_type == filetype_uimage &&
 			data->os->header.ih_type == IH_TYPE_MULTI)
@@ -442,7 +442,7 @@ int bootm_boot(struct bootm_data *bootm_data)
 				goto err_out;
 		} else {
 			data->of_root_node = of_get_root_node();
-			if (data->of_root_node)
+			if (bootm_verbose(data) > 1 && data->of_root_node)
 				printf("using internal devicetree\n");
 		}
 	}
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [PATCH 09/10] beautify PHY driver names
  2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
                   ` (8 preceding siblings ...)
  2014-05-30  9:07 ` [PATCH 08/10] bootm: beautify output Holger Schurig
@ 2014-05-30  9:07 ` Holger Schurig
  2014-05-30  9:17   ` Alexander Aring
  2014-06-02  6:59   ` Sascha Hauer
  2014-05-30  9:07 ` [PATCH 10/10] device drivers: harmonize underscore in " Holger Schurig
  2014-06-02  7:21 ` [PATCH 00/10] miscelleanous beautification patches Sascha Hauer
  11 siblings, 2 replies; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:07 UTC (permalink / raw)
  To: barebox

Some device names where texts like "Atheros 8035 ethernet" or similar. They
now got a prefix "phy-" and just their name and look now much more like the
other driver names.

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
---
 drivers/net/phy/at803x.c   |    6 +++---
 drivers/net/phy/lxt.c      |    2 +-
 drivers/net/phy/micrel.c   |   18 +++++++++---------
 drivers/net/phy/national.c |    2 +-
 drivers/net/phy/phy.c      |    2 +-
 drivers/net/phy/smsc.c     |   10 +++++-----
 6 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c
index a244c87..a7b3ece 100644
--- a/drivers/net/phy/at803x.c
+++ b/drivers/net/phy/at803x.c
@@ -88,7 +88,7 @@ static struct phy_driver at803x_driver[] = {
 	/* ATHEROS 8035 */
 	.phy_id		= 0x004dd072,
 	.phy_id_mask	= 0xffffffef,
-	.drv.name	= "Atheros 8035 ethernet",
+	.drv.name	= "phy-ath8035",
 	.config_init	= at803x_config_init,
 	.features	= PHY_GBIT_FEATURES,
 	.config_aneg	= &genphy_config_aneg,
@@ -97,7 +97,7 @@ static struct phy_driver at803x_driver[] = {
 	/* ATHEROS 8030 */
 	.phy_id		= 0x004dd076,
 	.phy_id_mask	= 0xffffffef,
-	.drv.name	= "Atheros 8030 ethernet",
+	.drv.name	= "phy-ath8030",
 	.config_init	= at803x_config_init,
 	.features	= PHY_GBIT_FEATURES,
 	.config_aneg	= &genphy_config_aneg,
@@ -106,7 +106,7 @@ static struct phy_driver at803x_driver[] = {
 	/* ATHEROS 8031 */
 	.phy_id		= 0x004dd074,
 	.phy_id_mask	= 0xffffffef,
-	.drv.name	= "Atheros 8031 ethernet",
+	.drv.name	= "phy-ath8031",
 	.config_init	= at803x_config_init,
 	.features	= PHY_GBIT_FEATURES,
 	.config_aneg	= &genphy_config_aneg,
diff --git a/drivers/net/phy/lxt.c b/drivers/net/phy/lxt.c
index 9e5ddbb..3ec5299 100644
--- a/drivers/net/phy/lxt.c
+++ b/drivers/net/phy/lxt.c
@@ -19,7 +19,7 @@ static struct phy_driver lxt97x_driver[] = {
 {
 	.phy_id		= 0x001378e0,
 	.phy_id_mask	= 0xfffffff0,
-	.drv.name	= "LXT971",
+	.drv.name	= "phy-lxt971",
 	.features	= PHY_BASIC_FEATURES,
 } };
 
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index 8aea653..cf4ee77 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -191,7 +191,7 @@ static struct phy_driver ksphy_driver[] = {
 {
 	.phy_id		= PHY_ID_KS8737,
 	.phy_id_mask	= 0x00fffff0,
-	.drv.name	= "Micrel KS8737",
+	.drv.name	= "phy-ks8737",
 	.features	= (PHY_BASIC_FEATURES | SUPPORTED_Pause),
 	.config_init	= kszphy_config_init,
 	.config_aneg	= genphy_config_aneg,
@@ -199,7 +199,7 @@ static struct phy_driver ksphy_driver[] = {
 }, {
 	.phy_id		= PHY_ID_KSZ8021,
 	.phy_id_mask	= 0x00ffffff,
-	.drv.name	= "Micrel KSZ8021",
+	.drv.name	= "phy-ksz8021",
 	.features	= (PHY_BASIC_FEATURES | SUPPORTED_Pause |
 			   SUPPORTED_Asym_Pause),
 	.config_init	= ksz8021_config_init,
@@ -208,7 +208,7 @@ static struct phy_driver ksphy_driver[] = {
 }, {
 	.phy_id		= PHY_ID_KSZ8031,
 	.phy_id_mask	= 0x00ffffff,
-	.drv.name	= "Micrel KSZ8031",
+	.drv.name	= "phy-ksz8031",
 	.features	= (PHY_BASIC_FEATURES | SUPPORTED_Pause |
 			   SUPPORTED_Asym_Pause),
 	.config_init	= ksz8021_config_init,
@@ -217,7 +217,7 @@ static struct phy_driver ksphy_driver[] = {
 }, {
 	.phy_id		= PHY_ID_KSZ8041,
 	.phy_id_mask	= 0x00fffff0,
-	.drv.name	= "Micrel KSZ8041",
+	.drv.name	= "phy-ksz8041",
 	.features	= (PHY_BASIC_FEATURES | SUPPORTED_Pause
 				| SUPPORTED_Asym_Pause),
 	.config_init	= kszphy_config_init,
@@ -226,7 +226,7 @@ static struct phy_driver ksphy_driver[] = {
 }, {
 	.phy_id		= PHY_ID_KSZ8051,
 	.phy_id_mask	= 0x00fffff0,
-	.drv.name		= "Micrel KSZ8051",
+	.drv.name		= "phy-ksz8051",
 	.features	= (PHY_BASIC_FEATURES | SUPPORTED_Pause
 				| SUPPORTED_Asym_Pause),
 	.config_init	= ks8051_config_init,
@@ -234,7 +234,7 @@ static struct phy_driver ksphy_driver[] = {
 	.read_status	= genphy_read_status,
 }, {
 	.phy_id		= PHY_ID_KSZ8001,
-	.drv.name	= "Micrel KSZ8001 or KS8721",
+	.drv.name	= "phy-ksz8001-ks8721",
 	.phy_id_mask	= 0x00ffffff,
 	.features	= (PHY_BASIC_FEATURES | SUPPORTED_Pause),
 	.config_init	= kszphy_config_init,
@@ -248,7 +248,7 @@ static struct phy_driver ksphy_driver[] = {
 	 */
 	.phy_id		= PHY_ID_KSZ9021,
 	.phy_id_mask	= 0x000ffffe,
-	.drv.name	= "Micrel KSZ9021 Gigabit PHY",
+	.drv.name	= "phy-ksz9021",
 	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause),
 	.config_init	= ksz9021_config_init,
 	.config_aneg	= genphy_config_aneg,
@@ -256,7 +256,7 @@ static struct phy_driver ksphy_driver[] = {
 }, {
 	.phy_id		= PHY_ID_KSZ9031,
 	.phy_id_mask	= 0x00fffff0,
-	.drv.name	= "Micrel KSZ9031 Gigabit PHY",
+	.drv.name	= "phy-ksz9031",
 	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause
 				| SUPPORTED_Asym_Pause),
 	.config_init	= kszphy_config_init,
@@ -265,7 +265,7 @@ static struct phy_driver ksphy_driver[] = {
 }, {
 	.phy_id		= PHY_ID_KSZ8873MLL,
 	.phy_id_mask	= 0x00fffff0,
-	.drv.name	= "Micrel KSZ8873MLL Switch",
+	.drv.name	= "phy-ksz8873mll",
 	.features	= (SUPPORTED_Pause | SUPPORTED_Asym_Pause),
 	.config_init	= ksz8873mll_config_init,
 	.config_aneg	= ksz8873mll_config_aneg,
diff --git a/drivers/net/phy/national.c b/drivers/net/phy/national.c
index e46d587..83374ec 100644
--- a/drivers/net/phy/national.c
+++ b/drivers/net/phy/national.c
@@ -82,7 +82,7 @@ static int ns_config_init(struct phy_device *phydev)
 static struct phy_driver dp83865_driver = {
 	.phy_id		= 0x20005c70,
 	.phy_id_mask	= 0xfffffff0,
-	.drv.name	= "NatSemi DP83865",
+	.drv.name	= "phy-dp83865",
 	.features	= PHY_GBIT_FEATURES |
 			SUPPORTED_Pause | SUPPORTED_Asym_Pause,
 	.config_init    = ns_config_init,
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 1a2fdf1..aef9350 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -855,7 +855,7 @@ int phy_init_hw(struct phy_device *phydev)
 }
 
 static struct phy_driver genphy_driver = {
-	.drv.name = "Generic PHY",
+	.drv.name = "phy-generic",
 	.phy_id = PHY_ANY_UID,
 	.phy_id_mask = PHY_ANY_UID,
 	.features = PHY_GBIT_FEATURES | SUPPORTED_MII |
diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c
index a318624..e540754 100644
--- a/drivers/net/phy/smsc.c
+++ b/drivers/net/phy/smsc.c
@@ -80,7 +80,7 @@ static struct phy_driver smsc_phy_driver[] = {
 {
 	.phy_id		= 0x0007c0a0, /* OUI=0x00800f, Model#=0x0a */
 	.phy_id_mask	= 0xfffffff0,
-	.drv.name	= "SMSC LAN83C185",
+	.drv.name	= "phy-lan83c185",
 
 	.features	= (PHY_BASIC_FEATURES | SUPPORTED_Pause
 				| SUPPORTED_Asym_Pause),
@@ -92,7 +92,7 @@ static struct phy_driver smsc_phy_driver[] = {
 }, {
 	.phy_id		= 0x0007c0b0, /* OUI=0x00800f, Model#=0x0b */
 	.phy_id_mask	= 0xfffffff0,
-	.drv.name	= "SMSC LAN8187",
+	.drv.name	= "phy-lan8187",
 
 	.features	= (PHY_BASIC_FEATURES | SUPPORTED_Pause
 				| SUPPORTED_Asym_Pause),
@@ -104,7 +104,7 @@ static struct phy_driver smsc_phy_driver[] = {
 }, {
 	.phy_id		= 0x0007c0c0, /* OUI=0x00800f, Model#=0x0c */
 	.phy_id_mask	= 0xfffffff0,
-	.drv.name	= "SMSC LAN8700",
+	.drv.name	= "phy-lan8700",
 
 	.features	= (PHY_BASIC_FEATURES | SUPPORTED_Pause
 				| SUPPORTED_Asym_Pause),
@@ -116,7 +116,7 @@ static struct phy_driver smsc_phy_driver[] = {
 }, {
 	.phy_id		= 0x0007c0d0, /* OUI=0x00800f, Model#=0x0d */
 	.phy_id_mask	= 0xfffffff0,
-	.drv.name	= "SMSC LAN911x Internal PHY",
+	.drv.name	= "phy-lan911x",
 
 	.features	= (PHY_BASIC_FEATURES | SUPPORTED_Pause
 				| SUPPORTED_Asym_Pause),
@@ -128,7 +128,7 @@ static struct phy_driver smsc_phy_driver[] = {
 }, {
 	.phy_id		= 0x0007c0f0, /* OUI=0x00800f, Model#=0x0f */
 	.phy_id_mask	= 0xfffffff0,
-	.drv.name	= "SMSC LAN8710/LAN8720",
+	.drv.name	= "phy-lan8710",
 
 	.features	= (PHY_BASIC_FEATURES | SUPPORTED_Pause
 				| SUPPORTED_Asym_Pause),
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [PATCH 10/10] device drivers: harmonize underscore in driver names
  2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
                   ` (9 preceding siblings ...)
  2014-05-30  9:07 ` [PATCH 09/10] beautify PHY driver names Holger Schurig
@ 2014-05-30  9:07 ` Holger Schurig
  2014-06-02  7:16   ` Sascha Hauer
  2014-06-02  7:21 ` [PATCH 00/10] miscelleanous beautification patches Sascha Hauer
  11 siblings, 1 reply; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:07 UTC (permalink / raw)
  To: barebox

Some device names were in the form "imx_spi", others in the form "imx-gpt".
As most device names used the dash and not the underscore, this device
driver harmonizes them all.

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
---
 arch/arm/boards/at91rm9200ek/init.c             |    8 ++++----
 arch/arm/boards/at91sam9261ek/init.c            |    4 ++--
 arch/arm/boards/at91sam9m10g45ek/init.c         |    2 +-
 arch/arm/boards/nhk8815/setup.c                 |    2 +-
 arch/arm/boards/phytec-phycore-imx27/pcm970.c   |    2 +-
 arch/arm/boards/tny-a926x/init.c                |    4 ++--
 arch/arm/boards/usb-a926x/init.c                |    4 ++--
 arch/arm/mach-imx/iim.c                         |    2 +-
 arch/arm/mach-imx/imx25.c                       |    2 +-
 arch/arm/mach-imx/imx27.c                       |    2 +-
 arch/arm/mach-imx/imx31.c                       |    2 +-
 arch/arm/mach-imx/imx35.c                       |    2 +-
 arch/arm/mach-imx/imx51.c                       |    2 +-
 arch/arm/mach-imx/imx53.c                       |    2 +-
 arch/arm/mach-imx/ocotp.c                       |    2 +-
 arch/mips/mach-ar231x/ar231x_reset.c            |    2 +-
 arch/nios2/boards/generic/generic.c             |    2 +-
 arch/x86/boards/x86_generic/intf_platform_ide.c |    4 ++--
 drivers/ata/intf_platform_ide.c                 |    2 +-
 drivers/clk/clk-ar933x.c                        |    2 +-
 drivers/clocksource/arm_smp_twd.c               |    2 +-
 drivers/clocksource/nomadik.c                   |    2 +-
 drivers/gpio/gpio-davinci.c                     |    2 +-
 drivers/gpio/gpio-pl061.c                       |    2 +-
 drivers/input/gpio_keys.c                       |    2 +-
 drivers/input/twl6030_pwrbtn.c                  |    2 +-
 drivers/mci/atmel_mci.c                         |    2 +-
 drivers/mci/dw_mmc.c                            |    2 +-
 drivers/mci/mci-bcm2835.c                       |    2 +-
 drivers/mci/mci_spi.c                           |    2 +-
 drivers/mci/mxs.c                               |    2 +-
 drivers/mci/s3c.c                               |    2 +-
 drivers/mtd/devices/mtd_dataflash.c             |    2 +-
 drivers/mtd/nand/atmel_nand.c                   |    2 +-
 drivers/mtd/nand/nand_imx.c                     |    2 +-
 drivers/mtd/nand/nand_mxs.c                     |    2 +-
 drivers/mtd/nand/nand_omap_gpmc.c               |    4 ++--
 drivers/mtd/nand/nand_s3c24xx.c                 |    2 +-
 drivers/mtd/nand/nomadik_nand.c                 |    2 +-
 drivers/mtd/nor/cfi_flash.c                     |    2 +-
 drivers/net/altera_tse.c                        |    2 +-
 drivers/net/ar231x.c                            |    2 +-
 drivers/net/arc_emac.c                          |    2 +-
 drivers/net/at91_ether.c                        |    2 +-
 drivers/net/cpsw.c                              |    2 +-
 drivers/net/cs8900.c                            |    2 +-
 drivers/net/davinci_emac.c                      |    2 +-
 drivers/net/designware.c                        |    2 +-
 drivers/net/dm9k.c                              |    2 +-
 drivers/net/ep93xx.c                            |    2 +-
 drivers/net/ethoc.c                             |    2 +-
 drivers/net/fec_imx.c                           |    2 +-
 drivers/net/fec_mpc5200.c                       |    2 +-
 drivers/net/gianfar.c                           |    6 +++---
 drivers/net/ks8851_mll.c                        |    2 +-
 drivers/net/ksz8864rmn.c                        |    2 +-
 drivers/net/macb.c                              |    2 +-
 drivers/net/netx_eth.c                          |    2 +-
 drivers/net/orion-gbe.c                         |    2 +-
 drivers/net/phy/mdio_bus.c                      |    2 +-
 drivers/net/smc91111.c                          |    2 +-
 drivers/net/smc911x.c                           |    2 +-
 drivers/net/tap.c                               |    2 +-
 drivers/net/xgmac.c                             |    2 +-
 drivers/pwm/pxa_pwm.c                           |    2 +-
 drivers/serial/arm_dcc.c                        |    4 ++--
 drivers/serial/atmel.c                          |    2 +-
 drivers/serial/serial_altera.c                  |    2 +-
 drivers/serial/serial_altera_jtag.c             |    2 +-
 drivers/serial/serial_ar933x.c                  |    2 +-
 drivers/serial/serial_auart.c                   |    2 +-
 drivers/serial/serial_blackfin.c                |    2 +-
 drivers/serial/serial_cadence.c                 |    2 +-
 drivers/serial/serial_imx.c                     |    2 +-
 drivers/serial/serial_mpc5xxx.c                 |    2 +-
 drivers/serial/serial_netx.c                    |    2 +-
 drivers/serial/serial_ns16550.c                 |    2 +-
 drivers/serial/serial_omap4_usbboot.c           |    2 +-
 drivers/serial/serial_pl010.c                   |    2 +-
 drivers/serial/serial_pxa.c                     |    2 +-
 drivers/serial/serial_s3c.c                     |    2 +-
 drivers/serial/stm-serial.c                     |    2 +-
 drivers/spi/altera_spi.c                        |    2 +-
 drivers/spi/atmel_spi.c                         |    2 +-
 drivers/spi/imx_spi.c                           |    2 +-
 drivers/spi/mxs_spi.c                           |    2 +-
 drivers/usb/gadget/dfu.c                        |    2 +-
 drivers/usb/gadget/serial.c                     |    2 +-
 drivers/usb/host/ohci-at91.c                    |    2 +-
 drivers/video/atmel_hlcdfb.c                    |    2 +-
 drivers/video/atmel_lcdfb.c                     |    2 +-
 drivers/video/bcm2835.c                         |    2 +-
 drivers/video/imx.c                             |    2 +-
 drivers/video/omap.c                            |    2 +-
 drivers/video/pxa.c                             |    2 +-
 drivers/video/s3c24xx.c                         |    2 +-
 drivers/video/sdl.c                             |    2 +-
 drivers/video/stm.c                             |    2 +-
 drivers/w1/w1.c                                 |    4 ++--
 fs/omap4_usbbootfs.c                            |    2 +-
 100 files changed, 112 insertions(+), 112 deletions(-)

diff --git a/arch/arm/boards/at91rm9200ek/init.c b/arch/arm/boards/at91rm9200ek/init.c
index c444669..1e9d373 100644
--- a/arch/arm/boards/at91rm9200ek/init.c
+++ b/arch/arm/boards/at91rm9200ek/init.c
@@ -108,13 +108,13 @@ static void ek_add_device_udc(void) {}
 
 static struct spi_board_info ek_dataflash_spi_devices[] = {
 	{	/* DataFlash chip */
-		.name		= "mtd_dataflash",
+		.name		= "mtd-dataflash",
 		.chip_select	= 0,
 		.max_speed_hz	= 15 * 1000 * 1000,
 	},
 #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD
 	{	/* DataFlash card */
-		.name		= "mtd_dataflash",
+		.name		= "mtd-dataflash",
 		.chip_select	= 1,
 		.max_speed_hz	= 15 * 1000 * 1000,
 	},
@@ -124,14 +124,14 @@ static struct spi_board_info ek_dataflash_spi_devices[] = {
 static struct spi_board_info ek_mmc_spi_devices[] = {
 #if !defined(CONFIG_MTD_DATAFLASH)
 	{
-		.name		= "spi_mci",
+		.name		= "spi-mci",
 		.chip_select	= 0,
 		.max_speed_hz	= 20 * 1000 * 1000,
 	},
 #endif
 #if !defined(CONFIG_MTD_AT91_DATAFLASH_CARD)
 	{
-		.name		= "spi_mci",
+		.name		= "spi-mci",
 		.chip_select	= 1,
 		.max_speed_hz	= 20 * 1000 * 1000,
 	},
diff --git a/arch/arm/boards/at91sam9261ek/init.c b/arch/arm/boards/at91sam9261ek/init.c
index 9ebc16a..2ce4ff1 100644
--- a/arch/arm/boards/at91sam9261ek/init.c
+++ b/arch/arm/boards/at91sam9261ek/init.c
@@ -320,14 +320,14 @@ static void ek_device_add_leds(void) {}
  */
 static struct spi_board_info ek_spi_devices[] = {
 	{	/* DataFlash chip */
-		.name		= "mtd_dataflash",
+		.name		= "mtd-dataflash",
 		.chip_select	= 0,
 		.max_speed_hz	= 15 * 1000 * 1000,
 		.bus_num	= 0,
 	},
 #if defined(CONFIG_MTD_AT91_DATAFLASH_CARD)
 	{	/* DataFlash card - jumper (J12) configurable to CS3 or CS0 */
-		.name		= "mtd_dataflash",
+		.name		= "mtd-dataflash",
 		.chip_select	= 1,
 		.max_speed_hz	= 15 * 1000 * 1000,
 		.bus_num	= 0,
diff --git a/arch/arm/boards/at91sam9m10g45ek/init.c b/arch/arm/boards/at91sam9m10g45ek/init.c
index 6503ebb..2916949 100644
--- a/arch/arm/boards/at91sam9m10g45ek/init.c
+++ b/arch/arm/boards/at91sam9m10g45ek/init.c
@@ -129,7 +129,7 @@ static void ek_add_device_mci(void) {}
 
 static const struct spi_board_info ek_spi_devices[] = {
 	{
-		.name		= "mtd_dataflash",
+		.name		= "mtd-dataflash",
 		.chip_select	= 0,
 		.max_speed_hz	= 15 * 1000 * 1000,
 		.bus_num	= 0,
diff --git a/arch/arm/boards/nhk8815/setup.c b/arch/arm/boards/nhk8815/setup.c
index aaf9cd7..0bb7077 100644
--- a/arch/arm/boards/nhk8815/setup.c
+++ b/arch/arm/boards/nhk8815/setup.c
@@ -67,7 +67,7 @@ static struct resource nhk8815_nand_resources[] = {
 
 static struct device_d nhk8815_nand_device = {
 	.id		= DEVICE_ID_DYNAMIC,
-	.name		= "nomadik_nand",
+	.name		= "nomadik-nand",
 	.num_resources	= ARRAY_SIZE(nhk8815_nand_resources),
 	.resource	= nhk8815_nand_resources,
 	.platform_data	= &nhk8815_nand_data,
diff --git a/arch/arm/boards/phytec-phycore-imx27/pcm970.c b/arch/arm/boards/phytec-phycore-imx27/pcm970.c
index 2b2483b..5cf82b7 100644
--- a/arch/arm/boards/phytec-phycore-imx27/pcm970.c
+++ b/arch/arm/boards/phytec-phycore-imx27/pcm970.c
@@ -48,7 +48,7 @@ static struct ide_port_info pcm970_ide_pdata = {
 
 static struct device_d pcm970_ide_device = {
 	.id		= DEVICE_ID_DYNAMIC,
-	.name		= "ide_intf",
+	.name		= "ide-intf",
 	.num_resources	= ARRAY_SIZE(pcm970_ide_resources),
 	.resource	= pcm970_ide_resources,
 	.platform_data	= &pcm970_ide_pdata,
diff --git a/arch/arm/boards/tny-a926x/init.c b/arch/arm/boards/tny-a926x/init.c
index ac86457..2ebe223 100644
--- a/arch/arm/boards/tny-a926x/init.c
+++ b/arch/arm/boards/tny-a926x/init.c
@@ -154,7 +154,7 @@ static struct spi_board_info tny_a9g20_spi_devices[] = {
 
 static struct spi_board_info tny_a9g20_lpw_spi_devices[] = {
 	{
-		.name = "spi_mci",
+		.name = "spi-mci",
 		.max_speed_hz = 25 * 1000 * 1000,
 		.bus_num = 1,
 		.chip_select = 0,
@@ -163,7 +163,7 @@ static struct spi_board_info tny_a9g20_lpw_spi_devices[] = {
 
 static struct spi_board_info tny_a9263_spi_devices[] = {
 	{
-		.name = "mtd_dataflash",
+		.name = "mtd-dataflash",
 		.max_speed_hz = 15 * 1000 * 1000,
 		.bus_num = 0,
 		.chip_select = 0,
diff --git a/arch/arm/boards/usb-a926x/init.c b/arch/arm/boards/usb-a926x/init.c
index 4a28af0..deef06e 100644
--- a/arch/arm/boards/usb-a926x/init.c
+++ b/arch/arm/boards/usb-a926x/init.c
@@ -167,7 +167,7 @@ static void usb_a9260_add_device_eth(void) {}
 #if defined(CONFIG_DRIVER_SPI_ATMEL)
 static const struct spi_board_info usb_a9263_spi_devices[] = {
 	{
-		.name		= "mtd_dataflash",
+		.name		= "mtd-dataflash",
 		.chip_select	= 0,
 		.max_speed_hz	= 15 * 1000 * 1000,
 		.bus_num	= 0,
@@ -176,7 +176,7 @@ static const struct spi_board_info usb_a9263_spi_devices[] = {
 
 static const struct spi_board_info usb_a9g20_spi_devices[] = {
 	{
-		.name		= "spi_mci",
+		.name		= "spi-mci",
 		.chip_select	= 0,
 		.max_speed_hz	= 25 * 1000 * 1000,
 		.bus_num	= 1,
diff --git a/arch/arm/mach-imx/iim.c b/arch/arm/mach-imx/iim.c
index 16ba678..85aa390 100644
--- a/arch/arm/mach-imx/iim.c
+++ b/arch/arm/mach-imx/iim.c
@@ -34,7 +34,7 @@
 #include <mach/imx53-regs.h>
 #include <mach/clock-imx51_53.h>
 
-#define DRIVERNAME	"imx_iim"
+#define DRIVERNAME	"imx-iim"
 #define IIM_NUM_BANKS	8
 
 struct iim_priv;
diff --git a/arch/arm/mach-imx/imx25.c b/arch/arm/mach-imx/imx25.c
index 1f87787..07a76e7 100644
--- a/arch/arm/mach-imx/imx25.c
+++ b/arch/arm/mach-imx/imx25.c
@@ -63,7 +63,7 @@ int imx25_init(void)
 
 int imx25_devices_init(void)
 {
-	add_generic_device("imx_iim", 0, NULL, MX25_IIM_BASE_ADDR, SZ_4K,
+	add_generic_device("imx-iim", 0, NULL, MX25_IIM_BASE_ADDR, SZ_4K,
 			IORESOURCE_MEM, NULL);
 
 	add_generic_device("imx-iomuxv3", 0, NULL, MX25_IOMUXC_BASE_ADDR, 0x1000, IORESOURCE_MEM, NULL);
diff --git a/arch/arm/mach-imx/imx27.c b/arch/arm/mach-imx/imx27.c
index d3eaa87..1cfa11d 100644
--- a/arch/arm/mach-imx/imx27.c
+++ b/arch/arm/mach-imx/imx27.c
@@ -111,7 +111,7 @@ int imx27_devices_init(void)
 {
 	imx_iomuxv1_init((void *)MX27_GPIO1_BASE_ADDR);
 
-	add_generic_device("imx_iim", DEVICE_ID_SINGLE, NULL,
+	add_generic_device("imx-iim", DEVICE_ID_SINGLE, NULL,
 			   MX27_IIM_BASE_ADDR, SZ_4K, IORESOURCE_MEM, NULL);
 
 	imx27_init_max();
diff --git a/arch/arm/mach-imx/imx31.c b/arch/arm/mach-imx/imx31.c
index 3013f02..cd7176c 100644
--- a/arch/arm/mach-imx/imx31.c
+++ b/arch/arm/mach-imx/imx31.c
@@ -35,7 +35,7 @@ int imx31_init(void)
 
 int imx31_devices_init(void)
 {
-	add_generic_device("imx_iim", 0, NULL, MX31_IIM_BASE_ADDR, SZ_4K,
+	add_generic_device("imx-iim", 0, NULL, MX31_IIM_BASE_ADDR, SZ_4K,
 			IORESOURCE_MEM, NULL);
 
 	add_generic_device("imx31-iomux", 0, NULL, MX31_IOMUXC_BASE_ADDR, 0x1000, IORESOURCE_MEM, NULL);
diff --git a/arch/arm/mach-imx/imx35.c b/arch/arm/mach-imx/imx35.c
index 40f5770..969ebeb 100644
--- a/arch/arm/mach-imx/imx35.c
+++ b/arch/arm/mach-imx/imx35.c
@@ -63,7 +63,7 @@ int imx35_init(void)
 
 int imx35_devices_init(void)
 {
-	add_generic_device("imx_iim", 0, NULL, MX35_IIM_BASE_ADDR, SZ_4K,
+	add_generic_device("imx-iim", 0, NULL, MX35_IIM_BASE_ADDR, SZ_4K,
 			IORESOURCE_MEM, NULL);
 
 	add_generic_device("imx-iomuxv3", 0, NULL, MX35_IOMUXC_BASE_ADDR, 0x1000, IORESOURCE_MEM, NULL);
diff --git a/arch/arm/mach-imx/imx51.c b/arch/arm/mach-imx/imx51.c
index a0b627f..ad15c02 100644
--- a/arch/arm/mach-imx/imx51.c
+++ b/arch/arm/mach-imx/imx51.c
@@ -52,7 +52,7 @@ int imx51_init(void)
 
 int imx51_devices_init(void)
 {
-	add_generic_device("imx_iim", 0, NULL, MX51_IIM_BASE_ADDR, SZ_4K,
+	add_generic_device("imx-iim", 0, NULL, MX51_IIM_BASE_ADDR, SZ_4K,
 			IORESOURCE_MEM, NULL);
 
 	add_generic_device("imx-iomuxv3", 0, NULL, MX51_IOMUXC_BASE_ADDR, 0x1000, IORESOURCE_MEM, NULL);
diff --git a/arch/arm/mach-imx/imx53.c b/arch/arm/mach-imx/imx53.c
index 62e65e0..5be33a5 100644
--- a/arch/arm/mach-imx/imx53.c
+++ b/arch/arm/mach-imx/imx53.c
@@ -61,7 +61,7 @@ int imx53_init(void)
 
 int imx53_devices_init(void)
 {
-	add_generic_device("imx_iim", 0, NULL, MX53_IIM_BASE_ADDR, SZ_4K,
+	add_generic_device("imx-iim", 0, NULL, MX53_IIM_BASE_ADDR, SZ_4K,
 			IORESOURCE_MEM, NULL);
 
 	add_generic_device("imx-iomuxv3", 0, NULL, MX53_IOMUXC_BASE_ADDR, 0x1000, IORESOURCE_MEM, NULL);
diff --git a/arch/arm/mach-imx/ocotp.c b/arch/arm/mach-imx/ocotp.c
index 476b376..b4f44eb 100644
--- a/arch/arm/mach-imx/ocotp.c
+++ b/arch/arm/mach-imx/ocotp.c
@@ -448,7 +448,7 @@ static __maybe_unused struct of_device_id imx_ocotp_dt_ids[] = {
 };
 
 static struct driver_d imx_ocotp_driver = {
-	.name	= "imx_ocotp",
+	.name	= "imx-ocotp",
 	.probe	= imx_ocotp_probe,
 	.of_compatible = DRV_OF_COMPAT(imx_ocotp_dt_ids),
 };
diff --git a/arch/mips/mach-ar231x/ar231x_reset.c b/arch/mips/mach-ar231x/ar231x_reset.c
index 5ececb5..9720140 100644
--- a/arch/mips/mach-ar231x/ar231x_reset.c
+++ b/arch/mips/mach-ar231x/ar231x_reset.c
@@ -63,7 +63,7 @@ static int ar231x_reset_probe(struct device_d *dev)
 
 static struct driver_d ar231x_reset_driver = {
 	.probe	= ar231x_reset_probe,
-	.name	= "ar231x_reset",
+	.name	= "ar231x-reset",
 };
 
 static int ar231x_reset_init(void)
diff --git a/arch/nios2/boards/generic/generic.c b/arch/nios2/boards/generic/generic.c
index 61b60b6..0324d09 100644
--- a/arch/nios2/boards/generic/generic.c
+++ b/arch/nios2/boards/generic/generic.c
@@ -27,7 +27,7 @@ static struct resource mac_resources[] = {
 
 static struct device_d mac_dev = {
 	.id            = DEVICE_ID_DYNAMIC,
-	.name          = "altera_tse",
+	.name          = "altera-tse",
 	.num_resources = ARRAY_SIZE(mac_resources),
 	.resource      = mac_resources,
 	.platform_data = &phy_address,
diff --git a/arch/x86/boards/x86_generic/intf_platform_ide.c b/arch/x86/boards/x86_generic/intf_platform_ide.c
index 18a2620..5938810 100644
--- a/arch/x86/boards/x86_generic/intf_platform_ide.c
+++ b/arch/x86/boards/x86_generic/intf_platform_ide.c
@@ -57,7 +57,7 @@ static struct resource secondary_ide_resources[] = {
 };
 
 static struct device_d primary_ide_device = {
-	.name = "ide_intf",
+	.name = "ide-intf",
 	.id = 0,
 	.platform_data = &ide_plat,
 	.resource = primary_ide_resources,
@@ -65,7 +65,7 @@ static struct device_d primary_ide_device = {
 };
 
 static struct device_d secondary_ide_device = {
-	.name = "ide_intf",
+	.name = "ide-intf",
 	.id = 1,
 	.platform_data = &ide_plat,
 	.resource = secondary_ide_resources,
diff --git a/drivers/ata/intf_platform_ide.c b/drivers/ata/intf_platform_ide.c
index ecc2546..d802908 100644
--- a/drivers/ata/intf_platform_ide.c
+++ b/drivers/ata/intf_platform_ide.c
@@ -136,7 +136,7 @@ static int platform_ide_probe(struct device_d *dev)
 }
 
 static struct driver_d platform_ide_driver = {
-	.name   = "ide_intf",
+	.name   = "ide-intf",
 	.probe  = platform_ide_probe,
 };
 device_platform_driver(platform_ide_driver);
diff --git a/drivers/clk/clk-ar933x.c b/drivers/clk/clk-ar933x.c
index d983387..dc5b9be 100644
--- a/drivers/clk/clk-ar933x.c
+++ b/drivers/clk/clk-ar933x.c
@@ -164,7 +164,7 @@ static __maybe_unused struct of_device_id ar933x_clk_dt_ids[] = {
 
 static struct driver_d ar933x_clk_driver = {
 	.probe	= ar933x_clk_probe,
-	.name	= "ar933x_clk",
+	.name	= "ar933x-clk",
 	.of_compatible = DRV_OF_COMPAT(ar933x_clk_dt_ids),
 };
 
diff --git a/drivers/clocksource/arm_smp_twd.c b/drivers/clocksource/arm_smp_twd.c
index 3efe8dd..392e71f 100644
--- a/drivers/clocksource/arm_smp_twd.c
+++ b/drivers/clocksource/arm_smp_twd.c
@@ -98,7 +98,7 @@ static __maybe_unused struct of_device_id smp_twd_compatible[] = {
 };
 
 static struct driver_d smp_twd_driver = {
-	.name = "smp_twd",
+	.name = "smp-twd",
 	.probe = smp_twd_probe,
 	.of_compatible = DRV_OF_COMPAT(smp_twd_compatible),
 };
diff --git a/drivers/clocksource/nomadik.c b/drivers/clocksource/nomadik.c
index 8a3e6d9..a2b7951 100644
--- a/drivers/clocksource/nomadik.c
+++ b/drivers/clocksource/nomadik.c
@@ -136,7 +136,7 @@ static int nmdk_mtu_probe(struct device_d *dev)
 }
 
 static struct driver_d nmdk_mtu_driver = {
-	.name = "nomadik_mtu",
+	.name = "nomadik-mtu",
 	.probe = nmdk_mtu_probe,
 };
 
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index 7d15b85..00a062e 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -199,7 +199,7 @@ static struct of_device_id davinci_gpio_ids[] = {
 };
 
 static struct driver_d davinci_gpio_driver = {
-	.name		= "davinci_gpio",
+	.name		= "davinci-gpio",
 	.probe		= davinci_gpio_probe,
 	.of_compatible	= DRV_OF_COMPAT(davinci_gpio_ids),
 };
diff --git a/drivers/gpio/gpio-pl061.c b/drivers/gpio/gpio-pl061.c
index f34aba9..538a5ed 100644
--- a/drivers/gpio/gpio-pl061.c
+++ b/drivers/gpio/gpio-pl061.c
@@ -141,7 +141,7 @@ static struct amba_id pl061_ids[] = {
 
 static struct amba_driver pl061_gpio_driver = {
 	.drv = {
-		.name	= "pl061_gpio",
+		.name	= "pl061-gpio",
 	},
 	.id_table	= pl061_ids,
 	.probe		= pl061_probe,
diff --git a/drivers/input/gpio_keys.c b/drivers/input/gpio_keys.c
index d017594..d3e9cf3 100644
--- a/drivers/input/gpio_keys.c
+++ b/drivers/input/gpio_keys.c
@@ -201,7 +201,7 @@ static struct of_device_id key_gpio_of_ids[] = {
 };
 
 static struct driver_d gpio_keys_driver = {
-	.name	= "gpio_keys",
+	.name	= "gpio-keys",
 	.probe	= gpio_keys_probe,
 	.of_compatible = DRV_OF_COMPAT(key_gpio_of_ids),
 };
diff --git a/drivers/input/twl6030_pwrbtn.c b/drivers/input/twl6030_pwrbtn.c
index fc4c728..962082c 100644
--- a/drivers/input/twl6030_pwrbtn.c
+++ b/drivers/input/twl6030_pwrbtn.c
@@ -101,7 +101,7 @@ static int __init twl6030_pwrbtn_probe(struct device_d *dev)
 }
 
 static struct driver_d twl6030_pwrbtn_driver = {
-	.name	= "twl6030_pwrbtn",
+	.name	= "twl6030-pwrbtn",
 	.probe	= twl6030_pwrbtn_probe,
 };
 device_platform_driver(twl6030_pwrbtn_driver);
diff --git a/drivers/mci/atmel_mci.c b/drivers/mci/atmel_mci.c
index 36107a6..44aea86 100644
--- a/drivers/mci/atmel_mci.c
+++ b/drivers/mci/atmel_mci.c
@@ -617,7 +617,7 @@ err_gpio_cd_request:
 }
 
 static struct driver_d atmci_driver = {
-	.name	= "atmel_mci",
+	.name	= "atmel-mmc",
 	.probe	= atmci_probe,
 };
 device_platform_driver(atmci_driver);
diff --git a/drivers/mci/dw_mmc.c b/drivers/mci/dw_mmc.c
index cd2fbb5..c388af9 100644
--- a/drivers/mci/dw_mmc.c
+++ b/drivers/mci/dw_mmc.c
@@ -602,7 +602,7 @@ static __maybe_unused struct of_device_id dw_mmc_compatible[] = {
 };
 
 static struct driver_d dw_mmc_driver = {
-	.name  = "dw_mmc",
+	.name  = "dw-mmc",
 	.probe = dw_mmc_probe,
 	.of_compatible = DRV_OF_COMPAT(dw_mmc_compatible),
 };
diff --git a/drivers/mci/mci-bcm2835.c b/drivers/mci/mci-bcm2835.c
index 7d8997c..c87982d 100644
--- a/drivers/mci/mci-bcm2835.c
+++ b/drivers/mci/mci-bcm2835.c
@@ -541,7 +541,7 @@ static int bcm2835_mci_probe(struct device_d *hw_dev)
 }
 
 static struct driver_d bcm2835_mci_driver = {
-	.name = "bcm2835_mci",
+	.name = "bcm2835-mci",
 	.probe = bcm2835_mci_probe,
 };
 
diff --git a/drivers/mci/mci_spi.c b/drivers/mci/mci_spi.c
index 011947c..296ada8 100644
--- a/drivers/mci/mci_spi.c
+++ b/drivers/mci/mci_spi.c
@@ -440,7 +440,7 @@ static int spi_mci_probe(struct device_d *dev)
 }
 
 static struct driver_d spi_mci_driver = {
-	.name	= "spi_mci",
+	.name	= "spi-mci",
 	.probe	= spi_mci_probe,
 };
 device_spi_driver(spi_mci_driver);
diff --git a/drivers/mci/mxs.c b/drivers/mci/mxs.c
index bf928e8..3e46b8c 100644
--- a/drivers/mci/mxs.c
+++ b/drivers/mci/mxs.c
@@ -607,7 +607,7 @@ static int mxs_mci_probe(struct device_d *hw_dev)
 }
 
 static struct driver_d mxs_mci_driver = {
-        .name  = "mxs_mci",
+        .name  = "mxs-mci",
         .probe = mxs_mci_probe,
 };
 device_platform_driver(mxs_mci_driver);
diff --git a/drivers/mci/s3c.c b/drivers/mci/s3c.c
index 773c84a..ca535fa 100644
--- a/drivers/mci/s3c.c
+++ b/drivers/mci/s3c.c
@@ -762,7 +762,7 @@ static int s3c_mci_probe(struct device_d *hw_dev)
 }
 
 static struct driver_d s3c_mci_driver = {
-        .name  = "s3c_mci",
+        .name  = "s3c-mci",
         .probe = s3c_mci_probe,
 };
 device_platform_driver(s3c_mci_driver);
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index fa31b61..a35198e 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -883,7 +883,7 @@ static __maybe_unused struct of_device_id dataflash_dt_ids[] = {
 };
 
 static struct driver_d dataflash_driver = {
-	.name  = "mtd_dataflash",
+	.name  = "mtd-dataflash",
 	.probe = dataflash_probe,
 	.of_compatible = DRV_OF_COMPAT(dataflash_dt_ids),
 };
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 2e9f61f..53e786b 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -1243,7 +1243,7 @@ err_no_card:
 }
 
 static struct driver_d atmel_nand_driver = {
-	.name	= "atmel_nand",
+	.name	= "atmel-nand",
 	.probe	= atmel_nand_probe,
 };
 device_platform_driver(atmel_nand_driver);
diff --git a/drivers/mtd/nand/nand_imx.c b/drivers/mtd/nand/nand_imx.c
index e2aaa15..f3649d9 100644
--- a/drivers/mtd/nand/nand_imx.c
+++ b/drivers/mtd/nand/nand_imx.c
@@ -1318,7 +1318,7 @@ static __maybe_unused struct of_device_id imx_nand_compatible[] = {
 };
 
 static struct driver_d imx_nand_driver = {
-	.name  = "imx_nand",
+	.name  = "imx-nand",
 	.probe = imxnd_probe,
 	.of_compatible = DRV_OF_COMPAT(imx_nand_compatible),
 };
diff --git a/drivers/mtd/nand/nand_mxs.c b/drivers/mtd/nand/nand_mxs.c
index 5a4449d..f89c807 100644
--- a/drivers/mtd/nand/nand_mxs.c
+++ b/drivers/mtd/nand/nand_mxs.c
@@ -1347,7 +1347,7 @@ static __maybe_unused struct of_device_id gpmi_dt_ids[] = {
 };
 
 static struct driver_d mxs_nand_driver = {
-	.name  = "mxs_nand",
+	.name  = "mxs-nand",
 	.probe = mxs_nand_probe,
 	.of_compatible = DRV_OF_COMPAT(gpmi_dt_ids),
 };
diff --git a/drivers/mtd/nand/nand_omap_gpmc.c b/drivers/mtd/nand/nand_omap_gpmc.c
index 59712b8..958c8d7 100644
--- a/drivers/mtd/nand/nand_omap_gpmc.c
+++ b/drivers/mtd/nand/nand_omap_gpmc.c
@@ -12,7 +12,7 @@
  *
  * @code
  * static struct device_d my_nand_device = {
- *	.name = "gpmc_nand",
+ *	.name = "gpmc-nand",
  *	.id = some identifier you need to show.. e.g. "gpmc_nand0"
  *	.resource[0].start = GPMC base address
  *	.resource[0].size = GPMC address map size.
@@ -1071,7 +1071,7 @@ out_release_mem:
 
 /** GMPC nand driver -> device registered by platforms */
 static struct driver_d gpmc_nand_driver = {
-	.name = "gpmc_nand",
+	.name = "gpmc-nand",
 	.probe = gpmc_nand_probe,
 };
 device_platform_driver(gpmc_nand_driver);
diff --git a/drivers/mtd/nand/nand_s3c24xx.c b/drivers/mtd/nand/nand_s3c24xx.c
index bee037b..90591d2 100644
--- a/drivers/mtd/nand/nand_s3c24xx.c
+++ b/drivers/mtd/nand/nand_s3c24xx.c
@@ -494,7 +494,7 @@ on_error:
 }
 
 static struct driver_d s3c24x0_nand_driver = {
-	.name  = "s3c24x0_nand",
+	.name  = "s3c24x0-nand",
 	.probe = s3c24x0_nand_probe,
 };
 device_platform_driver(s3c24x0_nand_driver);
diff --git a/drivers/mtd/nand/nomadik_nand.c b/drivers/mtd/nand/nomadik_nand.c
index fbd8ecd..c3e051c 100644
--- a/drivers/mtd/nand/nomadik_nand.c
+++ b/drivers/mtd/nand/nomadik_nand.c
@@ -233,7 +233,7 @@ err:
 
 static struct driver_d nomadik_nand_driver = {
 	.probe = nomadik_nand_probe,
-	.name = "nomadik_nand",
+	.name = "nomadik-nand",
 };
 device_platform_driver(nomadik_nand_driver);
 
diff --git a/drivers/mtd/nor/cfi_flash.c b/drivers/mtd/nor/cfi_flash.c
index 3d3d231..ba5a934 100644
--- a/drivers/mtd/nor/cfi_flash.c
+++ b/drivers/mtd/nor/cfi_flash.c
@@ -1006,7 +1006,7 @@ static __maybe_unused struct of_device_id cfi_dt_ids[] = {
 };
 
 static struct driver_d cfi_driver = {
-	.name    = "cfi_flash",
+	.name    = "cfi-flash",
 	.probe   = cfi_probe,
 	.of_compatible = DRV_OF_COMPAT(cfi_dt_ids),
 };
diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c
index 4bbf595..408180c 100644
--- a/drivers/net/altera_tse.c
+++ b/drivers/net/altera_tse.c
@@ -554,7 +554,7 @@ static int tse_probe(struct device_d *dev)
 }
 
 static struct driver_d altera_tse_driver = {
-	.name = "altera_tse",
+	.name = "altera-tse",
 	.probe = tse_probe,
 };
 device_platform_driver(altera_tse_driver);
diff --git a/drivers/net/ar231x.c b/drivers/net/ar231x.c
index 572008a..8c4a847 100644
--- a/drivers/net/ar231x.c
+++ b/drivers/net/ar231x.c
@@ -420,7 +420,7 @@ static int ar231x_eth_probe(struct device_d *dev)
 }
 
 static struct driver_d ar231x_eth_driver = {
-	.name = "ar231x_eth",
+	.name = "eth-ar231x",
 	.probe = ar231x_eth_probe,
 };
 
diff --git a/drivers/net/arc_emac.c b/drivers/net/arc_emac.c
index 8b74ea5..0116a62 100644
--- a/drivers/net/arc_emac.c
+++ b/drivers/net/arc_emac.c
@@ -452,7 +452,7 @@ static __maybe_unused struct of_device_id arc_emac_dt_ids[] = {
 };
 
 static struct driver_d arc_emac_driver = {
-	.name = "arc-emac",
+	.name = "eth-emac",
 	.probe = arc_emac_probe,
 	.of_compatible = DRV_OF_COMPAT(arc_emac_dt_ids),
 };
diff --git a/drivers/net/at91_ether.c b/drivers/net/at91_ether.c
index e09ea83..fa21eab 100644
--- a/drivers/net/at91_ether.c
+++ b/drivers/net/at91_ether.c
@@ -358,7 +358,7 @@ static int at91_ether_probe(struct device_d *dev)
 }
 
 static struct driver_d at91_ether_driver = {
-	.name = "at91_ether",
+	.name = "eth-at91",
 	.probe = at91_ether_probe,
 };
 device_platform_driver(at91_ether_driver);
diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c
index ccae537..8bb2bd5 100644
--- a/drivers/net/cpsw.c
+++ b/drivers/net/cpsw.c
@@ -1219,7 +1219,7 @@ static __maybe_unused struct of_device_id cpsw_dt_ids[] = {
 };
 
 static struct driver_d cpsw_driver = {
-	.name   = "cpsw",
+	.name   = "eth-cpsw",
 	.probe  = cpsw_probe,
 	.of_compatible = DRV_OF_COMPAT(cpsw_dt_ids),
 };
diff --git a/drivers/net/cs8900.c b/drivers/net/cs8900.c
index dccb808..7c41e5d 100644
--- a/drivers/net/cs8900.c
+++ b/drivers/net/cs8900.c
@@ -466,7 +466,7 @@ static int cs8900_probe(struct device_d *dev)
 }
 
 static struct driver_d cs8900_driver = {
-	.name = "cs8900",
+	.name = "eth-cs8900",
 	.probe = cs8900_probe,
 };
 device_platform_driver(cs8900_driver);
diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c
index ce367a3..a3f7ef4 100644
--- a/drivers/net/davinci_emac.c
+++ b/drivers/net/davinci_emac.c
@@ -604,7 +604,7 @@ static void davinci_emac_remove(struct device_d *dev)
 }
 
 static struct driver_d davinci_emac_driver = {
-	.name   = "davinci_emac",
+	.name   = "eth-emac",
 	.probe  = davinci_emac_probe,
 	.remove = davinci_emac_remove,
 };
diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index ac2eca5..5d4c271 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -487,7 +487,7 @@ static __maybe_unused struct of_device_id dwc_ether_compatible[] = {
 };
 
 static struct driver_d dwc_ether_driver = {
-	.name = "designware_eth",
+	.name = "eth-designware",
 	.probe = dwc_ether_probe,
 	.of_compatible = DRV_OF_COMPAT(dwc_ether_compatible),
 };
diff --git a/drivers/net/dm9k.c b/drivers/net/dm9k.c
index 3a4c6aa..aa20151 100644
--- a/drivers/net/dm9k.c
+++ b/drivers/net/dm9k.c
@@ -783,7 +783,7 @@ static int dm9k_probe(struct device_d *dev)
 }
 
 static struct driver_d dm9k_driver = {
-	.name  = "dm9000",
+	.name  = "eth-dm9000",
 	.probe = dm9k_probe,
 };
 device_platform_driver(dm9k_driver);
diff --git a/drivers/net/ep93xx.c b/drivers/net/ep93xx.c
index 4b73abf..919e743 100644
--- a/drivers/net/ep93xx.c
+++ b/drivers/net/ep93xx.c
@@ -660,7 +660,7 @@ static int ep93xx_phy_write(struct mii_bus *bus, int phy_addr,
 }
 
 static struct driver_d ep93xx_eth_driver = {
-	.name  = "ep93xx_eth",
+	.name  = "eth-ep93xx",
 	.probe = ep93xx_eth_probe,
 };
 device_platform_driver(ep93xx_eth_driver);
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c
index 679e1e5..843243f 100644
--- a/drivers/net/ethoc.c
+++ b/drivers/net/ethoc.c
@@ -566,7 +566,7 @@ static int ethoc_probe(struct device_d *dev)
 }
 
 static struct driver_d ethoc_driver = {
-	.name  = "ethoc",
+	.name  = "eth-oc",
 	.probe = ethoc_probe,
 };
 device_platform_driver(ethoc_driver);
diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index 4ed5e8e..8722bea 100644
--- a/drivers/net/fec_imx.c
+++ b/drivers/net/fec_imx.c
@@ -796,7 +796,7 @@ static struct platform_device_id imx_fec_ids[] = {
  * Driver description for registering
  */
 static struct driver_d fec_driver = {
-	.name   = "fec_imx",
+	.name   = "imx-fec",
 	.probe  = fec_probe,
 	.remove = fec_remove,
 	.of_compatible = DRV_OF_COMPAT(imx_fec_dt_ids),
diff --git a/drivers/net/fec_mpc5200.c b/drivers/net/fec_mpc5200.c
index 41a3b58..f748bc2 100644
--- a/drivers/net/fec_mpc5200.c
+++ b/drivers/net/fec_mpc5200.c
@@ -682,7 +682,7 @@ static void mpc5xxx_fec_remove(struct device_d *dev)
 }
 
 static struct driver_d mpc5xxx_driver = {
-        .name  = "fec_mpc5xxx",
+        .name  = "eth-mpc5xxx",
         .probe = mpc5xxx_fec_probe,
 	.remove = mpc5xxx_fec_remove,
 };
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 3370b5c..8b8f8c5 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -540,7 +540,7 @@ static int gfar_probe(struct device_d *dev)
 }
 
 static struct driver_d gfar_eth_driver = {
-	.name  = "gfar",
+	.name  = "eth-gianfar",
 	.probe = gfar_probe,
 };
 device_platform_driver(gfar_eth_driver);
@@ -571,7 +571,7 @@ static int gfar_phy_probe(struct device_d *dev)
 }
 
 static struct driver_d gfar_phy_driver = {
-	.name  = "gfar-mdio",
+	.name  = "eth-gianfar-mdio",
 	.probe = gfar_phy_probe,
 };
 register_driver_macro(coredevice, platform, gfar_phy_driver);
@@ -601,7 +601,7 @@ static int gfar_tbiphy_probe(struct device_d *dev)
 }
 
 static struct driver_d gfar_tbiphy_driver = {
-	.name  = "gfar-tbiphy",
+	.name  = "eth-gianfar-tbiphy",
 	.probe = gfar_tbiphy_probe,
 };
 register_driver_macro(coredevice, platform, gfar_tbiphy_driver);
diff --git a/drivers/net/ks8851_mll.c b/drivers/net/ks8851_mll.c
index 83d1b02..bce6cee 100644
--- a/drivers/net/ks8851_mll.c
+++ b/drivers/net/ks8851_mll.c
@@ -870,7 +870,7 @@ static int ks8851_probe(struct device_d *dev)
 }
 
 static struct driver_d ks8851_driver = {
-	.name  = "ks8851_mll",
+	.name  = "eth-ks8851",
 	.probe = ks8851_probe,
 };
 device_platform_driver(ks8851_driver);
diff --git a/drivers/net/ksz8864rmn.c b/drivers/net/ksz8864rmn.c
index ec3e9f7..dbc4cca 100644
--- a/drivers/net/ksz8864rmn.c
+++ b/drivers/net/ksz8864rmn.c
@@ -171,7 +171,7 @@ static int micrel_switch_probe(struct device_d *dev)
 }
 
 static struct driver_d micrel_switch_driver = {
-	.name  = "ksz8864rmn",
+	.name  = "eth-ksz8864rmn",
 	.probe = micrel_switch_probe,
 };
 device_spi_driver(micrel_switch_driver);
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 12a2a3c..e819756 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -686,7 +686,7 @@ static int macb_probe(struct device_d *dev)
 }
 
 static struct driver_d macb_driver = {
-	.name  = "macb",
+	.name  = "eth-macb",
 	.probe = macb_probe,
 };
 device_platform_driver(macb_driver);
diff --git a/drivers/net/netx_eth.c b/drivers/net/netx_eth.c
index 96dbc7c..a5a788e 100644
--- a/drivers/net/netx_eth.c
+++ b/drivers/net/netx_eth.c
@@ -273,7 +273,7 @@ static int netx_eth_probe(struct device_d *dev)
 }
 
 static struct driver_d netx_eth_driver = {
-        .name  = "netx-eth",
+        .name  = "eth-netx",
         .probe = netx_eth_probe,
 };
 device_platform_driver(netx_eth_driver);
diff --git a/drivers/net/orion-gbe.c b/drivers/net/orion-gbe.c
index 9315127..5689ff4 100644
--- a/drivers/net/orion-gbe.c
+++ b/drivers/net/orion-gbe.c
@@ -539,7 +539,7 @@ static struct of_device_id orion_gbe_dt_ids[] = {
 };
 
 static struct driver_d orion_gbe_driver = {
-	.name   = "orion-gbe",
+	.name   = "eth-gbe",
 	.probe  = orion_gbe_probe,
 	.remove = orion_gbe_remove,
 	.of_compatible = DRV_OF_COMPAT(orion_gbe_dt_ids),
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c
index f526cfc..5a29394 100644
--- a/drivers/net/phy/mdio_bus.c
+++ b/drivers/net/phy/mdio_bus.c
@@ -340,7 +340,7 @@ static void mdio_bus_remove(struct device_d *_dev)
 }
 
 struct bus_type mdio_bus_type = {
-	.name		= "mdio_bus",
+	.name		= "mdio-bus",
 	.match		= mdio_bus_match,
 	.probe		= mdio_bus_probe,
 	.remove		= mdio_bus_remove,
diff --git a/drivers/net/smc91111.c b/drivers/net/smc91111.c
index 7baa749..8800a7e 100644
--- a/drivers/net/smc91111.c
+++ b/drivers/net/smc91111.c
@@ -1340,7 +1340,7 @@ static int smc91c111_probe(struct device_d *dev)
 }
 
 static struct driver_d smc91c111_driver = {
-        .name  = "smc91c111",
+        .name  = "eth-smc91c111",
         .probe = smc91c111_probe,
 };
 device_platform_driver(smc91c111_driver);
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 9977ae3..937d2e1 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -631,7 +631,7 @@ static int smc911x_probe(struct device_d *dev)
 }
 
 static struct driver_d smc911x_driver = {
-        .name  = "smc911x",
+        .name  = "eth-smc911x",
         .probe = smc911x_probe,
 };
 device_platform_driver(smc911x_driver);
diff --git a/drivers/net/tap.c b/drivers/net/tap.c
index 2458fb5..da23aec 100644
--- a/drivers/net/tap.c
+++ b/drivers/net/tap.c
@@ -106,7 +106,7 @@ out:
 }
 
 static struct driver_d tap_driver = {
-        .name  = "tap",
+        .name  = "eth-tap",
         .probe = tap_probe,
 };
 device_platform_driver(tap_driver);
diff --git a/drivers/net/xgmac.c b/drivers/net/xgmac.c
index cc22d0e..6568b64 100644
--- a/drivers/net/xgmac.c
+++ b/drivers/net/xgmac.c
@@ -727,7 +727,7 @@ static __maybe_unused struct of_device_id xgmac_dt_ids[] = {
 };
 
 static struct driver_d hb_xgmac_driver = {
-	.name  = "hb-xgmac",
+	.name  = "eth-hb-xgmac",
 	.probe = hb_xgmac_probe,
 	.of_compatible = DRV_OF_COMPAT(xgmac_dt_ids),
 };
diff --git a/drivers/pwm/pxa_pwm.c b/drivers/pwm/pxa_pwm.c
index 8b2ebe4..854c745 100644
--- a/drivers/pwm/pxa_pwm.c
+++ b/drivers/pwm/pxa_pwm.c
@@ -143,7 +143,7 @@ static int pxa_pwm_probe(struct device_d *dev)
 }
 
 static struct driver_d pxa_pwm_driver = {
-	.name  = "pxa_pwm",
+	.name  = "pxa-pwm",
 	.probe = pxa_pwm_probe,
 };
 
diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c
index e5f2bbe..79cbfbd 100644
--- a/drivers/serial/arm_dcc.c
+++ b/drivers/serial/arm_dcc.c
@@ -145,14 +145,14 @@ static int arm_dcc_probe(struct device_d *dev)
 }
 
 static struct driver_d arm_dcc_driver = {
-	.name	= "arm_dcc",
+	.name	= "arm-dcc",
 	.probe	= arm_dcc_probe,
 };
 console_platform_driver(arm_dcc_driver);
 
 static struct device_d arm_dcc_device = {
 	.id	= DEVICE_ID_DYNAMIC,
-	.name	= "arm_dcc",
+	.name	= "arm-dcc",
 };
 
 static int arm_dcc_init(void)
diff --git a/drivers/serial/atmel.c b/drivers/serial/atmel.c
index c2a5d33..a7ff35b 100644
--- a/drivers/serial/atmel.c
+++ b/drivers/serial/atmel.c
@@ -439,7 +439,7 @@ static int atmel_serial_probe(struct device_d *dev)
 }
 
 static struct driver_d atmel_serial_driver = {
-        .name  = "atmel_usart",
+        .name  = "atmel-usart",
         .probe = atmel_serial_probe,
 };
 console_platform_driver(atmel_serial_driver);
diff --git a/drivers/serial/serial_altera.c b/drivers/serial/serial_altera.c
index d519a87..e203afe 100644
--- a/drivers/serial/serial_altera.c
+++ b/drivers/serial/serial_altera.c
@@ -97,7 +97,7 @@ static int altera_serial_probe(struct device_d *dev)
 }
 
 static struct driver_d altera_serial_driver = {
-	.name = "altera_serial",
+	.name = "altera-serial",
 	.probe = altera_serial_probe,
 };
 console_platform_driver(altera_serial_driver);
diff --git a/drivers/serial/serial_altera_jtag.c b/drivers/serial/serial_altera_jtag.c
index 4219a4b..9137101 100644
--- a/drivers/serial/serial_altera_jtag.c
+++ b/drivers/serial/serial_altera_jtag.c
@@ -102,7 +102,7 @@ static int altera_serial_jtag_probe(struct device_d *dev) {
 }
 
 static struct driver_d altera_serial_jtag_driver = {
-	.name = "altera_serial_jtag",
+	.name = "altera-serial-jtag",
 	.probe = altera_serial_jtag_probe,
 };
 console_platform_driver(altera_serial_jtag_driver);
diff --git a/drivers/serial/serial_ar933x.c b/drivers/serial/serial_ar933x.c
index 27cccba..6297b8f 100644
--- a/drivers/serial/serial_ar933x.c
+++ b/drivers/serial/serial_ar933x.c
@@ -197,7 +197,7 @@ static struct of_device_id ar933x_serial_dt_ids[] = {
 };
 
 static struct driver_d ar933x_serial_driver = {
-	.name  = "ar933x_serial",
+	.name  = "ar933x-serial",
 	.probe = ar933x_serial_probe,
 	.of_compatible = DRV_OF_COMPAT(ar933x_serial_dt_ids),
 };
diff --git a/drivers/serial/serial_auart.c b/drivers/serial/serial_auart.c
index 1980516..400bb87 100644
--- a/drivers/serial/serial_auart.c
+++ b/drivers/serial/serial_auart.c
@@ -228,7 +228,7 @@ static void auart_serial_remove(struct device_d *dev)
 }
 
 static struct driver_d auart_serial_driver = {
-	.name = "auart_serial",
+	.name = "auart-serial",
 	.probe = auart_serial_probe,
 	.remove = auart_serial_remove,
 };
diff --git a/drivers/serial/serial_blackfin.c b/drivers/serial/serial_blackfin.c
index 2122226..d58bc8a 100644
--- a/drivers/serial/serial_blackfin.c
+++ b/drivers/serial/serial_blackfin.c
@@ -126,7 +126,7 @@ static int blackfin_serial_probe(struct device_d *dev)
 }
 
 static struct driver_d blackfin_serial_driver = {
-        .name  = "blackfin_serial",
+        .name  = "blackfin-serial",
         .probe = blackfin_serial_probe,
 };
 console_platform_driver(blackfin_serial_driver);
diff --git a/drivers/serial/serial_cadence.c b/drivers/serial/serial_cadence.c
index a1b76d0..e24c743 100644
--- a/drivers/serial/serial_cadence.c
+++ b/drivers/serial/serial_cadence.c
@@ -292,7 +292,7 @@ static struct platform_device_id cadence_serial_ids[] = {
 };
 
 static struct driver_d cadence_serial_driver = {
-	.name   = "cadence_serial",
+	.name   = "cadence-serial",
 	.probe  = cadence_serial_probe,
 	.remove = cadence_serial_remove,
 	.of_compatible = DRV_OF_COMPAT(cadence_serial_dt_ids),
diff --git a/drivers/serial/serial_imx.c b/drivers/serial/serial_imx.c
index e0bd185..91e5784 100644
--- a/drivers/serial/serial_imx.c
+++ b/drivers/serial/serial_imx.c
@@ -391,7 +391,7 @@ static struct platform_device_id imx_serial_ids[] = {
 };
 
 static struct driver_d imx_serial_driver = {
-	.name   = "imx_serial",
+	.name   = "imx-serial",
 	.probe  = imx_serial_probe,
 	.remove = imx_serial_remove,
 	.of_compatible = DRV_OF_COMPAT(imx_serial_dt_ids),
diff --git a/drivers/serial/serial_mpc5xxx.c b/drivers/serial/serial_mpc5xxx.c
index 18aca87..de89e64 100644
--- a/drivers/serial/serial_mpc5xxx.c
+++ b/drivers/serial/serial_mpc5xxx.c
@@ -162,7 +162,7 @@ static int mpc5xxx_serial_probe(struct device_d *dev)
 }
 
 static struct driver_d mpc5xxx_serial_driver = {
-        .name  = "mpc5xxx_serial",
+        .name  = "mpc5xxx-serial",
         .probe = mpc5xxx_serial_probe,
 };
 console_platform_driver(mpc5xxx_serial_driver);
diff --git a/drivers/serial/serial_netx.c b/drivers/serial/serial_netx.c
index c659cfa..2eb8516 100644
--- a/drivers/serial/serial_netx.c
+++ b/drivers/serial/serial_netx.c
@@ -151,7 +151,7 @@ static int netx_serial_probe(struct device_d *dev)
 }
 
 static struct driver_d netx_serial_driver = {
-        .name  = "netx_serial",
+        .name  = "netx-serial",
         .probe = netx_serial_probe,
 };
 console_platform_driver(netx_serial_driver);
diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c
index 709f704..0126ff8 100644
--- a/drivers/serial/serial_ns16550.c
+++ b/drivers/serial/serial_ns16550.c
@@ -496,7 +496,7 @@ static __maybe_unused struct platform_device_id ns16550_serial_ids[] = {
  * @brief Driver registration structure
  */
 static struct driver_d ns16550_serial_driver = {
-	.name = "ns16550_serial",
+	.name = "ns16550-serial",
 	.probe = ns16550_probe,
 	.of_compatible = DRV_OF_COMPAT(ns16550_serial_dt_ids),
 #if IS_ENABLED(CONFIG_ARCH_OMAP)
diff --git a/drivers/serial/serial_omap4_usbboot.c b/drivers/serial/serial_omap4_usbboot.c
index 2ef026c..c5f79f6 100644
--- a/drivers/serial/serial_omap4_usbboot.c
+++ b/drivers/serial/serial_omap4_usbboot.c
@@ -71,7 +71,7 @@ static int serial_omap4_usbboot_probe(struct device_d *dev)
 }
 
 static struct driver_d serial_omap4_usbboot_driver = {
-	.name = "serial_omap4_usbboot",
+	.name = "omap4-usbboot-serial",
 	.probe = serial_omap4_usbboot_probe,
 };
 console_platform_driver(serial_omap4_usbboot_driver);
diff --git a/drivers/serial/serial_pl010.c b/drivers/serial/serial_pl010.c
index 81cea77..3f62f3c 100644
--- a/drivers/serial/serial_pl010.c
+++ b/drivers/serial/serial_pl010.c
@@ -153,7 +153,7 @@ static int pl010_probe(struct device_d *dev)
 }
 
 static struct driver_d pl010_driver = {
-	.name  = "pl010_serial",
+	.name  = "pl010-serial",
 	.probe = pl010_probe,
 };
 console_platform_driver(pl010_driver);
diff --git a/drivers/serial/serial_pxa.c b/drivers/serial/serial_pxa.c
index 20ac4be..963dab8 100644
--- a/drivers/serial/serial_pxa.c
+++ b/drivers/serial/serial_pxa.c
@@ -190,7 +190,7 @@ static void pxa_serial_remove(struct device_d *dev)
 }
 
 static struct driver_d pxa_serial_driver = {
-	.name = "pxa_serial",
+	.name = "pxa-serial",
 	.probe = pxa_serial_probe,
 	.remove = pxa_serial_remove,
 };
diff --git a/drivers/serial/serial_s3c.c b/drivers/serial/serial_s3c.c
index 038193d..ddf5d4e 100644
--- a/drivers/serial/serial_s3c.c
+++ b/drivers/serial/serial_s3c.c
@@ -208,7 +208,7 @@ static void s3c_serial_remove(struct device_d *dev)
 }
 
 static struct driver_d s3c_serial_driver = {
-	.name   = "s3c_serial",
+	.name   = "s3c-serial",
 	.probe  = s3c_serial_probe,
 	.remove = s3c_serial_remove,
 };
diff --git a/drivers/serial/stm-serial.c b/drivers/serial/stm-serial.c
index 3fec1ce..c58e092 100644
--- a/drivers/serial/stm-serial.c
+++ b/drivers/serial/stm-serial.c
@@ -189,7 +189,7 @@ static void stm_serial_remove(struct device_d *dev)
 }
 
 static struct driver_d stm_serial_driver = {
-        .name   = "stm_serial",
+        .name   = "stm-serial",
         .probe  = stm_serial_probe,
 	.remove = stm_serial_remove,
 };
diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c
index 983b877..52cffe3 100644
--- a/drivers/spi/altera_spi.c
+++ b/drivers/spi/altera_spi.c
@@ -236,7 +236,7 @@ static int altera_spi_probe(struct device_d *dev)
 }
 
 static struct driver_d altera_spi_driver = {
-	.name  = "altera_spi",
+	.name  = "altera-spi",
 	.probe = altera_spi_probe,
 };
 device_platform_driver(altera_spi_driver);
diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c
index 0bf9d08..530473a 100644
--- a/drivers/spi/atmel_spi.c
+++ b/drivers/spi/atmel_spi.c
@@ -435,7 +435,7 @@ out_free:
 }
 
 static struct driver_d atmel_spi_driver = {
-	.name  = "atmel_spi",
+	.name  = "atmel-spi",
 	.probe = atmel_spi_probe,
 };
 device_platform_driver(atmel_spi_driver);
diff --git a/drivers/spi/imx_spi.c b/drivers/spi/imx_spi.c
index 3146339..3cc0849 100644
--- a/drivers/spi/imx_spi.c
+++ b/drivers/spi/imx_spi.c
@@ -581,7 +581,7 @@ static struct platform_device_id imx_spi_ids[] = {
 };
 
 static struct driver_d imx_spi_driver = {
-	.name  = "imx_spi",
+	.name  = "imx-spi",
 	.probe = imx_spi_probe,
 	.of_compatible = DRV_OF_COMPAT(imx_spi_dt_ids),
 	.id_table = imx_spi_ids,
diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c
index a00784f..f8029cf 100644
--- a/drivers/spi/mxs_spi.c
+++ b/drivers/spi/mxs_spi.c
@@ -278,7 +278,7 @@ static int mxs_spi_probe(struct device_d *dev)
 }
 
 static struct driver_d mxs_spi_driver = {
-	.name  = "mxs_spi",
+	.name  = "mxs-spi",
 	.probe = mxs_spi_probe,
 };
 device_platform_driver(mxs_spi_driver);
diff --git a/drivers/usb/gadget/dfu.c b/drivers/usb/gadget/dfu.c
index d0f2155..83d23bf 100644
--- a/drivers/usb/gadget/dfu.c
+++ b/drivers/usb/gadget/dfu.c
@@ -686,7 +686,7 @@ fail:
 }
 
 static struct usb_composite_driver dfu_driver = {
-	.name		= "g_dfu",
+	.name		= "gadget-dfu",
 	.dev		= &dfu_dev_descriptor,
 	.strings	= dev_strings,
 	.bind		= dfu_driver_bind,
diff --git a/drivers/usb/gadget/serial.c b/drivers/usb/gadget/serial.c
index 98a501b..9883e4a 100644
--- a/drivers/usb/gadget/serial.c
+++ b/drivers/usb/gadget/serial.c
@@ -173,7 +173,7 @@ fail:
 }
 
 static struct usb_composite_driver gserial_driver = {
-	.name		= "g_serial",
+	.name		= "gadget-serial",
 	.dev		= &device_desc,
 	.strings	= dev_strings,
 	.bind		= gs_bind,
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c
index 0f5c8f1..06ebf88 100644
--- a/drivers/usb/host/ohci-at91.c
+++ b/drivers/usb/host/ohci-at91.c
@@ -81,7 +81,7 @@ static void at91_ohci_remove(struct device_d *dev)
 }
 
 static struct driver_d at91_ohci_driver = {
-	.name = "at91_ohci",
+	.name = "at91-ohci",
 	.probe = at91_ohci_probe,
 	.remove = at91_ohci_remove,
 };
diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c
index 2956598..1d9e024 100644
--- a/drivers/video/atmel_hlcdfb.c
+++ b/drivers/video/atmel_hlcdfb.c
@@ -286,7 +286,7 @@ static int atmel_hlcdc_probe(struct device_d *dev)
 }
 
 static struct driver_d atmel_hlcdc_driver = {
-	.name	= "atmel_hlcdfb",
+	.name	= "atmel-hlcdfb",
 	.probe	= atmel_hlcdc_probe,
 };
 device_platform_driver(atmel_hlcdc_driver);
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
index e9164e3..c18e630 100644
--- a/drivers/video/atmel_lcdfb.c
+++ b/drivers/video/atmel_lcdfb.c
@@ -252,7 +252,7 @@ static int atmel_lcdc_probe(struct device_d *dev)
 }
 
 static struct driver_d atmel_lcdc_driver = {
-	.name	= "atmel_lcdfb",
+	.name	= "atmel-lcdfb",
 	.probe	= atmel_lcdc_probe,
 };
 device_platform_driver(atmel_lcdc_driver);
diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c
index 3d52f8b..61ff946 100644
--- a/drivers/video/bcm2835.c
+++ b/drivers/video/bcm2835.c
@@ -130,7 +130,7 @@ static int bcm2835fb_probe(struct device_d *dev)
 }
 
 static struct driver_d bcm2835fb_driver = {
-	.name	= "bcm2835_fb",
+	.name	= "bcm2835-fb",
 	.probe	= bcm2835fb_probe,
 };
 device_platform_driver(bcm2835fb_driver);
diff --git a/drivers/video/imx.c b/drivers/video/imx.c
index b12c09c..cec2e8b 100644
--- a/drivers/video/imx.c
+++ b/drivers/video/imx.c
@@ -581,7 +581,7 @@ static int imxfb_probe(struct device_d *dev)
 }
 
 static struct driver_d imxfb_driver = {
-	.name		= "imxfb",
+	.name		= "imx-fb",
 	.probe		= imxfb_probe,
 };
 device_platform_driver(imxfb_driver);
diff --git a/drivers/video/omap.c b/drivers/video/omap.c
index 485cc75..8d76431 100644
--- a/drivers/video/omap.c
+++ b/drivers/video/omap.c
@@ -512,7 +512,7 @@ out:
 }
 
 static struct driver_d omapfb_driver = {
-	.name	= "omap_fb",
+	.name	= "omap-fb",
 	.probe	= omapfb_probe,
 };
 
diff --git a/drivers/video/pxa.c b/drivers/video/pxa.c
index b4ce3a1..27398cd 100644
--- a/drivers/video/pxa.c
+++ b/drivers/video/pxa.c
@@ -537,7 +537,7 @@ static int pxafb_probe(struct device_d *dev)
 }
 
 static struct driver_d pxafb_driver = {
-	.name	= "pxafb",
+	.name	= "pxa-fb",
 	.probe	= pxafb_probe,
 };
 device_platform_driver(pxafb_driver);
diff --git a/drivers/video/s3c24xx.c b/drivers/video/s3c24xx.c
index b1883e2..028ba9a 100644
--- a/drivers/video/s3c24xx.c
+++ b/drivers/video/s3c24xx.c
@@ -401,7 +401,7 @@ static int s3cfb_probe(struct device_d *hw_dev)
 }
 
 static struct driver_d s3cfb_driver = {
-	.name	= "s3c_fb",
+	.name	= "s3c-fb",
 	.probe	= s3cfb_probe,
 };
 device_platform_driver(s3cfb_driver);
diff --git a/drivers/video/sdl.c b/drivers/video/sdl.c
index a568340..de65f3f 100644
--- a/drivers/video/sdl.c
+++ b/drivers/video/sdl.c
@@ -89,7 +89,7 @@ static void sdlfb_remove(struct device_d *dev)
 }
 
 static struct driver_d sdlfb_driver = {
-	.name	= "sdlfb",
+	.name	= "sdl-fb",
 	.probe	= sdlfb_probe,
 	.remove	= sdlfb_remove,
 };
diff --git a/drivers/video/stm.c b/drivers/video/stm.c
index 175e4b6..860dfdb 100644
--- a/drivers/video/stm.c
+++ b/drivers/video/stm.c
@@ -521,7 +521,7 @@ static int stmfb_probe(struct device_d *hw_dev)
 }
 
 static struct driver_d stmfb_driver = {
-	.name	= "stmfb",
+	.name	= "stm-fb",
 	.probe	= stmfb_probe,
 };
 device_platform_driver(stmfb_driver);
diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index bbef470..221fdfc 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -396,7 +396,7 @@ static void w1_bus_remove(struct device_d *_dev)
 }
 
 struct bus_type w1_bustype= {
-	.name = "w1_bus",
+	.name = "w1-bus",
 	.match = w1_bus_match,
 	.probe = w1_bus_probe,
 	.remove = w1_bus_remove,
@@ -618,7 +618,7 @@ int w1_bus_register(struct w1_bus *bus)
 
 	list_add_tail(&bus->list, &w1_buses);
 
-	strcpy(bus->dev.name, "w1_bus");
+	strcpy(bus->dev.name, "w1-bus");
 	bus->dev.id = DEVICE_ID_DYNAMIC;
 	bus->dev.parent = bus->parent;
 
diff --git a/fs/omap4_usbbootfs.c b/fs/omap4_usbbootfs.c
index 0dc7682..b0b4390 100644
--- a/fs/omap4_usbbootfs.c
+++ b/fs/omap4_usbbootfs.c
@@ -208,7 +208,7 @@ static struct fs_driver_d omap4_usbbootfs_driver = {
 	.drv = {
 		.probe	= omap4_usbbootfs_probe,
 		.remove	= omap4_usbbootfs_remove,
-		.name	= "omap4_usbbootfs",
+		.name	= "omap4-usbbootfs",
 	}
 };
 
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 02/10] devinfo: reduce indentation
  2014-05-30  9:07 ` [PATCH 02/10] devinfo: reduce indentation Holger Schurig
@ 2014-05-30  9:08   ` Holger Schurig
  2014-05-30  9:49     ` Antony Pavlov
  0 siblings, 1 reply; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:08 UTC (permalink / raw)
  To: barebox

barebox:/ devinfo
devices:
`-- global
`-- platform
   `-- mem0
      `-- 0x00000000-0x3fffffff (1 GiB): /dev/ram0
   `-- a01000.interrupt-controller
   `-- soc.0
      `-- 110000.dma-apbh
      `-- a00600.timer
      `-- a02000.l2-cache
...

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 01/10] drvlist: factor the driver list out of 'devinfo'
  2014-05-30  9:07 ` [PATCH 01/10] drvlist: factor the driver list out of 'devinfo' Holger Schurig
@ 2014-05-30  9:09   ` Holger Schurig
  0 siblings, 0 replies; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:09 UTC (permalink / raw)
  To: barebox

barebox:/ drvinfo
Driver  Device(s)
-------------------
imx-gpio
        209c000.gpio
        20a0000.gpio
        20a4000.gpio
        20a8000.gpio
        20ac000.gpio
        20b0000.gpio
        20b4000.gpio
imx6-ccm
        20c4000.ccm
imx-iomuxv3
        20e0000.iomuxc
imx-gpt
        2098000.gpt
...
mem
        mem0
        mem1
barebox-environment

Use 'devinfo DEVICE' for more information
barebox:/

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 04/10] parameters: only show possible enumerations if there are any
  2014-05-30  9:07 ` [PATCH 04/10] parameters: only show possible enumerations if there are any Holger Schurig
@ 2014-05-30  9:09   ` Holger Schurig
  0 siblings, 0 replies; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:09 UTC (permalink / raw)
  To: barebox

Before this patch, "drvinfo fb0" displayed (beside other things):

    Parameters:
      enable: 0
      mode_name: hsd100pxn1 ("hsd100pxn1")

Now it shows:

    Parameters:
      enable: 0
      mode_name: hsd100pxn1

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 09/10] beautify PHY driver names
  2014-05-30  9:07 ` [PATCH 09/10] beautify PHY driver names Holger Schurig
@ 2014-05-30  9:17   ` Alexander Aring
  2014-05-30  9:30     ` Holger Schurig
  2014-06-02  6:59   ` Sascha Hauer
  1 sibling, 1 reply; 30+ messages in thread
From: Alexander Aring @ 2014-05-30  9:17 UTC (permalink / raw)
  To: Holger Schurig; +Cc: barebox

Hi,

On Fri, May 30, 2014 at 11:07:35AM +0200, Holger Schurig wrote:
> Some device names where texts like "Atheros 8035 ethernet" or similar. They
> now got a prefix "phy-" and just their name and look now much more like the
> other driver names.
>

these names are taken from linux kernel code to have a similar name
convention like linux in barebox.

I would leave the names like linux. Maybe you get a name prefix into the
linux kernel, then we should change it in barebox also.

If you want to try that I wish you good luck. :-)

- Alex

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 09/10] beautify PHY driver names
  2014-05-30  9:17   ` Alexander Aring
@ 2014-05-30  9:30     ` Holger Schurig
  2014-05-30 10:03       ` Alexander Aring
  0 siblings, 1 reply; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:30 UTC (permalink / raw)
  To: Alexander Aring; +Cc: barebox

I changed them because (before my patches) the driver list in
"devinfo" looked ugly, with my drvinfo command that one looked ugly.
Those driver names sticked out like a sore thumb.

Now, if I do "diff linux/driver/net/phy/micrel.c
barebox/driver/net/phy/micrel.c", I can see that those files are a bit
similar ... but only a bit. Diff spits out 569 lines of diff output.
And as micrel.c is only 281 lines long, this means that almost no
identical lines are in those two files anyway ...    so, the drivers
are following the Linux model, but they are not Linux drivers anyway.

As this is purely cosmetical, I won't fight over it. Or at least not more :-)

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 06/10] meminfo: purely cosmetical changes
  2014-05-30  9:43   ` Antony Pavlov
@ 2014-05-30  9:37     ` Holger Schurig
  0 siblings, 0 replies; 30+ messages in thread
From: Holger Schurig @ 2014-05-30  9:37 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

Use another directory then :-)

http://www.dict.cc/deutsch-englisch/kosmetisch.html

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 06/10] meminfo: purely cosmetical changes
  2014-05-30  9:07 ` [PATCH 06/10] meminfo: purely cosmetical changes Holger Schurig
@ 2014-05-30  9:43   ` Antony Pavlov
  2014-05-30  9:37     ` Holger Schurig
  0 siblings, 1 reply; 30+ messages in thread
From: Antony Pavlov @ 2014-05-30  9:43 UTC (permalink / raw)
  To: Holger Schurig; +Cc: barebox

On Fri, 30 May 2014 11:07:32 +0200
Holger Schurig <holgerschurig@gmail.com> wrote:

"cosmetic"?

I can't find the word "cosmetical" in my dictionary.

P.S. I by myself often write "unificate" instead of "unify" :)

> Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
> ---
>  common/dlmalloc.c    |    8 ++++----
>  common/tlsf_malloc.c |    2 +-
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/common/dlmalloc.c b/common/dlmalloc.c
> index f006206..d831e90 100644
> --- a/common/dlmalloc.c
> +++ b/common/dlmalloc.c
> @@ -1942,13 +1942,13 @@ static void malloc_update_mallinfo(void)
>  void malloc_stats(void)
>  {
>  	malloc_update_mallinfo();
> -	printf("max system bytes = %10u\n", (unsigned int)(max_total_mem));
> -	printf("system bytes     = %10u\n",
> +	printf("Maximum system memory: %u\n", (unsigned int)(max_total_mem));
> +	printf("Current system memory: %u\n",
>  		(unsigned int)(sbrked_mem + mmapped_mem));
> -	printf("in use bytes     = %10u\n",
> +	printf("in use: %u\n",
>  		(unsigned int)(current_mallinfo.uordblks + mmapped_mem));
>  #if HAVE_MMAP
> -	fprintf(stderr, "max mmap regions = %10u\n",
> +	printf("Maximum mmap'ed mmap regions: %u\n",
>  		 (unsigned int) max_n_mmaps);
>  #endif
>  }
> diff --git a/common/tlsf_malloc.c b/common/tlsf_malloc.c
> index aa8fc13..a3541d8 100644
> --- a/common/tlsf_malloc.c
> +++ b/common/tlsf_malloc.c
> @@ -97,5 +97,5 @@ void malloc_stats(void)
>  
>  	tlsf_walk_heap(tlsf_mem_pool, malloc_walker, &s);
>  
> -	printf("used: %10zu\nfree: %10zu\n", s.used, s.free);
> +	printf("used: %zu\nfree: %zu\n", s.used, s.free);
>  }
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


-- 
-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 02/10] devinfo: reduce indentation
  2014-05-30  9:08   ` Holger Schurig
@ 2014-05-30  9:49     ` Antony Pavlov
  0 siblings, 0 replies; 30+ messages in thread
From: Antony Pavlov @ 2014-05-30  9:49 UTC (permalink / raw)
  To: Holger Schurig; +Cc: barebox

On Fri, 30 May 2014 11:08:01 +0200
Holger Schurig <holgerschurig@gmail.com> wrote:

> barebox:/ devinfo
> devices:
> `-- global
> `-- platform
>    `-- mem0
>       `-- 0x00000000-0x3fffffff (1 GiB): /dev/ram0
>    `-- a01000.interrupt-controller
>    `-- soc.0
>       `-- 110000.dma-apbh
>       `-- a00600.timer
>       `-- a02000.l2-cache
> ...

IMHO this looks much better now!
 
-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 09/10] beautify PHY driver names
  2014-05-30  9:30     ` Holger Schurig
@ 2014-05-30 10:03       ` Alexander Aring
  0 siblings, 0 replies; 30+ messages in thread
From: Alexander Aring @ 2014-05-30 10:03 UTC (permalink / raw)
  To: Holger Schurig; +Cc: barebox

On Fri, May 30, 2014 at 11:30:27AM +0200, Holger Schurig wrote:
> I changed them because (before my patches) the driver list in
> "devinfo" looked ugly, with my drvinfo command that one looked ugly.
> Those driver names sticked out like a sore thumb.
> 
> Now, if I do "diff linux/driver/net/phy/micrel.c
> barebox/driver/net/phy/micrel.c", I can see that those files are a bit
> similar ... but only a bit. Diff spits out 569 lines of diff output.
> And as micrel.c is only 281 lines long, this means that almost no
> identical lines are in those two files anyway ...    so, the drivers
> are following the Linux model, but they are not Linux drivers anyway.
> 
> As this is purely cosmetical, I won't fight over it. Or at least not more :-)

me too, I just want to remember one of the goals of barebox. Maybe
somebody has a freakly crazy script for ethernet driver name parsing and was
happy that the name was equal like the linux one. :-)

- Alex

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 09/10] beautify PHY driver names
  2014-05-30  9:07 ` [PATCH 09/10] beautify PHY driver names Holger Schurig
  2014-05-30  9:17   ` Alexander Aring
@ 2014-06-02  6:59   ` Sascha Hauer
  1 sibling, 0 replies; 30+ messages in thread
From: Sascha Hauer @ 2014-06-02  6:59 UTC (permalink / raw)
  To: Holger Schurig; +Cc: barebox

On Fri, May 30, 2014 at 11:07:35AM +0200, Holger Schurig wrote:
> Some device names where texts like "Atheros 8035 ethernet" or similar. They
> now got a prefix "phy-" and just their name and look now much more like the
> other driver names.

The names are the same as in the Linux Kernel. We could change them, but
probably get the Linux names back for new additions of phys. So let's
just keep the Linux Names.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 10/10] device drivers: harmonize underscore in driver names
  2014-05-30  9:07 ` [PATCH 10/10] device drivers: harmonize underscore in " Holger Schurig
@ 2014-06-02  7:16   ` Sascha Hauer
  0 siblings, 0 replies; 30+ messages in thread
From: Sascha Hauer @ 2014-06-02  7:16 UTC (permalink / raw)
  To: Holger Schurig; +Cc: barebox

On Fri, May 30, 2014 at 11:07:36AM +0200, Holger Schurig wrote:
> Some device names were in the form "imx_spi", others in the form "imx-gpt".
> As most device names used the dash and not the underscore, this device
> driver harmonizes them all.

Generally ok, but you have to fix the users aswell. I think you catched
the statically created devices, but there are many occurrences of this:

	add_generic_device("stmfb", 0, NULL, IMX_FB_BASE, 4096,
                           IORESOURCE_MEM, &fb_mode);

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 00/10] miscelleanous beautification patches
  2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
                   ` (10 preceding siblings ...)
  2014-05-30  9:07 ` [PATCH 10/10] device drivers: harmonize underscore in " Holger Schurig
@ 2014-06-02  7:21 ` Sascha Hauer
  11 siblings, 0 replies; 30+ messages in thread
From: Sascha Hauer @ 2014-06-02  7:21 UTC (permalink / raw)
  To: Holger Schurig; +Cc: barebox

On Fri, May 30, 2014 at 11:07:26AM +0200, Holger Schurig wrote:
> The following patches mostly change the output of various commands.
> 
> Holger Schurig (10):
>   drvlist: factor the driver list out of 'devinfo'
>   devinfo: reduce indentation
>   devinfo: make the output of "devinfo DEVICE" nicer
>   parameters: only show possible enumerations if there are any
>   net: show enetaddr in lowercase
>   meminfo: purely cosmetical changes
>   misc: upper-case some abbreviations
>   bootm: beautify output
>   beautify PHY driver names
>   device drivers: harmonize underscore in driver names

Applied all except 9/10 and 10/10.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 03/10] devinfo: make the output of "devinfo DEVICE" nicer
  2014-05-30  9:07   ` Holger Schurig
@ 2014-06-02  8:19     ` Juergen Borleis
  2014-06-02  9:23       ` Holger Schurig
  0 siblings, 1 reply; 30+ messages in thread
From: Juergen Borleis @ 2014-06-02  8:19 UTC (permalink / raw)
  To: barebox


On Friday 30 May 2014 11:07:17 Holger Schurig wrote:
> Example output before of "devinfo fb0":
>
>     resources:
>     num   : 0
>     start : 0x4c242000
>     size  : 0x00300000
>     driver: none
>     bus: none
>
>     available modes:
>     hsd100pxn1           1024x768@0
>
>     Parameters:
>               enable = 0
>            mode_name = hsd100pxn1 ("hsd100pxn1")
>
>
> Example output after this patch:
>
>     Resources:
>       num: 0
>       start: 0x4c242000
>       size: 0x00300000
>     Available modes:
>       hsd100pxn1: 1024x768@0
>     Parameters:
>       enable: 0
>       mode_name: hsd100pxn1 ("hsd100pxn1")

But parameters can be changed by the user at run-time (e.g. "prompt> 
enable=1"), while the remaining info is just readable. That is why we used 
different characters.

jbe

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 03/10] devinfo: make the output of "devinfo DEVICE" nicer
  2014-06-02  8:19     ` Juergen Borleis
@ 2014-06-02  9:23       ` Holger Schurig
  2014-06-02 10:09         ` Juergen Borleis
  0 siblings, 1 reply; 30+ messages in thread
From: Holger Schurig @ 2014-06-02  9:23 UTC (permalink / raw)
  To: Juergen Borleis; +Cc: barebox

> But parameters can be changed by the user at run-time (e.g. "prompt>
> enable=1"), while the remaining info is just readable. That is why we used
> different characters.

I'm not getting you. Parameters are still changeable after this patch.

Or do you mean " = " vs. ":"?  Did you chose " = " by intent, i.e. so
that you can cut&paste text with the mouse?

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 03/10] devinfo: make the output of "devinfo DEVICE" nicer
  2014-06-02  9:23       ` Holger Schurig
@ 2014-06-02 10:09         ` Juergen Borleis
  2014-06-02 10:28           ` Holger Schurig
  0 siblings, 1 reply; 30+ messages in thread
From: Juergen Borleis @ 2014-06-02 10:09 UTC (permalink / raw)
  To: barebox

Hi Holger,

On Monday 02 June 2014 11:23:28 Holger Schurig wrote:
> > But parameters can be changed by the user at run-time (e.g. "prompt>
> > enable=1"), while the remaining info is just readable. That is why we
> > used different characters.
>
> I'm not getting you. Parameters are still changeable after this patch.
>
> Or do you mean " = " vs. ":"?  Did you chose " = " by intent, i.e. so
> that you can cut&paste text with the mouse?

Yes. IMHO the "=" was intended as a visible feedback about the alterable 
characteristics of these parameters.

Copy&paste isn't possible due to the whitespaces.

jbe

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH 03/10] devinfo: make the output of "devinfo DEVICE" nicer
  2014-06-02 10:09         ` Juergen Borleis
@ 2014-06-02 10:28           ` Holger Schurig
  0 siblings, 0 replies; 30+ messages in thread
From: Holger Schurig @ 2014-06-02 10:28 UTC (permalink / raw)
  To: Juergen Borleis; +Cc: barebox

> Copy&paste isn't possible due to the whitespaces.

Hm, I think that the "Parameters:" headline is transporting the same
information. Also, the the current documantion may be lacking, but at
http://wiki.barebox.org/doku.php you can read:

    There is a parameter model in barebox: each device can specify its
own parameters,
    which do exist for every instance. Parameters can be changed on
the command line
    with \<devid\>.\<param\>="...". For example, if you want to access
the IPv4 address
    for eth0, this is done with 'eth0.ip=192.168.0.7' and 'echo $eth0.ip'.

I could change the head line "Parameters:" to "Variables:" to
emphasize that this thing can be changed (can varying), but "Device
Parameters" is already a know term in the barebox knowledge domain.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2014-06-02 10:29 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-30  9:07 [PATCH 00/10] miscelleanous beautification patches Holger Schurig
2014-05-30  9:05 ` Holger Schurig
2014-05-30  9:07 ` [PATCH 01/10] drvlist: factor the driver list out of 'devinfo' Holger Schurig
2014-05-30  9:09   ` Holger Schurig
2014-05-30  9:07 ` [PATCH 02/10] devinfo: reduce indentation Holger Schurig
2014-05-30  9:08   ` Holger Schurig
2014-05-30  9:49     ` Antony Pavlov
2014-05-30  9:07 ` [PATCH 03/10] devinfo: make the output of "devinfo DEVICE" nicer Holger Schurig
2014-05-30  9:07   ` Holger Schurig
2014-06-02  8:19     ` Juergen Borleis
2014-06-02  9:23       ` Holger Schurig
2014-06-02 10:09         ` Juergen Borleis
2014-06-02 10:28           ` Holger Schurig
2014-05-30  9:07 ` [PATCH 04/10] parameters: only show possible enumerations if there are any Holger Schurig
2014-05-30  9:09   ` Holger Schurig
2014-05-30  9:07 ` [PATCH 05/10] net: show enetaddr in lowercase Holger Schurig
2014-05-30  9:07 ` [PATCH 06/10] meminfo: purely cosmetical changes Holger Schurig
2014-05-30  9:43   ` Antony Pavlov
2014-05-30  9:37     ` Holger Schurig
2014-05-30  9:07 ` [PATCH 07/10] misc: upper-case some abbreviations Holger Schurig
2014-05-30  9:07 ` [PATCH 08/10] bootm: beautify output Holger Schurig
2014-05-30  9:06   ` Holger Schurig
2014-05-30  9:07 ` [PATCH 09/10] beautify PHY driver names Holger Schurig
2014-05-30  9:17   ` Alexander Aring
2014-05-30  9:30     ` Holger Schurig
2014-05-30 10:03       ` Alexander Aring
2014-06-02  6:59   ` Sascha Hauer
2014-05-30  9:07 ` [PATCH 10/10] device drivers: harmonize underscore in " Holger Schurig
2014-06-02  7:16   ` Sascha Hauer
2014-06-02  7:21 ` [PATCH 00/10] miscelleanous beautification patches Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox