[media] lirc: return ENOTTY when ioctl is not supported
authorSean Young <sean@mess.org>
Thu, 26 Jan 2017 17:19:33 +0000 (15:19 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 24 Mar 2017 10:44:42 +0000 (07:44 -0300)
commit5c8627586942b0269f81e3296dabe9f049815779
treef1fd9db3e346e8a1e0eea83ac6accb62b7b80c5f
parenta8b875a54990415603d180e0c4bf31ce7d876c3a
[media] lirc: return ENOTTY when ioctl is not supported

We shouldn't be using ENOSYS when a feature is not available. I've tested
lirc; nothing is broken as far as I can make out.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/ir-lirc-codec.c
drivers/media/rc/lirc_dev.c