summaryrefslogtreecommitdiff
path: root/drivers/staging/media/atomisp/i2c/gc2235.h
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-02-19 08:27:19 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-02-22 12:29:33 -0500
commit718df0a814b6d71ad9b55ef0ffe6c0c13371a272 (patch)
treeddd8bdff8e72ec65dfc589e335cf7c46c060e6cb /drivers/staging/media/atomisp/i2c/gc2235.h
parentf97b8e6baa10c5b891cb65491f457274f5788717 (diff)
media: staging: atomisp: i2c: Disable non-preview configurations
These sensor drivers have use case specific mode lists. This is currently not used nor there is a standard API for selecting the mode list. Disable configurations for non-preview modes until configuration selection is improved so that all the configurations are always usable. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> [hans.verkuil@cisco.com: clarify that this functionality it currently unused] Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/staging/media/atomisp/i2c/gc2235.h')
-rw-r--r--drivers/staging/media/atomisp/i2c/gc2235.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/media/atomisp/i2c/gc2235.h b/drivers/staging/media/atomisp/i2c/gc2235.h
index 45a54fea5466..0e805bcfa4d8 100644
--- a/drivers/staging/media/atomisp/i2c/gc2235.h
+++ b/drivers/staging/media/atomisp/i2c/gc2235.h
@@ -574,6 +574,11 @@ static struct gc2235_resolution gc2235_res_preview[] = {
};
#define N_RES_PREVIEW (ARRAY_SIZE(gc2235_res_preview))
+/*
+ * Disable non-preview configurations until the configuration selection is
+ * improved.
+ */
+#if 0
static struct gc2235_resolution gc2235_res_still[] = {
{
.desc = "gc2235_1600_900_30fps",
@@ -658,6 +663,7 @@ static struct gc2235_resolution gc2235_res_video[] = {
};
#define N_RES_VIDEO (ARRAY_SIZE(gc2235_res_video))
+#endif
static struct gc2235_resolution *gc2235_res = gc2235_res_preview;
static unsigned long N_RES = N_RES_PREVIEW;