]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: core: Add a way to set a device name
authorSimon Glass <sjg@chromium.org>
Thu, 30 Jul 2015 19:40:39 +0000 (13:40 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:18 +0000 (08:17 +0200)
commit82c361d0f10fb3fce21d55ca9f9278c573981ab0
tree33215d1681f05b287f05a980f248cf779f85c266
parent1e0f9684bebd60a94d7725804e67fac50baefdd7
dm: core: Add a way to set a device name

Some devices are bound entirely by probing and do not have the benefit of
a device tree to give them a name. This is very common with PCI and USB. In
most cases this is fine, but we should add an official way to set a device
name. This should be called in the device's bind() method.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/device.c
include/dm/device.h