summaryrefslogtreecommitdiff
path: root/lib/lzo
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2019-10-23 13:02:24 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-11-05 23:18:10 +0100
commit1f74d70ff21249670eb68c1344e0687aa909861d (patch)
treec2dd779cadf563c5e90d1b6102ec51fc6c651cd7 /lib/lzo
parent75dd63c968d8e91707d74845ccb96bda3664cdaa (diff)
software node: get rid of property_set_pointer()
Instead of explicitly setting values of integer types when copying property entries lets just copy entire value union when processing non-array values. For value arrays we no longer use union of pointers, but rather a single void pointer, which allows us to remove property_set_pointer(). In property_get_pointer() we do not need to handle each data type separately, we can simply return either the pointer or pointer to values union. We are not losing anything from removing typed pointer union because the upper layers do their accesses through void pointers anyway, and we trust the "type" of the property when interpret the data. We rely on users of property entries on using PROPERTY_ENTRY_XXX() macros to properly initialize entries instead of poking in the instances directly. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'lib/lzo')
0 files changed, 0 insertions, 0 deletions