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)
commit0413bedabc886c3a56804d1c80a58e99077b1d91
tree2c421170687e8f71f93d578a6c65edf0ea80ff13
parentf42b0e18f2e5cf34f73ef1b6327b49040b307a33
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