[media] typhoon: convert to unlocked_ioctl
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 14 Nov 2010 12:49:34 +0000 (09:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 1 Dec 2010 22:10:09 +0000 (20:10 -0200)
commitd2c998f7453af7ad416bc38d09ae9d453d2fac5e
tree31f177781cb93f254c80c8c412c2339c4973df57
parent725ea8cf1c1f5ba53177d20d2d2f6dbc139b643e
[media] typhoon: convert to unlocked_ioctl

Convert the typhoon driver from ioctl to unlocked_ioctl.

When doing this I noticed a bug where curfreq was not initialized correctly
to mutefreq (it wasn't multiplied by 16).

The initialization is now also done before the device node is created.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/radio-typhoon.c