linux-stable/Documentation/media
Mauro Carvalho Chehab 55089d34f1 media: dvb_frontend: fix return values for FE_SET_PROPERTY
commit 259a41d9ae upstream

There are several problems with regards to the return of
FE_SET_PROPERTY. The original idea were to return per-property
return codes via tvp->result field, and to return an updated
set of values.

However, that never worked. What's actually implemented is:

- the FE_SET_PROPERTY implementation doesn't call .get_frontend
  callback in order to get the actual parameters after return;

- the tvp->result field is only filled if there's no error.
  So, it is always filled with zero;

- FE_SET_PROPERTY doesn't call memdup_user() nor any other
  copy_to_user() function. So, any changes to the properties
  will be lost;

- FE_SET_PROPERTY is declared as a write-only ioctl (IOW).

While we could fix the above, it could cause regressions.

So, let's just assume what the code really does, updating
the documentation accordingly and removing the logic that
would update the discarded tvp->result.

Reviewed-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-30 15:38:35 -04:00
..
dvb-drivers [media] doc-rst: Fix license for the media books 2016-07-23 08:03:24 -03:00
kapi [media] get rid of a number of problems at the cross references 2016-09-22 10:00:23 -03:00
media_api_files [media] docs-rst: re-generate typical_media_device.pdf 2016-08-22 10:06:06 -03:00
uapi media: dvb_frontend: fix return values for FE_SET_PROPERTY 2020-06-30 15:38:35 -04:00
v4l-drivers [media] v4l-drivers/fourcc.rst: fix typo 2016-09-19 12:54:07 -03:00
Makefile Documentation/sphinx: build the media intermediate rst files for all outputs 2016-08-12 15:24:25 -06:00
audio.h.rst.exceptions [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
ca.h.rst.exceptions [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
cec.h.rst.exceptions [media] docs-rst: fix cec bad cross-references 2016-09-09 09:54:21 -03:00
conf.py doc-rst: define PDF's of the media folder 2016-09-01 08:49:33 -06:00
conf_nitpick.py [media] conf_nitpick.py: ignore C domain data used on vb2 2016-09-09 10:18:07 -03:00
dmx.h.rst.exceptions [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
frontend.h.rst.exceptions [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
index.rst docs-rst: fix LaTeX \DURole renewcommand with Sphinx 1.3+ 2017-01-12 11:39:32 +01:00
intro.rst [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
lirc.h.rst.exceptions
media.h.rst.exceptions
media_kapi.rst [media] docs-rst: move cec kAPI documentation to the media book 2016-08-22 10:26:17 -03:00
media_uapi.rst [media] doc-rst: better organize the media books 2016-07-23 08:03:24 -03:00
net.h.rst.exceptions [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
video.h.rst.exceptions [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
videodev2.h.rst.exceptions [media] videodev2.h.rst.exceptions: fix warnings 2016-09-19 14:34:42 -03:00