Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp202296rwb; Tue, 25 Jul 2023 14:26:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlGbXLYlEy/3GVCLFjTo238IGqp3SRf+D6SOuOx3/tnv4E9ao3y2mjskWvIG8m2eQLduRis4 X-Received: by 2002:a05:6a21:a103:b0:12f:c61e:7cc3 with SMTP id aq3-20020a056a21a10300b0012fc61e7cc3mr221497pzc.38.1690320414108; Tue, 25 Jul 2023 14:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690320414; cv=none; d=google.com; s=arc-20160816; b=xOUiAGtRyXWK+7DB4rUEiw1DUpoSz/pXS7MAFhpiv/Mr793eOkMc0RYevYU6RaL2ni aKO28hYsJGlRvYHcGMqZlPgqbm8LxSebhvcg2HcBJfSSavzyACJ4xNMsn4GH9bcLA5HV ucW3ypCBwsGJHNkesup2JTi9fhrkxovICj8PF/0BhU1UUdPKYIfSgVK7sUtHTjnN446K gfXHUlEronUQHB7iXhyKvVdZKqCgbGY4ESpXItnBrb8mqnR15dXvHvug2z+rOJLXv5SB m/viVbeAeAzEpduLdF07WoHag0vNOqv9v2tE1/vQnVXWQoYETsFbj1wvk684/bIX8kp+ Vg2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Tppdylk0o3RU6iRFgC5acPR+he8rkEb+eKspBj7RST0=; fh=l9Sxp0WjWxoPPBlRLV6ri41IHQAwx7j1EblxKJXOsZc=; b=l+rm7QJMLNlpR5qdLEq78+L6ngY7A+82hIWMbebGGFjRJcZaeVZMxQ6fiQMAB1eSdO mTDgggqs03LWVP1oSMHTZ/+O7/DLnQ+nRGEl0f5NAygiSts53qGRCH8PFEtRmYNYNJtS sGYFRXMRTdiUFyBlcKTr9opBn1PIPE5j8z51MNaAfVxfI7Iiy/GdjIikbDq3Sd/q3fiP clsQ2K9Ahl3sQfiS8n5vJXryDgnfxJBtidzEJuVoJf80NW80PdAFNDLZSW3N68TVz501 KXHl4l1ru5qERra2Wp0nxitlTWMqrBwKzkyhwlkJV+IJj7wB2kjApc+0BDOR2Wx/ENYp Z4lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CDswuo0P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be3-20020a656e43000000b005636b4c440fsi12621687pgb.52.2023.07.25.14.26.42; Tue, 25 Jul 2023 14:26:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CDswuo0P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231339AbjGYUhV (ORCPT + 99 others); Tue, 25 Jul 2023 16:37:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231230AbjGYUhK (ORCPT ); Tue, 25 Jul 2023 16:37:10 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC6801988 for ; Tue, 25 Jul 2023 13:37:07 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-55b1238a013so4216754a12.3 for ; Tue, 25 Jul 2023 13:37:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690317427; x=1690922227; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Tppdylk0o3RU6iRFgC5acPR+he8rkEb+eKspBj7RST0=; b=CDswuo0Ppz/RMLI26l0suYt7iqnZQQL9jsIa7tvwwvzx5N2EWZMkh61eSE4a3jgY1L RyUarTsCyibpS4rymF0dFRninecA2fWPvhT+ttJQqlJQC9wf43OfkU90OE14LY4hojeK VSljfpYLBp6w/EA/YeVmI046LSOuunRgKG6OA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690317427; x=1690922227; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tppdylk0o3RU6iRFgC5acPR+he8rkEb+eKspBj7RST0=; b=hS78ZcFMHs5FGBiqRqCAhk/yg+PWst1isxMMYXuj7BoOOUCZTVcSpfh0FNrWFHtw4W 82vzwyfpCy76JuaVwVseDc0LAK03tRDbV//WOiOM+vPwty8njLoMXb3ssdCGXYnG1pI7 N8DVThB8ZIaMUWk2cFXQT2aN3xSfXLfldtG2iS9wIbH5WvMR95JTVvqIs+BsdIAaVeQ0 XMbqKQAvYQWJ9Wcg4v33CjtYpD9IL9xZqBjDBXGSNWEpo6tEP7LoEMmE8gbi+3q6zpe2 c7BV3nrlFW4JFH02Iifgdl9eR7jwuAUvc92K1B52nWRWW5u7qu9q6Q6mSKO0aPLMWb7U xs+g== X-Gm-Message-State: ABy/qLZU2X4Gi1Ag/Nb5yGDvgxXcHCu7zFTXXwjlCkiJQEO/acHBvbix xATqGDYefTtrgKYl+IfP8Serdg== X-Received: by 2002:a17:90a:d58f:b0:267:f9da:4611 with SMTP id v15-20020a17090ad58f00b00267f9da4611mr266815pju.14.1690317427135; Tue, 25 Jul 2023 13:37:07 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:c363:4681:f5b8:301]) by smtp.gmail.com with ESMTPSA id bg1-20020a17090b0d8100b002676e961261sm1396951pjb.1.2023.07.25.13.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 13:37:06 -0700 (PDT) From: Douglas Anderson To: Jiri Kosina , Benjamin Tissoires , Bjorn Andersson , Konrad Dybcio , Rob Herring , Frank Rowand , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: cros-qcom-dts-watchers@chromium.org, Chris Morgan , linux-input@vger.kernel.org, hsinyi@google.com, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , devicetree@vger.kernel.org, Daniel Vetter , yangcong5@huaqin.corp-partner.google.com, Douglas Anderson Subject: [PATCH v3 05/10] HID: i2c-hid: Switch to SYSTEM_SLEEP_PM_OPS() Date: Tue, 25 Jul 2023 13:34:40 -0700 Message-ID: <20230725133443.v3.5.Ib2a2865bd3c0b068432259dfc7d76cebcbb512be@changeid> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230725203545.2260506-1-dianders@chromium.org> References: <20230725203545.2260506-1-dianders@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 The SYSTEM_SLEEP_PM_OPS() allows us to get rid of '#ifdef CONFIG_PM_SLEEP', as talked about in commit 1a3c7bb08826 ("PM: core: Add new *_PM_OPS macros, deprecate old ones"). This change is expected to have no functional effect. Signed-off-by: Douglas Anderson --- (no changes since v1) drivers/hid/i2c-hid/i2c-hid-core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c index efbba0465eef..19d985c20a5c 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -1085,7 +1085,6 @@ void i2c_hid_core_shutdown(struct i2c_client *client) } EXPORT_SYMBOL_GPL(i2c_hid_core_shutdown); -#ifdef CONFIG_PM_SLEEP static int i2c_hid_core_suspend(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); @@ -1138,10 +1137,9 @@ static int i2c_hid_core_resume(struct device *dev) return hid_driver_reset_resume(hid); } -#endif const struct dev_pm_ops i2c_hid_core_pm = { - SET_SYSTEM_SLEEP_PM_OPS(i2c_hid_core_suspend, i2c_hid_core_resume) + SYSTEM_SLEEP_PM_OPS(i2c_hid_core_suspend, i2c_hid_core_resume) }; EXPORT_SYMBOL_GPL(i2c_hid_core_pm); -- 2.41.0.487.g6d72f3e995-goog