alistair23-linux/drivers/media/rc
Sean Young 528222d853 media: rc: harmonize infrared durations to microseconds
rc-core kapi uses nanoseconds for infrared durations for receiving, and
microseconds for sending. The uapi already uses microseconds for both,
so this patch does not change the uapi.

Infrared durations do not need nanosecond resolution. IR protocols do not
have durations shorter than about 100 microseconds. Some IR hardware offers
250 microseconds resolution, which is sufficient for most protocols.
Better hardware has 50 microsecond resolution and is enough for every
protocol I am aware off.

Unify on microseconds everywhere. This simplifies the code since less
conversion between microseconds and nanoseconds needs to be done.

This affects:
 - rx_resolution member of struct rc_dev
 - timeout member of struct rc_dev
 - duration member in struct ir_raw_event

Cc: "Bruno Prémont" <bonbons@linux-vserver.org>
Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Patrick Lerda <patrick9876@free.fr>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: Sean Wang <sean.wang@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: "David Härdeman" <david@hardeman.nu>
Cc: Benjamin Valentin <benpicco@googlemail.com>
Cc: Antti Palosaari <crope@iki.fi>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-03 16:18:55 +02:00
..
img-ir media: Remove dev_err() usage after platform_get_irq() 2019-08-07 17:08:33 -03:00
keymaps media: rc: add keymap for Videostrong KII Pro 2020-02-24 16:27:44 +01:00
ati_remote.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
bpf-lirc.c bpf: Implement CAP_BPF 2020-05-15 17:29:41 +02:00
ene_ir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ene_ir.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
fintek-cir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
fintek-cir.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
gpio-ir-recv.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
gpio-ir-tx.c media: gpio-ir-tx: allow transmission without carrier 2020-05-12 17:30:40 +02:00
igorplugusb.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
iguanair.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
imon.c media: imon: Replace http links with https ones 2020-07-19 14:00:32 +02:00
imon_raw.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-hix5hd2.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-imon-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-jvc-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-mce_kbd-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-nec-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-rc5-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-rc6-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-rcmm-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-rx51.c media: ir-rx51: Use 64-bit division macro 2020-04-21 12:57:04 +02:00
ir-sanyo-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-sharp-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-sony-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-spi.c media: spi: IR LED: add missing of table registration 2019-05-22 15:27:37 -04:00
ir-xmp-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir_toy.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ite-cir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ite-cir.h media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
Kconfig media: rc: add support for Infrared Toy and IR Droid devices 2020-06-23 15:07:21 +02:00
lirc_dev.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
Makefile media: rc: add support for Infrared Toy and IR Droid devices 2020-06-23 15:07:21 +02:00
mceusb.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
meson-ir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
mtk-cir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
nuvoton-cir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
nuvoton-cir.h media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
pwm-ir-tx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 122 2019-05-24 17:39:03 +02:00
rc-core-priv.h media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
rc-ir-raw.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
rc-loopback.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
rc-main.c media: rc: return proper error code on error handling path in init 2020-07-04 12:23:46 +02:00
redrat3.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
serial_ir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
sir_ir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
st_rc.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
streamzap.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
sunxi-cir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
tango-ir.c media: rc: Use devm_platform_ioremap_resource() in tango_ir_probe() 2019-10-07 07:44:56 -03:00
ttusbir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
winbond-cir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
xbox_remote.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
zx-irdec.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00