aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/i2c/max98927/max98927.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/i2c/max98927/max98927.c')
-rw-r--r--src/drivers/i2c/max98927/max98927.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/i2c/max98927/max98927.c b/src/drivers/i2c/max98927/max98927.c
index 50b3e0c034..12599fed7c 100644
--- a/src/drivers/i2c/max98927/max98927.c
+++ b/src/drivers/i2c/max98927/max98927.c
@@ -93,7 +93,13 @@ static struct device_operations max98927_ops = {
static void max98927_enable(struct device *dev)
{
+ struct drivers_i2c_max98927_config *config = dev->chip_info;
+
dev->ops = &max98927_ops;
+
+ if (config && config->desc) {
+ dev->name = config->desc;
+ }
}
struct chip_operations drivers_i2c_max98927_ops = {