diff options
author | 2020-09-15 11:04:41 +0200 | |
---|---|---|
committer | 2020-11-16 10:31:12 +0100 | |
commit | e599fc86717fde6741891c8b1689fe7043734348 (patch) | |
tree | 777ea4de5e4c64f06d42bd5666bf64257f200aab | |
parent | media: i2c: imx274: Add IMX274 power on and off sequence (diff) | |
download | linux-e599fc86717fde6741891c8b1689fe7043734348.tar.gz linux-e599fc86717fde6741891c8b1689fe7043734348.tar.bz2 linux-e599fc86717fde6741891c8b1689fe7043734348.zip |
media: imx274: remove binning enum
Binning enum is unused. Remove from driver.
Suggested-by: Sakari Ailus <sakari.ailus@ifi.fi>
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r-- | drivers/media/i2c/imx274.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/media/i2c/imx274.c b/drivers/media/i2c/imx274.c index 2a6498e037cd..abff11528d0d 100644 --- a/drivers/media/i2c/imx274.c +++ b/drivers/media/i2c/imx274.c @@ -67,7 +67,6 @@ */ #define IMX274_MIN_EXPOSURE_TIME (4 * 260 / 72) -#define IMX274_DEFAULT_BINNING IMX274_BINNING_OFF #define IMX274_MAX_WIDTH (3840) #define IMX274_MAX_HEIGHT (2160) #define IMX274_MAX_FRAME_RATE (120) @@ -156,12 +155,6 @@ static const struct regmap_config imx274_regmap_config = { .cache_type = REGCACHE_RBTREE, }; -enum imx274_binning { - IMX274_BINNING_OFF, - IMX274_BINNING_2_1, - IMX274_BINNING_3_1, -}; - /* * Parameters for each imx274 readout mode. * @@ -1913,7 +1906,7 @@ static int imx274_probe(struct i2c_client *client) } /* initialize format */ - imx274->mode = &imx274_modes[IMX274_DEFAULT_BINNING]; + imx274->mode = &imx274_modes[0]; imx274->crop.width = IMX274_MAX_WIDTH; imx274->crop.height = IMX274_MAX_HEIGHT; imx274->format.width = imx274->crop.width / imx274->mode->bin_ratio; |