Skip to contentSkip to conversation

regulator: wm8994: Use main I2C device as struct device

PATCH New Mark Brown 1 participant 1 message May 8, 2012

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 regulator: wm8994: Use main I2C device as struct device

This makes logging a bit clearer as it gives the actual bus location and makes things like board hookup a bit smoother.

---
 drivers/regulator/wm8994-regulator.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/wm8994-regulator.c +1 -1
index 739207b..7c64ce5 100644
@@ -191,7 +191,7 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev)
 	} else
 		ldo->is_enabled = true;
 
-	config.dev = &pdev->dev;
+	config.dev = wm8994->dev;
 	config.init_data = pdata->ldo[id].init_data;
 	config.driver_data = ldo;
 	config.regmap = wm8994->regmap;
Signature · 1 line
1.7.10