[i-g-t,1/2] tools/intel_reg: Set register stride to 1 for VGA registers
diff mbox

Message ID 1441828594-21958-1-git-send-email-ville.syrjala@linux.intel.com
State New
Headers show

Commit Message

Ville Syrjälä Sept. 9, 2015, 7:56 p.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

VGA registers are generally 8 bits long, so set the stride to 1 byte.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 tools/intel_reg_spec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox

diff --git a/tools/intel_reg_spec.c b/tools/intel_reg_spec.c
index 6b7e30c..b49e0dc 100644
--- a/tools/intel_reg_spec.c
+++ b/tools/intel_reg_spec.c
@@ -41,12 +41,12 @@  static const struct port_desc port_descs[] = {
 	{
 		.name = "portio-vga",
 		.port = PORT_PORTIO_VGA,
-		.stride = 4,
+		.stride = 1,
 	},
 	{
 		.name = "mmio-vga",
 		.port = PORT_MMIO_VGA,
-		.stride = 4,
+		.stride = 1,
 	},
 	{
 		.name = "bunit",