summaryrefslogtreecommitdiff
path: root/src/lib/reg_script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/reg_script.c')
-rw-r--r--src/lib/reg_script.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/reg_script.c b/src/lib/reg_script.c
index d7c4577e0c..065552043b 100644
--- a/src/lib/reg_script.c
+++ b/src/lib/reg_script.c
@@ -468,11 +468,16 @@ static void reg_script_run_next(struct reg_script_context *prev_ctx,
reg_script_run_with_context(&ctx);
}
-void reg_script_run(const struct reg_script *step)
+void reg_script_run_on_dev(device_t dev, const struct reg_script *step)
{
struct reg_script_context ctx;
- reg_script_set_dev(&ctx, EMPTY_DEV);
+ reg_script_set_dev(&ctx, dev);
reg_script_set_step(&ctx, step);
reg_script_run_with_context(&ctx);
}
+
+void reg_script_run(const struct reg_script *step)
+{
+ reg_script_run_on_dev(EMPTY_DEV, step);
+}