linux/drivers/media/i2c/adv748x
Steve Longerbeam fb517583b3 media: i2c: adv748x: Use devm to allocate the device struct
Switch to devm_kzalloc() when allocating the adv748x device struct.

The sizeof() is updated to determine the correct allocation size from
the dereferenced pointer type rather than hardcoding the struct type.

[Kieran: Change sizeof() to dereference the pointer type]

Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-01-21 15:44:23 -02:00
..
adv748x-afe.c media: i2c: adv748x: Handle TX[A|B] power management 2018-10-04 14:48:34 -04:00
adv748x-core.c media: i2c: adv748x: Use devm to allocate the device struct 2019-01-21 15:44:23 -02:00
adv748x-csi2.c media: i2c: adv748x: Register only enabled inputs 2018-10-04 14:50:44 -04:00
adv748x-hdmi.c media: i2c: adv748x: Handle TX[A|B] power management 2018-10-04 14:48:34 -04:00
adv748x.h media: i2c: adv748x: store number of CSI-2 lanes described in device tree 2019-01-16 12:11:04 -05:00
Makefile