mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mfd: Use mfd cell platform_data for rdc321x cells platform bits
With the addition of a platform device mfd_cell pointer, MFD drivers can go back to passing platform data back to their sub drivers. This allows for an mfd_cell->mfd_data removal and thus keep the sub drivers MFD agnostic. This is mostly needed for non MFD aware sub drivers. Cc: Grant Likely <[email protected]> Cc: Wim Van Sebroeck <[email protected]> Cc: Florian Fainelli <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
3271d382c3
commit
9abd768a8d
3 changed files with 6 additions and 6 deletions
|
|
@ -61,12 +61,14 @@ static struct mfd_cell rdc321x_sb_cells[] = {
|
|||
.name = "rdc321x-wdt",
|
||||
.resources = rdc321x_wdt_resource,
|
||||
.num_resources = ARRAY_SIZE(rdc321x_wdt_resource),
|
||||
.mfd_data = &rdc321x_wdt_pdata,
|
||||
.platform_data = &rdc321x_wdt_pdata,
|
||||
.pdata_size = sizeof(rdc321x_wdt_pdata),
|
||||
}, {
|
||||
.name = "rdc321x-gpio",
|
||||
.resources = rdc321x_gpio_resources,
|
||||
.num_resources = ARRAY_SIZE(rdc321x_gpio_resources),
|
||||
.mfd_data = &rdc321x_gpio_pdata,
|
||||
.platform_data = &rdc321x_gpio_pdata,
|
||||
.pdata_size = sizeof(rdc321x_gpio_pdata),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue