diff options
author | Jani Nikula <jani.nikula@intel.com> | 2018-12-27 16:33:38 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2018-12-31 15:27:00 +0200 |
commit | 16cabb12f2cc40304dfce8c8eba169f044b64f02 (patch) | |
tree | 271d06cc89ec46f5d0a1f2d5d24eee712dad1c7d /drivers/gpu/drm/i915/i915_params.h | |
parent | 4081cef923e0ac0bb4dbc24da838c91f2ea8d737 (diff) | |
download | lwn-16cabb12f2cc40304dfce8c8eba169f044b64f02.tar.gz lwn-16cabb12f2cc40304dfce8c8eba169f044b64f02.zip |
drm/i915: add a helper to free the members of i915_params
Abstract the one user in anticipation of more. Set the dangling pointers
to NULL while at it.
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/8637d1e5049dc003718772f19d664aeaf9540856.1545920737.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_params.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_params.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h index fd1cf9415e60..93f665eced16 100644 --- a/drivers/gpu/drm/i915/i915_params.h +++ b/drivers/gpu/drm/i915/i915_params.h @@ -79,6 +79,7 @@ extern struct i915_params i915_modparams __read_mostly; void i915_params_dump(const struct i915_params *params, struct drm_printer *p); void i915_params_copy(struct i915_params *dest, const struct i915_params *src); +void i915_params_free(struct i915_params *params); #endif |