From: Sylwester Nawrocki Date: Tue, 23 Apr 2013 14:36:04 +0000 (-0300) Subject: [media] exynos4-is: Fix driver name reported in vidioc_querycap X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~104^2^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aceb59ed3438dcb2f5c90e2f62f0f9edde4091d2;p=pandora-kernel.git [media] exynos4-is: Fix driver name reported in vidioc_querycap Originally struct v4l2_capability driver and card name was filled with name of the platform device. After switching to the device tree the device names have changed and now are 4 different driver names reported, depending on the video device opened. So instead of e.g. "exynos4-fimc" there is now one of: 11800000.fimc, 11810000.fimc, 11820000.fimc, 11830000.fimc. Fix this by using dev->driver_name, rather than platform device name. A common vidioc_querycap function is created for both M2M and capture video node. This fixes any breakage at user space should any application/library rely on the driver's name. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed