mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
mfd: db8500-prcmu: Example using new OF_MFD_CELL/MFD_CELL_BASIC MACROs
... with and without 'resources'. Signed-off-by: Lee Jones <lee.jones@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
f4d41ad844
commit
a04b4be677
1 changed files with 7 additions and 14 deletions
|
@ -3024,20 +3024,13 @@ static const struct mfd_cell common_prcmu_devs[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct mfd_cell db8500_prcmu_devs[] = {
|
static const struct mfd_cell db8500_prcmu_devs[] = {
|
||||||
{
|
OF_MFD_CELL("db8500-prcmu-regulators", NULL,
|
||||||
.name = "db8500-prcmu-regulators",
|
&db8500_regulators, sizeof(db8500_regulators), 0,
|
||||||
.of_compatible = "stericsson,db8500-prcmu-regulator",
|
"stericsson,db8500-prcmu-regulator"),
|
||||||
.platform_data = &db8500_regulators,
|
OF_MFD_CELL("cpuidle-dbx500",
|
||||||
.pdata_size = sizeof(db8500_regulators),
|
NULL, NULL, 0, 0, "stericsson,cpuidle-dbx500"),
|
||||||
},
|
OF_MFD_CELL("db8500-thermal",
|
||||||
{
|
NULL, NULL, 0, 0, "stericsson,db8500-thermal"),
|
||||||
.name = "cpuidle-dbx500",
|
|
||||||
.of_compatible = "stericsson,cpuidle-dbx500",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.name = "db8500-thermal",
|
|
||||||
.of_compatible = "stericsson,db8500-thermal",
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int db8500_prcmu_register_ab8500(struct device *parent)
|
static int db8500_prcmu_register_ab8500(struct device *parent)
|
||||||
|
|
Loading…
Add table
Reference in a new issue