diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-02-02 17:41:27 -0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-02-07 13:21:15 +0100 |
commit | 2d479e1fa2d09c5a9518a75a5d21ef2713117946 (patch) | |
tree | c79b81ce9b03bace7a86192d39ab7e7233cda5bf /include/linux/property.h | |
parent | 9426998ce6f8616c48c2834cafbe5616da3f5abd (diff) | |
download | linux-stable-2d479e1fa2d09c5a9518a75a5d21ef2713117946.tar.gz linux-stable-2d479e1fa2d09c5a9518a75a5d21ef2713117946.tar.bz2 linux-stable-2d479e1fa2d09c5a9518a75a5d21ef2713117946.zip |
device property: export code duplicating array of property entries
When augmenting ACPI-enumerated devices with additional property data based
on DMI info, a module has often several potential property sets, with only
one being active on a given box. In order to save memory it should be
possible to mark everything and __initdata or __initconst, execute DMI
match early, and duplicate relevant properties. Then kernel will discard
the rest of them.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/property.h')
-rw-r--r-- | include/linux/property.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/property.h b/include/linux/property.h index 7a0a1cce5165..64e3a9c6d95f 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -241,6 +241,11 @@ struct property_entry { .name = _name_, \ } +struct property_entry * +property_entries_dup(const struct property_entry *properties); + +void property_entries_free(const struct property_entry *properties); + int device_add_properties(struct device *dev, const struct property_entry *properties); void device_remove_properties(struct device *dev); |