Re: [RESUBMIT PATCH v4 7/8] regulator: sky81452: Add compatible string for device binding
From: Gyungoh Yoo <hidden>
Date: 2014-10-17 09:20:05
Also in:
lkml
From: Gyungoh Yoo <hidden>
Date: 2014-10-17 09:20:05
Also in:
lkml
On Tue, Oct 14, 2014 at 09:56:06AM +0200, Mark Brown wrote:
On Tue, Oct 14, 2014 at 10:11:12AM +0900, Gyungoh Yoo wrote:quoted
On Mon, Oct 13, 2014 at 12:35:12PM +0200, Mark Brown wrote:quoted
quoted
If you're doing anything here you should convert the code to use the simplified interface for parsing regulator data based on putting the subnode name and regualtor name in the regulator descriptor.quoted
Thank you for the review.quoted
The driver has of_device_id.quoted
static const struct of_device_id sky81452_reg_of_match[] = { { .compatible = "skyworks,sky81452-regulator", }, { } };quoted
And the MFD adds the driver with of_compatible="skyworks,sky81452-regulator". MFD core maps the device node and the regulator driver does not need to parse the subnode name.No, that's for the device (and as I say I don't think this is a good idea). I'm talking about the parsing of the constraints from the DT.
Wow. I understand. I missed .supply_name. I think I need something like below, before devm_regulator_register(). config->supply_name = init_data->constraints.name; I will resubmit it. Thank you so much.