summaryrefslogtreecommitdiff
path: root/src/drivers/gfx/generic
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/gfx/generic')
-rw-r--r--src/drivers/gfx/generic/generic.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/drivers/gfx/generic/generic.c b/src/drivers/gfx/generic/generic.c
index f07a4710ff..f3c12d14a2 100644
--- a/src/drivers/gfx/generic/generic.c
+++ b/src/drivers/gfx/generic/generic.c
@@ -119,10 +119,8 @@ static void gfx_fill_ssdt_generator(const struct device *dev)
if (!config->device[i].addr && config->device[i].type)
/* Though not strictly necessary, set the display index and
port attachment to the device index, to ensure uniqueness */
- config->device[i].addr = DOD_DID_STD | DOD_FW_DETECT |
- (config->device[i].type << 8) |
- (i << 4) | (i);
- acpigen_write_dword(config->device[i].addr);
+ config->device[i].addr = (config->device[i].type << 8) | (i << 4) | (i);
+ acpigen_write_dword(DOD_DID_STD | DOD_FW_DETECT | config->device[i].addr);
}
acpigen_pop_len(); /* End Package. */
acpigen_pop_len(); /* End Method. */