diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-11-08 07:22:22 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-12-03 13:46:20 +0300 |
commit | e64b674bc9d76edb4cf1b8c98446b1d29a16b9df (patch) | |
tree | 224cbf63c801ee5c3f1e5717260ebd8ca6d04ba1 /drivers/platform | |
parent | 996b0830f95d132e50891a5568fef9e2965e4af2 (diff) | |
download | linux-e64b674bc9d76edb4cf1b8c98446b1d29a16b9df.tar.xz |
software node: implement reference properties
It is possible to store references to software nodes in the same fashion as
other static properties, so that users do not need to define separate
structures:
static const struct software_node gpio_bank_b_node = {
.name = "B",
};
static const struct property_entry simone_key_enter_props[] = {
PROPERTY_ENTRY_U32("linux,code", KEY_ENTER),
PROPERTY_ENTRY_STRING("label", "enter"),
PROPERTY_ENTRY_REF("gpios", &gpio_bank_b_node, 123, GPIO_ACTIVE_LOW),
{ }
};
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions