media: platform: drop vb2_ops_wait_prepare/finishSince commit 88785982a19d ("media: vb2: use lock if wait_prepare/finishare NULL") it is no longer needed to set the wait_prepare/finishvb2_ops cal
media: platform: drop vb2_ops_wait_prepare/finishSince commit 88785982a19d ("media: vb2: use lock if wait_prepare/finishare NULL") it is no longer needed to set the wait_prepare/finishvb2_ops callbacks as long as the lock field in vb2_queue is set.Since the vb2_ops_wait_prepare/finish callbacks already rely on that field,we can safely drop these callbacks.This simplifies the code and this is a step towards the goal of deletingthese callbacks.Signed-off-by: Hans Verkuil <[email protected]>Reviewed-by: Neil Armstrong <[email protected]> # for meson-ge2dAcked-by: Andrzej Pietrasiewicz <[email protected]>
show more ...
media: Switch back to struct platform_driver::remove()After commit 0edb555a65d1 ("platform: Make platform_driver::remove()return void") .remove() is (again) the right callback to implement forpla
media: Switch back to struct platform_driver::remove()After commit 0edb555a65d1 ("platform: Make platform_driver::remove()return void") .remove() is (again) the right callback to implement forplatform drivers.Convert all platform drivers below drivers/media to use .remove(), withthe eventual goal to drop struct platform_driver::remove_new(). As.remove() and .remove_new() have the same prototypes, conversion is doneby just changing the structure member name in the driver initializer.Signed-off-by: Uwe Kleine-König <[email protected]>Signed-off-by: Hans Verkuil <[email protected]>
media: ti: add missing MODULE_DESCRIPTION() macrosmake allmodconfig && make W=1 C=1 reports:WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/media/platform/ti/vpe/ti-vpdma.oAdd the miss
media: ti: add missing MODULE_DESCRIPTION() macrosmake allmodconfig && make W=1 C=1 reports:WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/media/platform/ti/vpe/ti-vpdma.oAdd the missing invocations of the MODULE_DESCRIPTION() macro.Signed-off-by: Jeff Johnson <[email protected]>Signed-off-by: Hans Verkuil <[email protected]>
media: vpe: Convert to platform remove callback returning voidThe .remove() callback for a platform driver returns an int which makesmany driver authors wrongly assume it's possible to do error ha
media: vpe: Convert to platform remove callback returning voidThe .remove() callback for a platform driver returns an int which makesmany driver authors wrongly assume it's possible to do error handling byreturning an error code. However the value returned is (mostly) ignoredand this typically results in resource leaks. To improve here there is aquest to make the remove callback return void. In the first step of thisquest all drivers are converted to .remove_new() which already returnsvoid.Trivially convert this driver from always returning zero in the removecallback to the void returning variant.Signed-off-by: Uwe Kleine-König <[email protected]>Signed-off-by: Hans Verkuil <[email protected]>
media: platform: re-structure TI driversThe ti-vpe/ sub-directory does not only contain the VPE-specific things.It also contains the CAL driver, which is a completely differentsubsystem. This is
media: platform: re-structure TI driversThe ti-vpe/ sub-directory does not only contain the VPE-specific things.It also contains the CAL driver, which is a completely differentsubsystem. This is also not a good place to add new drivers for other TIplatforms since they will all get mixed up.Separate the VPE and CAL parts into different sub-directories and renamethe ti-vpe/ sub-directory to ti/. This is now the place where new TIplatform drivers can be added.[mchehab: rebased to apple on the top of media/platform/Kconfig series]Signed-off-by: Pratyush Yadav <[email protected]>Reviewed-by: Tomi Valkeinen <[email protected]>Reviewed-by: Laurent Pinchart <[email protected]>Signed-off-by: Mauro Carvalho Chehab <[email protected]>