Skip to content

media: vimc: various fixes

Dafna Hirschfeld linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5media: vimc: remove the function vimc_unregisterdrivers/media/platform/vimc/vimc-core.c+3 -80 replies
2/5media: vimc: handle error in vimc_add_subdevsdrivers/media/platform/vimc/vimc-core.c+22 -200 replies
3/5media: vimc: keep the error value when adding an entity failsdrivers/media/platform/vimc/vimc-capture.c drivers/media/platform/vimc/vimc-core.c drivers/media/platform/vimc/vimc-debayer.c +2 more+15 -120 replies
4/5media: vimc: fix issues in documentation in vimc-common.hdrivers/media/platform/vimc/vimc-common.h+5 -60 replies
5/5media: vimc: add vimc_ent_type struct for the callbacks of entitiesdrivers/media/platform/vimc/vimc-capture.c drivers/media/platform/vimc/vimc-common.h drivers/media/platform/vimc/vimc-core.c +3 more+54 -473 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] media: vimc: various fixes

Various fixes and improvements for vimc driver.

Patches summary:

patch 1: remove the function vimc_unregister
patch 2: if vimc_add_subdevs fails then the cleanup should be inside the function patch 3: return the error code if a callback fails instead of NULL
patch 4: fix some typos in the docs
patch 5: adds a struct vimc_cap_type that holds the callbacks of each vimc entity type, since for each type the set of callbacks is always the same.

Dafna Hirschfeld (5):
media: vimc: remove the function vimc_unregister
media: vimc: handle error in vimc_add_subdevs
media: vimc: keep the error value when adding an entity fails
media: vimc: fix issues in documentation in vimc-common.h
media: vimc: add vimc_ent_type struct for the callbacks of entities

 drivers/media/platform/vimc/vimc-capture.c | 10 ++-
 drivers/media/platform/vimc/vimc-common.h  | 53 ++++++-------
 drivers/media/platform/vimc/vimc-core.c    | 90 ++++++++++------------
 drivers/media/platform/vimc/vimc-debayer.c |  9 ++-
 drivers/media/platform/vimc/vimc-scaler.c  |  9 ++-
 drivers/media/platform/vimc/vimc-sensor.c  |  9 ++-
 6 files changed, 93 insertions(+), 87 deletions(-)
Signature · 1 line
2.17.1