All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] dm: Add a No-op uclass
@ 2019-03-22 16:44 Jean-Jacques Hiblot
  2019-03-22 17:39 ` Sergey Kubushyn
  2019-03-30 21:18 ` Simon Glass
  0 siblings, 2 replies; 6+ messages in thread
From: Jean-Jacques Hiblot @ 2019-03-22 16:44 UTC (permalink / raw)
  To: u-boot

This uclass is intended for devices that do not need any features from the
uclass, including binding children.
This will typically be used by devices that are used to bind child devices
but do not use dm_scan_fdt_dev() to do it.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
---
 drivers/core/uclass.c  | 5 +++++
 include/dm/uclass-id.h | 1 +
 2 files changed, 6 insertions(+)

diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c
index fc3157de39..dc9eb62893 100644
--- a/drivers/core/uclass.c
+++ b/drivers/core/uclass.c
@@ -757,3 +757,8 @@ int uclass_pre_remove_device(struct udevice *dev)
 	return 0;
 }
 #endif
+
+UCLASS_DRIVER(nop) = {
+	.id		= UCLASS_NOP,
+	.name		= "nop",
+};
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index 86e59781b0..3797cd48f6 100644
--- a/include/dm/uclass-id.h
+++ b/include/dm/uclass-id.h
@@ -61,6 +61,7 @@ enum uclass_id {
 	UCLASS_MMC,		/* SD / MMC card or chip */
 	UCLASS_MOD_EXP,		/* RSA Mod Exp device */
 	UCLASS_MTD,		/* Memory Technology Device (MTD) device */
+	UCLASS_NOP,		/* No-op devices */
 	UCLASS_NORTHBRIDGE,	/* Intel Northbridge / SDRAM controller */
 	UCLASS_NVME,		/* NVM Express device */
 	UCLASS_PANEL,		/* Display panel, such as an LCD */
-- 
2.17.1

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

end of thread, other threads:[~2019-04-01 16:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-22 16:44 [U-Boot] [PATCH] dm: Add a No-op uclass Jean-Jacques Hiblot
2019-03-22 17:39 ` Sergey Kubushyn
2019-03-25 11:24   ` Jean-Jacques Hiblot
2019-03-30 21:18 ` Simon Glass
2019-04-01 11:32   ` Jean-Jacques Hiblot
2019-04-01 16:18     ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.