]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: dvb_frontend: cleanup ioctl handling logic
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 18 Sep 2017 11:15:13 +0000 (07:15 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 11 Oct 2017 16:54:07 +0000 (12:54 -0400)
commitd73dcf0cdb95a47f7e4e991ab63dd30f6eb67b4e
tree72dfecfa0cc9094fb1f25a657cfaff7b631cbd6e
parent2b5df42b8dec69fb926a242007fd462343db4408
media: dvb_frontend: cleanup ioctl handling logic

Currently, there are two handlers for ioctls:
 - dvb_frontend_ioctl_properties()
 - dvb_frontend_ioctl_legacy()

Despite their names, both handles non-legacy DVB ioctls.

Besides that, there's no reason why to not handle all ioctls
on a single handler function.

So, merge them into a single function (dvb_frontend_handle_ioctl)
and reorganize the ioctl's to indicate what's the current DVB
API and what's deprecated.

Despite the big diff, the handling logic for each ioctl is the
same as before.

Reviewed-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-core/dvb_frontend.c