mfd: add platform_data to mfd_cell
Adding platform_data to mfd_cell allows passing of platform data directly to the platform_device created for each cell and thus reuse of existing drivers. On the other side it can be used as a hook to mfd_cell itself removing the need in mfd_get_cell method. Signed-off-by: Mike Rapoport <mike@compulab.co.il> Acked-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
This commit is contained in:
committed by
Samuel Ortiz
parent
7f71ac9374
commit
56edb58be1
@@ -32,7 +32,7 @@ static int mfd_add_device(struct platform_device *parent,
|
||||
pdev->dev.parent = &parent->dev;
|
||||
|
||||
ret = platform_device_add_data(pdev,
|
||||
cell, sizeof(struct mfd_cell));
|
||||
cell->platform_data, cell->data_size);
|
||||
if (ret)
|
||||
goto fail_device;
|
||||
|
||||
|
Reference in New Issue
Block a user