From ad838ab9f70ff9712c256f072e260e03a8d7a7da Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 22 Oct 2015 17:08:11 +0200 Subject: Fix access to the property-based registers --- pcilib/property.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pcilib/property.c') diff --git a/pcilib/property.c b/pcilib/property.c index a39594c..7239601 100644 --- a/pcilib/property.c +++ b/pcilib/property.c @@ -34,9 +34,9 @@ int pcilib_add_registers_from_properties(pcilib_t *ctx, size_t n, pcilib_view_co return err; } } - - access = ctx->banks[bank].access; - + + access = ctx->banks[bank].access / 8; + for (i = 0; i < n; i++) { if ((v[i]->flags&PCILIB_VIEW_FLAG_REGISTER) == 0) continue; -- cgit v1.2.3