From patchwork Fri Jun 24 05:39:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9196651 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BD01A6088F for ; Fri, 24 Jun 2016 05:40:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEA9A28494 for ; Fri, 24 Jun 2016 05:40:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A34DD28493; Fri, 24 Jun 2016 05:40:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 403E328491 for ; Fri, 24 Jun 2016 05:40:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751317AbcFXFkc (ORCPT ); Fri, 24 Jun 2016 01:40:32 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33916 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751197AbcFXFkV (ORCPT ); Fri, 24 Jun 2016 01:40:21 -0400 Received: by mail-wm0-f67.google.com with SMTP id 187so2192668wmz.1 for ; Thu, 23 Jun 2016 22:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=phyTb0FitQyclzbU1tkTCiV0Ko4KuvIcKUSv5TE4atQ=; b=uKKCEYyO8WGnmS/FMtxuDsXVUVVxZdIAJiT2TaDfzB4GvwfROKhCzP8JwkJ5n/C6m0 c7FW9BnTmh4UQEt2AA7xhnUpB94vaoWrsDNdxv9Sh9T+YAFUsaiWdqp45D/UEKBXWKjm 17ENqG2ebP6KUWZ7YQoDbZ3Ura0u98+Xp4kU11ZW8R8KcSynj5TZ0vVF5zNQflkD7WlT pGiW3i5TjrWlqNd0IpEfZqcLNnVQPhAzxiVr5M3lFRKAJjQiAmKhMyju1KQsFgOcnLxs 2rh2fUrCRPEzivGAGOaarAsFrubKmU5lcEV+39KmyAhWQcHa2MViN+Q0N6Przolq76N2 RJ/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=phyTb0FitQyclzbU1tkTCiV0Ko4KuvIcKUSv5TE4atQ=; b=FJ4WuqDYHThoEHNqK8wkeB0Ch8ZHEAh8hvITeP5Rg0QehZLA6puCJvEJzL8RQDeMll NVFlefZegP2zIynlSCQuS3ta/STZrrNzokVGHrqjoi9Je4+IL5KZKAKc/3laMJRBwFlq 6VPyGFh3g3xh3wVKk0CTTpN88bG9Y9aaxWQIrOAynSLeElakKJuPato4zKnb/4dsf3PX 46Bx/mjilpWkfnafLtFjX9D0bdGBwQ6Cfc3QbHre9WJABnO3/3sYi4AB1wyTP0iPeO18 Ydke9OKqGsBv7PG2uSIbAHTMnNtdJXXXNnFGV/AqWV3RdagrTiQly05wYRGKutMKl1Ok 4cEQ== X-Gm-Message-State: ALyK8tIN377EDB9WA+7B2yBxVltIg1wGcVXoKKyxMG+ASTtzf148LoR7GXEG+/WT1NnefQ== X-Received: by 10.194.22.169 with SMTP id e9mr1876390wjf.128.1466746820230; Thu, 23 Jun 2016 22:40:20 -0700 (PDT) Received: from ?IPv6:2003:62:5f01:4400:1482:e189:e8da:8d18? (p200300625F0144001482E189E8DA8D18.dip0.t-ipconnect.de. [2003:62:5f01:4400:1482:e189:e8da:8d18]) by smtp.googlemail.com with ESMTPSA id vu10sm3344734wjb.27.2016.06.23.22.40.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jun 2016 22:40:19 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH 3/9] media: rc: nuvoton: remove wake states To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Message-ID: Date: Fri, 24 Jun 2016 07:39:12 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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: Heiner Kallweit --- drivers/media/rc/nuvoton-cir.c | 1 - drivers/media/rc/nuvoton-cir.h | 7 ------- 2 files changed, 8 deletions(-) diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index c8999cc..c405c83 100644 --- a/drivers/media/rc/nuvoton-cir.c +++ b/drivers/media/rc/nuvoton-cir.c @@ -1207,7 +1207,6 @@ static int nvt_suspend(struct pnp_dev *pdev, pm_message_t state) /* zero out misc state tracking */ nvt->study_state = ST_STUDY_NONE; - nvt->wake_state = ST_WAKE_NONE; /* disable all CIR interrupts */ nvt_cir_reg_write(nvt, 0, CIR_IREN); diff --git a/drivers/media/rc/nuvoton-cir.h b/drivers/media/rc/nuvoton-cir.h index 68431f0..8bd35bd 100644 --- a/drivers/media/rc/nuvoton-cir.h +++ b/drivers/media/rc/nuvoton-cir.h @@ -117,8 +117,6 @@ struct nvt_dev { /* rx settings */ bool learning_enabled; - /* track cir wake state */ - u8 wake_state; /* for study */ u8 study_state; /* carrier period = 1 / frequency */ @@ -131,11 +129,6 @@ struct nvt_dev { #define ST_STUDY_CARRIER 0x2 #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 */ #define ST_RX_WAIT_7F 0x1 #define ST_RX_WAIT_HEAD 0x2