summaryrefslogtreecommitdiff
path: root/drivers/media/pci/intel/ipu3/ipu3-cio2.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-07-13 23:21:30 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-09-30 11:07:45 +0300
commit8b0a8b1b612cdb6ed50fa3e07a87513fe6b3b627 (patch)
tree05e71447b0790c003811f3b417ee6f9e4db182df /drivers/media/pci/intel/ipu3/ipu3-cio2.h
parent66ec7a97d2f8098e7d0a60e966a58c1d2e4bdaef (diff)
downloadlinux-8b0a8b1b612cdb6ed50fa3e07a87513fe6b3b627.tar.xz
media: ipu3-cio2: Introduce to_cio2_buffer() helper macro
Provide to_cio2_buffer() helper macro and convert users to make code easier to read. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/pci/intel/ipu3/ipu3-cio2.h')
-rw-r--r--drivers/media/pci/intel/ipu3/ipu3-cio2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/pci/intel/ipu3/ipu3-cio2.h b/drivers/media/pci/intel/ipu3/ipu3-cio2.h
index 3806d7f04d69..f82f9b2590b9 100644
--- a/drivers/media/pci/intel/ipu3/ipu3-cio2.h
+++ b/drivers/media/pci/intel/ipu3/ipu3-cio2.h
@@ -338,6 +338,8 @@ struct cio2_buffer {
unsigned int offset;
};
+#define to_cio2_buffer(vb) container_of(vb, struct cio2_buffer, vbb.vb2_buf)
+
struct csi2_bus_info {
u32 port;
u32 lanes;