Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh_mobile_ceu_camera: pass .set_parm and .get_parm down to subdevices

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Guennadi Liakhovetski and committed by
Mauro Carvalho Chehab
d07602a0 c9f6ef69

+18
+18
drivers/media/video/sh_mobile_ceu_camera.c
··· 1748 1748 icd); 1749 1749 } 1750 1750 1751 + static int sh_mobile_ceu_get_parm(struct soc_camera_device *icd, 1752 + struct v4l2_streamparm *parm) 1753 + { 1754 + struct v4l2_subdev *sd = soc_camera_to_subdev(icd); 1755 + 1756 + return v4l2_subdev_call(sd, video, g_parm, parm); 1757 + } 1758 + 1759 + static int sh_mobile_ceu_set_parm(struct soc_camera_device *icd, 1760 + struct v4l2_streamparm *parm) 1761 + { 1762 + struct v4l2_subdev *sd = soc_camera_to_subdev(icd); 1763 + 1764 + return v4l2_subdev_call(sd, video, s_parm, parm); 1765 + } 1766 + 1751 1767 static int sh_mobile_ceu_get_ctrl(struct soc_camera_device *icd, 1752 1768 struct v4l2_control *ctrl) 1753 1769 { ··· 1824 1808 .try_fmt = sh_mobile_ceu_try_fmt, 1825 1809 .set_ctrl = sh_mobile_ceu_set_ctrl, 1826 1810 .get_ctrl = sh_mobile_ceu_get_ctrl, 1811 + .set_parm = sh_mobile_ceu_set_parm, 1812 + .get_parm = sh_mobile_ceu_get_parm, 1827 1813 .reqbufs = sh_mobile_ceu_reqbufs, 1828 1814 .poll = sh_mobile_ceu_poll, 1829 1815 .querycap = sh_mobile_ceu_querycap,