summaryrefslogtreecommitdiff
path: root/drivers/adc/sandbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/adc/sandbox.c')
-rw-r--r--drivers/adc/sandbox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/adc/sandbox.c b/drivers/adc/sandbox.c
index 1f32289f60..6e435462ab 100644
--- a/drivers/adc/sandbox.c
+++ b/drivers/adc/sandbox.c
@@ -135,9 +135,9 @@ int sandbox_adc_probe(struct udevice *dev)
return 0;
}
-int sandbox_adc_ofdata_to_platdata(struct udevice *dev)
+int sandbox_adc_of_to_plat(struct udevice *dev)
{
- struct adc_uclass_platdata *uc_pdata = dev_get_uclass_platdata(dev);
+ struct adc_uclass_plat *uc_pdata = dev_get_uclass_plat(dev);
uc_pdata->data_mask = SANDBOX_ADC_DATA_MASK;
uc_pdata->data_format = ADC_DATA_FORMAT_BIN;
@@ -168,6 +168,6 @@ U_BOOT_DRIVER(sandbox_adc) = {
.of_match = sandbox_adc_ids,
.ops = &sandbox_adc_ops,
.probe = sandbox_adc_probe,
- .ofdata_to_platdata = sandbox_adc_ofdata_to_platdata,
- .priv_auto_alloc_size = sizeof(struct sandbox_adc_priv),
+ .of_to_plat = sandbox_adc_of_to_plat,
+ .priv_auto = sizeof(struct sandbox_adc_priv),
};