]> git.sur5r.net Git - u-boot/commit
drivers: core: device: add support to check dt compatible for a device/machine
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 28 Apr 2016 10:06:02 +0000 (15:36 +0530)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 24 May 2016 16:42:02 +0000 (11:42 -0500)
commit73443b9e4c451b17d1e08164ea933ee6a849b2b3
tree0fc80ed0bc6b1ef1d928aa61f55650a0658e9d82
parent24ae3961f811ee79e6c98474e21e07f8ce222dfc
drivers: core: device: add support to check dt compatible for a device/machine

Provide an api to check whether the given device or machine is
compatible with the given compat string which helps in making
decisions in drivers based on device or machine compatible.

Idea taken from Linux.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/core/device.c
include/dm/device.h