]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: i2c: mt9p031: fix mbus code initialization
authorHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 24 Apr 2025 09:27:30 +0000 (11:27 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 9 Sep 2025 13:59:16 +0000 (15:59 +0200)
commit075710b670d96cf9edca1894abecba7402fe4f34
tree2df33c36210d2e1466942f21531575898b5eb291
parent4010eef01debc50facbea76a37b9445c61c379bf
media: i2c: mt9p031: fix mbus code initialization

The mediabus code is device dependent, but the probe() function
thought that device_get_match_data() would return the code directly,
when in fact it returned a pointer to a struct mt9p031_model_info.

As a result, the initial mbus code was garbage.

Tested with a BeagleBoard xM and a Leopard Imaging LI-5M03 sensor board.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Tested-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Fixes: a80b1bbff88b ("media: mt9p031: Refactor format handling for different sensor models")
Cc: stable@vger.kernel.org
drivers/media/i2c/mt9p031.c