Make this a proper typed array. Drop the old allocate context code since
that is no longer used.
Note that the memops functions now get a struct device pointer instead of
the struct device ** that was there initially (actually a void pointer to
a struct containing only a struct device pointer).
This code is now a lot cleaner.
Signed-off-by: Hans Verkuil <email@example.com>
Reviewed-by: Laurent Pinchart <firstname.lastname@example.org>
Cc: Sakari Ailus <email@example.com>
Signed-off-by: Mauro Carvalho Chehab <firstname.lastname@example.org>