Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+7 -14
+7 -14
drivers/mfd/db8500-prcmu.c
··· 3024 3024 }; 3025 3025 3026 3026 static const struct mfd_cell db8500_prcmu_devs[] = { 3027 - { 3028 - .name = "db8500-prcmu-regulators", 3029 - .of_compatible = "stericsson,db8500-prcmu-regulator", 3030 - .platform_data = &db8500_regulators, 3031 - .pdata_size = sizeof(db8500_regulators), 3032 - }, 3033 - { 3034 - .name = "cpuidle-dbx500", 3035 - .of_compatible = "stericsson,cpuidle-dbx500", 3036 - }, 3037 - { 3038 - .name = "db8500-thermal", 3039 - .of_compatible = "stericsson,db8500-thermal", 3040 - }, 3027 + OF_MFD_CELL("db8500-prcmu-regulators", NULL, 3028 + &db8500_regulators, sizeof(db8500_regulators), 0, 3029 + "stericsson,db8500-prcmu-regulator"), 3030 + OF_MFD_CELL("cpuidle-dbx500", 3031 + NULL, NULL, 0, 0, "stericsson,cpuidle-dbx500"), 3032 + OF_MFD_CELL("db8500-thermal", 3033 + NULL, NULL, 0, 0, "stericsson,db8500-thermal"), 3041 3034 }; 3042 3035 3043 3036 static int db8500_prcmu_register_ab8500(struct device *parent)