]> Gentwo Git Trees - linux/.git/commit
media: i2c: imx219: Simplify imx219_get_binning() function
authorJai Luthra <jai.luthra@ideasonboard.com>
Fri, 17 Oct 2025 08:13:50 +0000 (13:43 +0530)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 29 Oct 2025 13:07:01 +0000 (14:07 +0100)
commit3dc9770bf2d521e992df5ebcfdbf1dc68653788b
treed9716bca3ddd3f6fb92b05bdb291a4c3b713a366
parent9ef6e4db152c34580cc52792f32485c193945395
media: i2c: imx219: Simplify imx219_get_binning() function

In imx219_set_pad_format() there is now a constraint to enforce hbin ==
vbin. So, simplify the logic in imx219_get_binning() function by
removing dead code that handles the case where hbin != vbin.

Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Tested-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/imx219.c