This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 478b292a87e3851810e4c350b0bda94ce645e895
Author: Xiang Xiao <xiaoxi...@xiaomi.com>
AuthorDate: Sun Feb 27 16:01:40 2022 +0800

    input/buttons: Remove btn_enable from btn_sample
    
    since btn_sample doesn't change the status
    
    Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com>
---
 drivers/input/button_upper.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/input/button_upper.c b/drivers/input/button_upper.c
index 2493724..b2d9446 100644
--- a/drivers/input/button_upper.c
+++ b/drivers/input/button_upper.c
@@ -317,10 +317,6 @@ static void btn_sample(FAR struct btn_upperhalf_s *priv)
         }
     }
 
-  /* Enable/disable interrupt handling */
-
-  btn_enable(priv);
-
   priv->bu_sample = sample;
   leave_critical_section(flags);
 }

Reply via email to