dma: mv_xor: allow channels to be registered directly from the main device
Extend the XOR engine driver (currently called "mv_xor_shared") so that XOR channels can be passed in the platform_data structure, and be registered from there. This will allow the users of the driver to be converted to the single platform_driver variant of the mv_xor driver. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
a6b4a9d2c1
commit
60d151f387
3 changed files with 53 additions and 3 deletions
|
@ -20,5 +20,8 @@ struct mv_xor_platform_data {
|
|||
size_t pool_size;
|
||||
};
|
||||
|
||||
struct mv_xor_shared_platform_data {
|
||||
struct mv_xor_platform_data *channels;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue