// SPDX-License-Identifier: GPL-2.0-or-later /* * ImgTec IR Decoder setup for NEC protocol. * * Copyright 2010-2014 Imagination Technologies Ltd. */ #include "img-ir-hw.h" #include <linux/bitrev.h> #include <linux/log2.h> /* Convert NEC data to a scancode */ static int img_ir_nec_scancode(int len, u64 raw, u64 enabled_protocols, struct img_ir_scancode_req *request) { … } /* Convert NEC scancode to NEC data filter */ static int img_ir_nec_filter(const struct rc_scancode_filter *in, struct img_ir_filter *out, u64 protocols) { … } /* * NEC decoder * See also http://www.sbprojects.com/knowledge/ir/nec.php * http://wiki.altium.com/display/ADOH/NEC+Infrared+Transmission+Protocol */ struct img_ir_decoder img_ir_nec = …;