]> git.itanic.dy.fi Git - linux-stable/commit
media: ov2740: Check hwcfg after allocating the ov2740 struct
authorHans de Goede <hdegoede@redhat.com>
Mon, 4 Dec 2023 12:39:43 +0000 (13:39 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 13 Dec 2023 12:21:20 +0000 (13:21 +0100)
commit4024107e104c06ac497b87bfd063c377b0b74527
treeb612aae23c2b96c5f6bc0910fefe74ba6015ec1d
parent3735228bbe3511f844e03dfcc4003fadb59dde23
media: ov2740: Check hwcfg after allocating the ov2740 struct

Alloc ov2740_data and set up the drvdata pointer before calling
ov2740_check_hwcfg().

This is a preparation patch to allow ov2740_check_hwcfg()
to store some of the parsed data in the ov2740 struct.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov2740.c