Commit cb359a86 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Mauro Carvalho Chehab

[media] media: rc: nuvoton: remove wake states

Wake states have never been in use and now that we can set the
wakeup sequence via sysfs there's in general no need for them.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 594ccee6
...@@ -1206,7 +1206,6 @@ static int nvt_suspend(struct pnp_dev *pdev, pm_message_t state) ...@@ -1206,7 +1206,6 @@ static int nvt_suspend(struct pnp_dev *pdev, pm_message_t state)
/* zero out misc state tracking */ /* zero out misc state tracking */
nvt->study_state = ST_STUDY_NONE; nvt->study_state = ST_STUDY_NONE;
nvt->wake_state = ST_WAKE_NONE;
/* disable all CIR interrupts */ /* disable all CIR interrupts */
nvt_cir_reg_write(nvt, 0, CIR_IREN); nvt_cir_reg_write(nvt, 0, CIR_IREN);
......
...@@ -117,8 +117,6 @@ struct nvt_dev { ...@@ -117,8 +117,6 @@ struct nvt_dev {
/* rx settings */ /* rx settings */
bool learning_enabled; bool learning_enabled;
/* track cir wake state */
u8 wake_state;
/* for study */ /* for study */
u8 study_state; u8 study_state;
/* carrier period = 1 / frequency */ /* carrier period = 1 / frequency */
...@@ -131,11 +129,6 @@ struct nvt_dev { ...@@ -131,11 +129,6 @@ struct nvt_dev {
#define ST_STUDY_CARRIER 0x2 #define ST_STUDY_CARRIER 0x2
#define ST_STUDY_ALL_RECV 0x4 #define ST_STUDY_ALL_RECV 0x4
/* wake states */
#define ST_WAKE_NONE 0x0
#define ST_WAKE_START 0x1
#define ST_WAKE_FINISH 0x2
/* receive states */ /* receive states */
#define ST_RX_WAIT_7F 0x1 #define ST_RX_WAIT_7F 0x1
#define ST_RX_WAIT_HEAD 0x2 #define ST_RX_WAIT_HEAD 0x2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment