From c8628b2a715a7cfaaccbd7e403cd1c6c76b918cd Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 18 Oct 2015 03:47:47 +0200 Subject: Support properties of arbitrary type --- views/enum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/enum.c') diff --git a/views/enum.c b/views/enum.c index d712c71..e049c43 100644 --- a/views/enum.c +++ b/views/enum.c @@ -34,7 +34,7 @@ static int pcilib_enum_view_read(pcilib_t *ctx, pcilib_view_context_t *view_ctx, return pcilib_set_value_from_static_string(ctx, val, v->names[i].name); } - return pcilib_set_value_from_int(ctx, val, regval); + return pcilib_set_value_from_register_value(ctx, val, regval); } static int pcilib_enum_view_write(pcilib_t *ctx, pcilib_view_context_t *view_ctx, pcilib_register_value_t *regval, const pcilib_value_t *val) { -- cgit v1.2.3