]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/IR/ir-rc5-decoder.c
V4L-DVB: ir-core: remove the ancillary buffer
[net-next-2.6.git] / drivers / media / IR / ir-rc5-decoder.c
index 4b7eafecd84284914c595454bb429e502e7b4ead..61b58397a3c2a410e35dd154f8baf272d0c2ca47 100644 (file)
@@ -142,7 +142,7 @@ static struct attribute_group decoder_attribute_group = {
  *
  * This function returns -EINVAL if the pulse violates the state machine
  */
-static int handle_event(struct input_dev *input_dev,
+static int ir_rc5_decode(struct input_dev *input_dev,
                        struct ir_raw_event *ev)
 {
        struct decoder_data *data;
@@ -273,32 +273,6 @@ err2:
        return -EINVAL;
 }
 
-/**
- * ir_rc5_decode() - Decodes all RC-5 pulsecodes on a given array
- * @input_dev: the struct input_dev descriptor of the device
- * @evs:       event array with type/duration of pulse/space
- * @len:       length of the array
- * This function returns the number of decoded pulses
- */
-static int ir_rc5_decode(struct input_dev *input_dev,
-                        struct ir_raw_event *evs,
-                        int len)
-{
-       struct ir_input_dev *ir_dev = input_get_drvdata(input_dev);
-       struct decoder_data *data;
-       int pos = 0;
-       int rc = 0;
-
-       data = get_decoder_data(ir_dev);
-       if (!data || !data->enabled)
-               return 0;
-
-       for (pos = 0; pos < len; pos++)
-               handle_event(input_dev, &evs[pos]);
-
-       return rc;
-}
-
 static int ir_rc5_register(struct input_dev *input_dev)
 {
        struct ir_input_dev *ir_dev = input_get_drvdata(input_dev);