summaryrefslogtreecommitdiffstats
path: root/views/transform.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-10-13 01:59:17 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-10-13 01:59:17 +0200
commit2e9457b666a303fab83aa17e33624f39de9a1dd7 (patch)
tree7e1b46b4ca64a8eccb7122df33a32c48239d4c62 /views/transform.c
parent1200eca62c4c47617fa60033f9a0ee25bd26c431 (diff)
downloadpcitool-2e9457b666a303fab83aa17e33624f39de9a1dd7.tar.gz
pcitool-2e9457b666a303fab83aa17e33624f39de9a1dd7.tar.bz2
pcitool-2e9457b666a303fab83aa17e33624f39de9a1dd7.tar.xz
pcitool-2e9457b666a303fab83aa17e33624f39de9a1dd7.zip
Support writting register views
Diffstat (limited to 'views/transform.c')
-rw-r--r--views/transform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/transform.c b/views/transform.c
index 7bc5420..de7ee0e 100644
--- a/views/transform.c
+++ b/views/transform.c
@@ -36,7 +36,7 @@ static int pcilib_transform_view_write(pcilib_t *ctx, pcilib_view_context_t *vie
err = pcilib_py_eval_string(ctx, v->write_to_reg, &val_copy);
if (err) return err;
- *regval = pcilib_get_value_as_register_value(ctx, val, &err);
+ *regval = pcilib_get_value_as_register_value(ctx, &val_copy, &err);
return err;
}