Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp605077pxb; Tue, 15 Feb 2022 23:32:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrMrGyTrolelBtjAiKjCr8QkAvQXGiEGCp9RBvCG+ayFLYFeo75MYMbSwy8p0vzJe/GSAQ X-Received: by 2002:a17:90a:7109:b0:1b9:ae85:9a3a with SMTP id h9-20020a17090a710900b001b9ae859a3amr302573pjk.230.1644996731348; Tue, 15 Feb 2022 23:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644996731; cv=none; d=google.com; s=arc-20160816; b=N2sLAmXCf4lzLbdYKHlHOAIU57cf84ilkscHmqGo9D+EZdH6BwnuW4n/4QNoi91uPK PVdwpgo6HAlxyZZGtb/70ZO7U4zWY0aclhoRXIGsv6JWG8tg7ttsKFqf8VhiNJCVO4K/ c+BwCyflgGVRu3uVRPm5tRwpxWz83ydVxtbQmzBPiH+zQrydz5MnpTQLz2gUbKVPJLsG mZiKCerl/jXp0rzD8qmIvAi4l/SeJuL4SLBnp1znpmNqFd2pPNQLo9m2eqQqW9VCqVPS 0fJsDSkCtseL6Mq0OGZWWP9Hh8PKwyY7jbPmwOU33YhQzHgBnsembvO0UsA0N0OhFtnz wgDg== 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=3psUtytUo6C/8Z0JrCprvFcq0BsJKPsjqLf/EYmVQiY=; b=wRFUBwy+VlI6s7CzfEP0RWS9Byqio6T33fkAPP5ay+doaN/jdUltHC0ueayv5fwtqM Lcl3+OIc2VC1ITJF3YlD5MbDRtxqL/0wP5yK3wmG7mwNVT4WUpdcx8oYhJ115TuXGgbt cXrSAZ6E+131MkqSJTu6N4/jO8f27hitTSEbeGa1suJ17yBoNc7ytUYDETmjw2QXDeUs xwGUoKUEQpOo/a3J2Wz+CdWWfNjY5Y8I2q2x5lZj9IvqpmJYc+QYJaX2A4LonyzTewqe sFkP8EbyybtdsGFjZXQGs1Sb6J9PK+qBpINV5OFBDCyqccy8A/y+w4A9BcK7WzuCSOLO 6VOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=R61yA4Mu; 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 k71si4961894pga.357.2022.02.15.23.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 23:32:11 -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=R61yA4Mu; 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 24F1512ACD; Tue, 15 Feb 2022 22:59:15 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344404AbiBPEhN (ORCPT + 99 others); Tue, 15 Feb 2022 23:37:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344376AbiBPEhL (ORCPT ); Tue, 15 Feb 2022 23:37:11 -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 0EAE2EFF99 for ; Tue, 15 Feb 2022 20:37:00 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id x1-20020a25a001000000b0061c64ee0196so1873816ybh.9 for ; Tue, 15 Feb 2022 20:37:00 -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=3psUtytUo6C/8Z0JrCprvFcq0BsJKPsjqLf/EYmVQiY=; b=R61yA4MuvnJnZisJJDkQCcKXaqxVdWCN7piOxfw0ApsloLfargZcrWV2ECFhBjxk5L FW/60zSo83AP+wRNDJX2qCoAJtiG8S9DheCMRJfV5gmAT9KJjstOQsoq4ZLCQdtJkEW3 v6Y9Qutmhj1MnWkFdlZiyRPVD/QitEae4P5kqAT5+1ornj2CGcEaN0vPO6Vd80EjsGXC w/Vo2xHAV3FVNI8no0ogSAdiYl+38s3jflv7tasY9iVoyk4g2ztRcHV8pVS/QxnIu5Ky ceJBeKzQ0joXBKCkmrBZ+MZWJFGsvF1iOVWjhfFqFOZPK/SrIkKehcHel5rjRu4FcQap f4YA== 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=3psUtytUo6C/8Z0JrCprvFcq0BsJKPsjqLf/EYmVQiY=; b=rKOheypZZWqQES01r2f1zBlGUVpRh8R9GC6NGIV3I1PoFJKvZvd2xJM7BCxexc+dcL cBhcLA2JNc9uEFmruZf0nVlPrN92aUWAUURNgx/mxhw8rpifOd8x0gNAzr5htMicCS5Q wmord15L+lX70hCJuvl/AWjA0FECVePTSo0haOeKrWN5KmL5ceYB4/l2sZ7lChQcT+5Q plhwhj4X2NTcp7kWqppOA0KhnKyxptjj5iF+2wfqlb3dYLa0j2UCTEbLuIB6Ozq2t2IV agBGISM+HZDbjPtL47rPX3PvZm3DsfPmlCc1VfkM0a0/QmTTKXIu9MtIwXBOTjacmZZA KLnQ== X-Gm-Message-State: AOAM532wgCQhjrc+BW7QkOacd9pL+HhOlW6tspsHr0ABCkxvLhJcm5Do oRYtRLI0FWvLNBFEl9ZyMAerIoPVEfbI X-Received: from tzungbi-z840.tpe.corp.google.com ([2401:fa00:1:10:8ce7:5b2:9787:1a0b]) (user=tzungbi job=sendgmr) by 2002:a05:6902:110b:b0:61b:3576:95d1 with SMTP id o11-20020a056902110b00b0061b357695d1mr692277ybu.694.1644986219311; Tue, 15 Feb 2022 20:36:59 -0800 (PST) Date: Wed, 16 Feb 2022 12:36:36 +0800 In-Reply-To: <20220216043639.3839185-1-tzungbi@google.com> Message-Id: <20220216043639.3839185-3-tzungbi@google.com> Mime-Version: 1.0 References: <20220216043639.3839185-1-tzungbi@google.com> X-Mailer: git-send-email 2.35.1.265.g69c8d7142f-goog Subject: [PATCH v4 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, tzungbi@google.com, pmalani@chromium.org, 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. 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