summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/smiapp/smiapp.h
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2020-02-11 12:18:31 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-12-02 17:35:24 +0300
commit42aab58f456a28a5d4b175e7cf7d43276ed3d06b (patch)
tree954f6c197c9e08086529a6d72cf4f76c6d8387f7 /drivers/media/i2c/smiapp/smiapp.h
parent19a435f9ea48f296527f713e0afb25d89527c63b (diff)
downloadlinux-42aab58f456a28a5d4b175e7cf7d43276ed3d06b.tar.xz
media: smiapp: Use CCS registers
Switch to CCS standard registers where they exist. The still relevant SMIA registers are left as-is and the redundant ones are removed. 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/i2c/smiapp/smiapp.h')
-rw-r--r--drivers/media/i2c/smiapp/smiapp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp.h b/drivers/media/i2c/smiapp/smiapp.h
index 1a67cf485dcc..c6e4e05a7522 100644
--- a/drivers/media/i2c/smiapp/smiapp.h
+++ b/drivers/media/i2c/smiapp/smiapp.h
@@ -15,6 +15,8 @@
#include <media/v4l2-ctrls.h>
#include <media/v4l2-subdev.h>
+#include "ccs-regs.h"
+
#include "smiapp-pll.h"
#include "smiapp-reg-defs.h"
#include "smiapp-regs.h"
@@ -220,7 +222,7 @@ struct smiapp_sensor {
struct gpio_desc *xshutdown;
void *ccs_limits;
u8 nbinning_subtypes;
- struct smiapp_binning_subtype binning_subtypes[SMIAPP_BINNING_SUBTYPES];
+ struct smiapp_binning_subtype binning_subtypes[CCS_LIM_BINNING_SUB_TYPE_MAX_N + 1];
u32 mbus_frame_fmts;
const struct smiapp_csi_data_format *csi_format;
const struct smiapp_csi_data_format *internal_csi_format;