aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Walls <awalls@md.metrocast.net>2010-08-01 01:36:20 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-08 22:42:57 -0400
commitd69e85b644dbc8c68dec3b4149941989d4bcc66f (patch)
treeb5351d1c1dd1b30f5cbe270e4e48f4d33d16db2e
parentc02e0d12a9a0a913dee5efd695603b73ee4b729a (diff)
V4L/DVB: v4l2_subdev: Get rid of now unused IR pulse width defines
Signed-off-by: Andy Walls <awalls@md.metrocast.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/cx25840/cx25840-ir.c4
-rw-r--r--include/media/v4l2-subdev.h7
2 files changed, 3 insertions, 8 deletions
diff --git a/drivers/media/video/cx25840/cx25840-ir.c b/drivers/media/video/cx25840/cx25840-ir.c
index 34e284b06dfa..c2b4c14dc9ab 100644
--- a/drivers/media/video/cx25840/cx25840-ir.c
+++ b/drivers/media/video/cx25840/cx25840-ir.c
@@ -886,10 +886,10 @@ static int cx25840_ir_tx_write(struct v4l2_subdev *sd, u8 *buf, size_t count,
886 */ 886 */
887 for (i = 0; i < n; ) { 887 for (i = 0; i < n; ) {
888 for (j = 0; j < FIFO_TX_DEPTH / 2 && i < n; j++) { 888 for (j = 0; j < FIFO_TX_DEPTH / 2 && i < n; j++) {
889 mark = ns_pulse[i] & V4L2_SUBDEV_IR_PULSE_LEVEL_MASK; 889 mark = ns_pulse[i] & LEVEL_MASK;
890 fifo_pulse[j] = ns_to_pulse_width_count( 890 fifo_pulse[j] = ns_to_pulse_width_count(
891 ns_pulse[i] & 891 ns_pulse[i] &
892 ~V4L2_SUBDEV_IR_PULSE_LEVEL_MASK, 892 ~LEVEL_MASK,
893 ir_state->txclk_divider); 893 ir_state->txclk_divider);
894 if (mark) 894 if (mark)
895 fifo_pulse[j] &= FIFO_RXTX_LVL; 895 fifo_pulse[j] &= FIFO_RXTX_LVL;
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
index bacd52568ef9..08880dd15d2f 100644
--- a/include/media/v4l2-subdev.h
+++ b/include/media/v4l2-subdev.h
@@ -360,14 +360,9 @@ struct v4l2_subdev_sensor_ops {
360 */ 360 */
361 361
362enum v4l2_subdev_ir_mode { 362enum v4l2_subdev_ir_mode {
363 V4L2_SUBDEV_IR_MODE_PULSE_WIDTH, /* space & mark widths in nanosecs */ 363 V4L2_SUBDEV_IR_MODE_PULSE_WIDTH, /* uses struct ir_raw_event records */
364}; 364};
365 365
366/* Data format of data read or written for V4L2_SUBDEV_IR_MODE_PULSE_WIDTH */
367#define V4L2_SUBDEV_IR_PULSE_MAX_WIDTH_NS 0x7fffffff
368#define V4L2_SUBDEV_IR_PULSE_LEVEL_MASK 0x80000000
369#define V4L2_SUBDEV_IR_PULSE_RX_SEQ_END 0xffffffff
370
371struct v4l2_subdev_ir_parameters { 366struct v4l2_subdev_ir_parameters {
372 /* Either Rx or Tx */ 367 /* Either Rx or Tx */
373 unsigned int bytes_per_data_element; /* of data in read or write call */ 368 unsigned int bytes_per_data_element; /* of data in read or write call */