projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
929a4d2
)
mfd: intel_soc_pmic_bxtwc: Convert to use platform_get/set_drvdata()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Tue, 28 Jun 2022 22:17:39 +0000
(
01:17
+0300)
committer
Lee Jones
<lee@kernel.org>
Tue, 19 Jul 2022 09:54:41 +0000
(10:54 +0100)
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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link:
https://lore.kernel.org/r/20220628221747.33956-3-andriy.shevchenko@linux.intel.com
drivers/mfd/intel_soc_pmic_bxtwc.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/intel_soc_pmic_bxtwc.c
b/drivers/mfd/intel_soc_pmic_bxtwc.c
index
d43cd18
..
540bb31
100644
(file)
--- a/
drivers/mfd/intel_soc_pmic_bxtwc.c
+++ b/
drivers/mfd/intel_soc_pmic_bxtwc.c
@@
-457,7
+457,7
@@
static int bxtwc_probe(struct platform_device *pdev)
return ret;
pmic->irq = ret;
-
dev_set_drvdata(&pdev->
dev, pmic);
+
platform_set_drvdata(p
dev, pmic);
pmic->dev = &pdev->dev;
pmic->scu = devm_intel_scu_ipc_dev_get(&pdev->dev);
@@
-574,7
+574,7
@@
static int bxtwc_probe(struct platform_device *pdev)
static void bxtwc_shutdown(struct platform_device *pdev)
{
- struct intel_soc_pmic *pmic =
dev_get_drvdata(&pdev->
dev);
+ struct intel_soc_pmic *pmic =
platform_get_drvdata(p
dev);
disable_irq(pmic->irq);
}