Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343822
b: refs/heads/master
c: 230dc94
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Oct 27, 2012
1 parent 23916a3 commit 0add9c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e1803f4cd4bab0a66a24945a00e2c3a89457a32
refs/heads/master: 230dc94a2a6e5786b8529e3218979719758f1fa0
7 changes: 2 additions & 5 deletions trunk/drivers/media/rc/nuvoton-cir.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ static void nvt_enable_wake(struct nvt_dev *nvt)
nvt_cir_wake_reg_write(nvt, 0, CIR_WAKE_IREN);
}

#if 0 /* Currently unused */
/* rx carrier detect only works in learning mode, must be called w/nvt_lock */
static u32 nvt_rx_carrier_detect(struct nvt_dev *nvt)
{
Expand Down Expand Up @@ -504,7 +505,7 @@ static u32 nvt_rx_carrier_detect(struct nvt_dev *nvt)

return carrier;
}

#endif
/*
* set carrier frequency
*
Expand Down Expand Up @@ -620,7 +621,6 @@ static void nvt_dump_rx_buf(struct nvt_dev *nvt)
static void nvt_process_rx_ir_data(struct nvt_dev *nvt)
{
DEFINE_IR_RAW_EVENT(rawir);
u32 carrier;
u8 sample;
int i;

Expand All @@ -629,9 +629,6 @@ static void nvt_process_rx_ir_data(struct nvt_dev *nvt)
if (debug)
nvt_dump_rx_buf(nvt);

if (nvt->carrier_detect_enabled)
carrier = nvt_rx_carrier_detect(nvt);

nvt_dbg_verbose("Processing buffer of len %d", nvt->pkts);

init_ir_raw_event(&rawir);
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/media/rc/nuvoton-cir.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ struct nvt_dev {

/* rx settings */
bool learning_enabled;
bool carrier_detect_enabled;

/* track cir wake state */
u8 wake_state;
Expand Down

0 comments on commit 0add9c3

Please sign in to comment.