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)
commit6b63974e0b167bb31a605510800c56ed3630520e
tree72dfecfa0cc9094fb1f25a657cfaff7b631cbd6e
parent9d1a3616371d65570be3c0c87bd9be44860702d9
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