]> git.baikalelectronics.ru Git - kernel.git/commit
of: make kobject and bin_attribute support configurable
authorRob Herring <robh@kernel.org>
Wed, 4 Oct 2017 19:09:40 +0000 (14:09 -0500)
committerRob Herring <robh@kernel.org>
Mon, 16 Oct 2017 18:37:38 +0000 (13:37 -0500)
commit54734a45a0a095ffb9d2654d77b8834e870afe2a
tree6c97fc5ee0bb26a4f3c762218a6b351ad3955c8a
parentb9b62947dda2288f0c83ba2a320da9a38ca15628
of: make kobject and bin_attribute support configurable

Having device_nodes be kobjects is only needed if sysfs or OF_DYNAMIC is
enabled. Otherwise, having a kobject in struct device_node is
unnecessary bloat in minimal kernel configurations.

Likewise, bin_attribute is only needed in struct property when sysfs is
enabled, so we can make it configurable too.

Tested-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/Kconfig
drivers/of/Makefile
drivers/of/base.c
drivers/of/dynamic.c
drivers/of/kobj.c [new file with mode: 0644]
drivers/of/of_private.h
include/linux/of.h