]> git.baikalelectronics.ru Git - kernel.git/commit
of: Add device_type access helper functions
authorRob Herring <robh@kernel.org>
Tue, 28 Aug 2018 20:10:48 +0000 (15:10 -0500)
committerRob Herring <robh@kernel.org>
Fri, 31 Aug 2018 12:30:42 +0000 (08:30 -0400)
commitda99777d194830e8b026a4b965578298ac4cd613
tree2c421170687e8f71f93d578a6c65edf0ea80ff13
parent54a36a4b1c31ae8ea2b84ea53d77d4b224fd371f
of: Add device_type access helper functions

In preparation to remove direct access to device_node.type, add
of_node_is_type() and of_node_get_device_type() helpers to check and
retrieve the device type.

Cc: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
include/linux/of.h