mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 11:55:53 +00:00
c003ab1bed
The RC_TYPE_* defines are currently used both where a single protocol is expected and where a bitmap of protocols is expected. Functions like rc_keydown() and functions which add/remove entries to the keytable want a single protocol. Future userspace APIs would also benefit from numeric protocols (rather than bitmap ones). Keytables are smaller if they can use a small(ish) integer rather than a bitmap. Other functions or struct members (e.g. allowed_protos, enabled_protocols, etc) accept multiple protocols and need a bitmap. Using different types reduces the risk of programmer error. Using a protocol enum whereever possible also makes for a more future-proof user-space API as we don't need to worry about a sufficient number of bits being available (e.g. in structs used for ioctl() calls). The use of both a number and a corresponding bit is dalso one in e.g. the input subsystem as well (see all the references to set/clear bit when changing keytables for example). This patch separate the different usages in preparation for upcoming patches. Where a single protocol is expected, enum rc_type is used; where one or more protocol(s) are expected, something like u64 is used. The patch has been rewritten so that the format of the sysfs "protocols" file is no longer altered (at the loss of some detail). The file itself should probably be deprecated in the future though. Signed-off-by: David Härdeman <david@hardeman.nu> Cc: Andy Walls <awalls@md.metrocast.net> Cc: Maxim Levitsky <maximlevitsky@gmail.com> Cc: Antti Palosaari <crope@iki.fi> Cc: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> |
||
---|---|---|
.. | ||
af9015.c | ||
af9015.h | ||
af9035.c | ||
af9035.h | ||
anysee.c | ||
anysee.h | ||
au6610.c | ||
au6610.h | ||
az6007.c | ||
ce6230.c | ||
ce6230.h | ||
cypress_firmware.c | ||
cypress_firmware.h | ||
dvb_usb_common.h | ||
dvb_usb_core.c | ||
dvb_usb_urb.c | ||
dvb_usb.h | ||
ec168.c | ||
ec168.h | ||
gl861.c | ||
gl861.h | ||
it913x.c | ||
Kconfig | ||
lmedm04.c | ||
lmedm04.h | ||
Makefile | ||
mxl111sf-demod.c | ||
mxl111sf-demod.h | ||
mxl111sf-gpio.c | ||
mxl111sf-gpio.h | ||
mxl111sf-i2c.c | ||
mxl111sf-i2c.h | ||
mxl111sf-phy.c | ||
mxl111sf-phy.h | ||
mxl111sf-reg.h | ||
mxl111sf-tuner.c | ||
mxl111sf-tuner.h | ||
mxl111sf.c | ||
mxl111sf.h | ||
rtl28xxu.c | ||
rtl28xxu.h | ||
usb_urb.c |