Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp630746pxb; Wed, 16 Feb 2022 00:22:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOgGe3uzCoBzR7L1Gi0MePWYCiaNiqp0+QMa++Zk7j4k5nMXWfX8CfspwXhhpH4MKF9MDg X-Received: by 2002:a17:902:e749:b0:14d:71fd:47d5 with SMTP id p9-20020a170902e74900b0014d71fd47d5mr1441476plf.1.1644999730060; Wed, 16 Feb 2022 00:22:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644999730; cv=none; d=google.com; s=arc-20160816; b=C6MxHkFw9Q7TNzyFiDWo7du4wWc+7Ofl4BsHXkU7ypwtN0ylWfDPFnyM+0JSfV1OMC /SkvXnWzT4AcSshvwpUK+Qv+3M5a5X0mG0Hvq9G4dCFvhOa823gxis7H/pmdJmTctmZ8 eGsEMrHQtzfIj+a8U10hOW1U8DGhijJfTHwEGMebcS0XvSdbdSk9/pz+9JPDA1WVBDjv 29S4hxZ+A2z9xkcocNiEK301B+2LP/K16HMfxCi3wriG2Eg+BhmOWMKjk9kBmnZKBWLR Z2s/2zpUg4CcDL+D+6hNliWojQgqZznSSuOIzOHp8WQkIHF9QYKJWxFmp8m0w9US+eC7 HnXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=1aDHrU0OAcezWyAKSlCofgKbepJMdH6+ryrRYnqT3dM=; b=I2Vx0XrqiGM5ad6/z4XcaTMBJ6nMqMGMK8Av0ktvdXzxtbrIXhpQ2pRETS4Js/29Mv 5h4N9CjZyjAIFTAjLsj+vll/EFFgyfjd9PeUMUrMwz1FeQ8k0Iodd54n+sBay5KbmME9 eG8+qNY+E4Aciyk99v2FdBHv4HLJ9onJIudtx8MfRkGO3gGn6aOv+6DRjf31pYzE1+BD ddEJf1IiI9/wbbo9wj6YExRqM2I+1n18f9fa+0SWwca5q8sTR+wfNAQrqpKt0BdUGmUl 9Ujl1sQ1bYwIXOnt9UA9lJjKsBcyy8PiW9PIbzUlhtFx2o+Ao2oSpITXVwtHm1iNAbyE oVDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="m3Sv/VM/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m27si5059922pgb.826.2022.02.16.00.22.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 00:22:10 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="m3Sv/VM/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2F362159EB3; Wed, 16 Feb 2022 00:04:18 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231350AbiBPIDr (ORCPT + 99 others); Wed, 16 Feb 2022 03:03:47 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:38678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231359AbiBPIDk (ORCPT ); Wed, 16 Feb 2022 03:03:40 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BA79215C1D for ; Wed, 16 Feb 2022 00:03:28 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id k2-20020a25b282000000b00623dea9687dso2750434ybj.4 for ; Wed, 16 Feb 2022 00:03:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=1aDHrU0OAcezWyAKSlCofgKbepJMdH6+ryrRYnqT3dM=; b=m3Sv/VM/AlkzDd57mYih9LNc5rNzE8uBAoQF+vV9+aWQnFJQxTji5+HbY31hng1WA5 GCfsFP2zAmvphqMab7UKlG9U8RmvsUoBFfyluy0WN4Rg42Mo1fETKvNiR2BV2XnbLHis ipuYLauO9EQ5q0Tu+OIPQ13DpfgOOV+5S8sN2N9/u1AVAuaeGzcwJQ26ADm0om3OOLWU teAGfdXE+N6iv9PgAywSz729pqw4xhin4KNIjb5EELI91ItE3uC0SZKhjKajM1KmF4r9 HOWw35rpM9zkF7lUqa7L1VTycERYigL6dK+tTvgsXMl8ZZUMEX5m5V0nT4O/brE9LKrg bCAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=1aDHrU0OAcezWyAKSlCofgKbepJMdH6+ryrRYnqT3dM=; b=YqecGbJ9we1z5lh1q4h1dbzQ5J2Dt73ka3I524EQmsBlJfxVVEmEeL6iS9L45pDp+/ bGtuuQUe+78kBc5AJSIuyqGjsbbUr4OyzoDv2VH00EpqxZo1OgPzwPPP1K40q3bryQ8M lz7wdZ6EGHJiL/vpr+N/nyn+lbvXb7Ud3ivalwiMvwqsbRcb/V/lQ6ZSvXyWR0MtwWvN FhVzneW6ivFfPu32cjInbK+emBGDb372Y14X0O7CaV4ZeBHKlr17CfFvk7w0KDEr+lKW 6qrRXOzYWihx++FZ0KHCTMPIWpHZDy/wpjoH9kRVnZMOlHshIN3mSj32U8NZecgUJMDc /a9w== X-Gm-Message-State: AOAM531g5AnefmzJc+wOSQMmF5LWn6W0OwkgQe0dCkW9wIBqFFu+1ICj mTYByEg7ABgI3yUko3RImPWOt2MhjyZL X-Received: from tzungbi-z840.tpe.corp.google.com ([2401:fa00:1:10:8ce7:5b2:9787:1a0b]) (user=tzungbi job=sendgmr) by 2002:a25:1402:0:b0:61a:9815:b84b with SMTP id 2-20020a251402000000b0061a9815b84bmr1121925ybu.573.1644998607466; Wed, 16 Feb 2022 00:03:27 -0800 (PST) Date: Wed, 16 Feb 2022 16:03:03 +0800 In-Reply-To: <20220216080306.3864163-1-tzungbi@google.com> Message-Id: <20220216080306.3864163-3-tzungbi@google.com> Mime-Version: 1.0 References: <20220216080306.3864163-1-tzungbi@google.com> X-Mailer: git-send-email 2.35.1.265.g69c8d7142f-goog Subject: [PATCH v5 2/5] platform/chrome: cros_ec: remove unused variable `was_wake_device` From: Tzung-Bi Shih To: bleung@chromium.org, groeck@chromium.org Cc: chrome-platform@lists.linux.dev, pmalani@chromium.org, tzungbi@google.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Prashant Malani Signed-off-by: Tzung-Bi Shih --- No changes from v3 and v4. Changes from v2: (https://patchwork.kernel.org/project/chrome-platform/patch/20220209045035.380615-3-tzungbi@google.com/) - Add pmalani's R-b tag. - Remove redundant commit message. Changes from v1: (https://lore.kernel.org/lkml/20220125101527.1812887-1-tzungbi@google.com/T/#u) - Use imperative mood in commit message. drivers/platform/chrome/cros_ec.c | 1 - include/linux/platform_data/cros_ec_proto.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/drivers/platform/chrome/cros_ec.c b/drivers/platform/chrome/cros_ec.c index ff2a24b0c611..25cd8df6e7b0 100644 --- a/drivers/platform/chrome/cros_ec.c +++ b/drivers/platform/chrome/cros_ec.c @@ -344,7 +344,6 @@ int cros_ec_suspend(struct cros_ec_device *ec_dev) ec_dev->wake_enabled = !enable_irq_wake(ec_dev->irq); disable_irq(ec_dev->irq); - ec_dev->was_wake_device = ec_dev->wake_enabled; ec_dev->suspended = true; return 0; diff --git a/include/linux/platform_data/cros_ec_proto.h b/include/linux/platform_data/cros_ec_proto.h index df3c78c92ca2..c65971ec90ea 100644 --- a/include/linux/platform_data/cros_ec_proto.h +++ b/include/linux/platform_data/cros_ec_proto.h @@ -76,8 +76,6 @@ struct cros_ec_command { * struct cros_ec_device - Information about a ChromeOS EC device. * @phys_name: Name of physical comms layer (e.g. 'i2c-4'). * @dev: Device pointer for physical comms device - * @was_wake_device: True if this device was set to wake the system from - * sleep at the last suspend. * @cros_class: The class structure for this device. * @cmd_readmem: Direct read of the EC memory-mapped region, if supported. * @offset: Is within EC_LPC_ADDR_MEMMAP region. @@ -137,7 +135,6 @@ struct cros_ec_device { /* These are used by other drivers that want to talk to the EC */ const char *phys_name; struct device *dev; - bool was_wake_device; struct class *cros_class; int (*cmd_readmem)(struct cros_ec_device *ec, unsigned int offset, unsigned int bytes, void *dest); -- 2.35.1.265.g69c8d7142f-goog