Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c8650716 authored by Rob Herring's avatar Rob Herring Committed by Patrick Daly
Browse files

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.

Change-Id: I94f7f67c24980a424bb7dc725174fed9ac55ea4f
Tested-by: default avatarNicolas Pitre <nico@linaro.org>
Reviewed-by: default avatarFrank Rowand <frowand.list@gmail.com>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Git-Commit: b56b5528f5b3c3d47e7c0ca67318c45e980d93f0
Git-Repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


[pdaly: removed %pOF printf format as it is not backported
added NULL check in safe_name()]
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent e37510f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment