diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-19 07:34:10 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-20 10:39:45 +0100 |
commit | 775e49c9388836e9bd93816854f57f68b9088d20 (patch) | |
tree | b499bf3d1432c3f07e4bc4c6ace118859f232379 /lib/igt_params.c | |
parent | 299081df606d21a25978df401a1a57661b0836f8 (diff) |
Always pass device to igt_params_set
Don't second guess, require the user to provide the device that wish to
set the module parameter for.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Diffstat (limited to 'lib/igt_params.c')
-rw-r--r-- | lib/igt_params.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/igt_params.c b/lib/igt_params.c index d8649dfd..3decc5b2 100644 --- a/lib/igt_params.c +++ b/lib/igt_params.c @@ -343,9 +343,9 @@ bool igt_params_save_and_set(int device, const char *parameter, const char *fmt, * Please consider using igt_set_module_param_int() for the integer and bool * parameters. */ -void igt_set_module_param(const char *name, const char *val) +void igt_set_module_param(int device, const char *name, const char *val) { - igt_assert(igt_params_save_and_set(-1, name, "%s", val)); + igt_assert(igt_params_save_and_set(device, name, "%s", val)); } /** @@ -356,7 +356,7 @@ void igt_set_module_param(const char *name, const char *val) * This is a wrapper for igt_set_module_param() that takes an integer instead of * a string. Please see igt_set_module_param(). */ -void igt_set_module_param_int(const char *name, int val) +void igt_set_module_param_int(int device, const char *name, int val) { - igt_assert(igt_params_save_and_set(-1, name, "%d", val)); + igt_assert(igt_params_save_and_set(device, name, "%d", val)); } |