diff options
author | Shuah Khan <shuahkh@osg.samsung.com> | 2016-02-12 23:18:03 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-03-03 11:47:17 (GMT) |
commit | 174ced212c1014cded05c35ff22a970fac3da3ca (patch) | |
tree | 27f8ae7d26d6484c42868bda2f02a1436568df07 /fs/debugfs | |
parent | b21d29e08cc3424622e0b0d800307e254951f425 (diff) | |
download | linux-174ced212c1014cded05c35ff22a970fac3da3ca.tar.xz |
[media] media: au0828 set ctrl_input in au0828_s_input()
dev->ctrl_input is set in vidioc_s_input() and doesn't get set in
au0828_s_input(). As a result, dev->ctrl_input is left uninitialized
until user space calls s_input.
It works correctly because the default input value is 0 and which is
what dev->ctrl_input gets initialized via kzalloc().
Change to set dev->ctrl_input in au0828_s_input(). Also optimize
vidioc_s_input() to return if the new input value is same as the
current.
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'fs/debugfs')
0 files changed, 0 insertions, 0 deletions