aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/i2c/max98373/max98373.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/i2c/max98373/max98373.c')
-rw-r--r--src/drivers/i2c/max98373/max98373.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/i2c/max98373/max98373.c b/src/drivers/i2c/max98373/max98373.c
index 19dd7879e9..558be8a2ca 100644
--- a/src/drivers/i2c/max98373/max98373.c
+++ b/src/drivers/i2c/max98373/max98373.c
@@ -97,7 +97,13 @@ static struct device_operations max98373_ops = {
static void max98373_enable(struct device *dev)
{
+ struct drivers_i2c_max98373_config *config = dev->chip_info;
+
dev->ops = &max98373_ops;
+
+ if (config && config->desc) {
+ dev->name = config->desc;
+ }
}
struct chip_operations drivers_i2c_max98373_ops = {