[media] v4l2-ctrls: return elem_size instead of strlen
commitc336f75e1e822658122b96d874da01f5f4df994d
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 18 Jan 2014 09:06:01 +0000 (18 06:06 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 17 Jul 2014 14:57:20 +0000 (17 11:57 -0300)
tree1e4dbbb6a4b1b4488c09aa04a6162ec35448c6ed
parent302ab7ce2daba8cdd82a6809adb42d117a683f06
[media] v4l2-ctrls: return elem_size instead of strlen

When getting a string and the size given by the application is too
short return the max length the string can have (elem_size) instead
of the string length + 1. That makes more sense.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-ctrls.c