summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/i2c/generic/generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/i2c/generic/generic.c b/src/drivers/i2c/generic/generic.c
index 30a280bcff..c11a889d5b 100644
--- a/src/drivers/i2c/generic/generic.c
+++ b/src/drivers/i2c/generic/generic.c
@@ -86,7 +86,7 @@ static const char *i2c_generic_acpi_name(struct device *dev)
static char name[5];
if (config->name)
- return name;
+ return config->name;
snprintf(name, sizeof(name), "D%03.3X", dev->path.i2c.device);
name[4] = '\0';