Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d0526ea authored by Mark Brown's avatar Mark Brown
Browse files

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.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 2935fb18
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -233,7 +233,7 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev)
	} else
	} else
		ldo->is_enabled = true;
		ldo->is_enabled = true;


	config.dev = &pdev->dev;
	config.dev = wm8994->dev;
	config.init_data = pdata->ldo[id].init_data;
	config.init_data = pdata->ldo[id].init_data;
	config.driver_data = ldo;
	config.driver_data = ldo;