diff options
author | Maarten Lankhorst <[email protected]> | 2016-09-08 12:30:01 +0200 |
---|---|---|
committer | Sean Paul <[email protected]> | 2016-09-12 10:32:49 -0400 |
commit | f92f053bb60924297afb8a1bd9166712c0fe5e88 (patch) | |
tree | 36757ced97dcccda57022260ccc53c96e9945f8a /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | d25a4cbba4b9da7c2d674b2f8ecf84af1b24988e (diff) |
drm: Move property validation to a helper, v2.
Property lifetimes are equal to the device lifetime, so the separate
drm_property_find is not needed. The pointer can be retrieved from
the properties member, which saves us some locking and a extra lookup.
The lifetime for properties is until the device is destroyed, which
happens late in the device unload path.
kms_atomic is also testing for invalid properties which returns -ENOENT,
to be consistent return -ENOENT for valid properties that don't appear
on the object property list.
Changes since v1:
- Return -ENOENT for invalid properties to make kms_atomic pass.
- Change commit message slightly to take this into account.
Testcase: kms_atomic
Testcase: kms_properties
Fixes: 4e9951d96093 ("drm/atomic: Reject properties not part of the object.")
Suggested-by: Ville Syrjälä <[email protected]>
Signed-off-by: Maarten Lankhorst <[email protected]>
Signed-off-by: Sean Paul <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions