Skip to content

Commit 2790a70

Browse files
andy-shevlag-linaro
authored andcommitted
mfd: intel_soc_pmic_bxtwc: Convert to use platform_get/set_drvdata()
We have the specific helpers for platform device to set and get its driver data. Convert driver to use them instead of open coded variants. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 929a4d2 commit 2790a70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mfd/intel_soc_pmic_bxtwc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ static int bxtwc_probe(struct platform_device *pdev)
457457
return ret;
458458
pmic->irq = ret;
459459

460-
dev_set_drvdata(&pdev->dev, pmic);
460+
platform_set_drvdata(pdev, pmic);
461461
pmic->dev = &pdev->dev;
462462

463463
pmic->scu = devm_intel_scu_ipc_dev_get(&pdev->dev);
@@ -574,7 +574,7 @@ static int bxtwc_probe(struct platform_device *pdev)
574574

575575
static void bxtwc_shutdown(struct platform_device *pdev)
576576
{
577-
struct intel_soc_pmic *pmic = dev_get_drvdata(&pdev->dev);
577+
struct intel_soc_pmic *pmic = platform_get_drvdata(pdev);
578578

579579
disable_irq(pmic->irq);
580580
}

0 commit comments

Comments
 (0)