Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp269473pxx; Thu, 29 Oct 2020 02:04:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS3OqXF9GvbnkDsZm1UQIqFLeU5a0ObkZgxfWZO15p/X6jlgtUDjZeo1mZn6N5+q41hqlj X-Received: by 2002:a17:906:5e18:: with SMTP id n24mr1014329eju.260.1603962278858; Thu, 29 Oct 2020 02:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603962278; cv=none; d=google.com; s=arc-20160816; b=PZh/JWDGrWyhbFyHY01fIXqSN3k9lLWQaOOmpV3+4NbXKgWUJlYkP8JCD+MF+6Y05D ONPq7Dg6ETXOj5RKxc3Pi7YmZC22wz0wzkSeA5f4uiOsnG8gjSmo5WZGuvShlupRMmb0 du03H8byIFqXfnjvqKCSRpDPA2Aod+n6F8VAbq7KsIJS2fEptChOhIxYsh2D0wyT+hf0 /TB4hVPm7fTmxkbROXqx1QWFB0ujZGNaZgFOjzdn4lvtmHtTi2GpyGqO9koIzGvJGZ0+ TJ8RxaEbPPLrAHYDgodRFDGZ1McYVAN5T56XfzY+mcb3QXpaGMHbk1yYuQsy7KMpuqYY Fxkg== 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=6QKT0uDPiR12AaND+XZJ9++tzKNk6nVLA6Y08gKrKNM=; b=axaiJvoS035QLr83WCY4AtvZPt1HI8qs2Wt3x5X5R3p9mWxwSyWuaYjjSU4pV+DuWi 84KYwzGzj7Pa9jI5gPIy0jVnMzYv0asIrH0YsuIGYbAiEa2er2fn/LQapX/6ZJk8HJKb qTuCYDdD0BAsnFC4DeJVxjm3mgel02u659bHZn6zmUpfFY+yEao/P/HalmVtnIMZZdiW jkeOnhZQOYrUUuBfP/gKhatWi4EfgkEN7Ls7KTPkr5GXZ5eBz07A82dqKHAphh/5WpKw NZ6kLfVvlhiNQ3aHnkKE7N9Msropv365zLMM7smiYyxJtr3lYziaBO40mhmL9UTy3SVG pDBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X2eKfrxr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si1521225edw.131.2020.10.29.02.04.16; Thu, 29 Oct 2020 02:04:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X2eKfrxr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731203AbgJ2Hwy (ORCPT + 99 others); Thu, 29 Oct 2020 03:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731164AbgJ2Hwj (ORCPT ); Thu, 29 Oct 2020 03:52:39 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D862C0613DC; Thu, 29 Oct 2020 00:52:01 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id y14so1639924pfp.13; Thu, 29 Oct 2020 00:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6QKT0uDPiR12AaND+XZJ9++tzKNk6nVLA6Y08gKrKNM=; b=X2eKfrxr1XpevgR1taGe1YeeLQW1y6aWkGVCUfn81sB5nS3ZSszSQ/Vlcrkyyimuit l88GKRHFsLq1hruSdmhoCU9MWBOtfD89wpUgfdTKfucCfS5H13XUCyV2b7YxG9NYKZrY PCfgxW49RzmhNA8yhZcIYbgDQuxasyX6pAUxibtKmk1SVJQN0Wd5yD4Y5hL+MKiyVErd ULyEaBCSAOgwNU2t8uMBgcXfO8faDtat1zVlH/bO//nxC3OhHyunejghPzyeB7Tp6hOz lywAZ4kHiCfe0Qb4EQCQgxgGTgu1vuVJZK8fKjG3bNmuHKlY9g7G7mcJ8azbIxDHLV/l K59Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6QKT0uDPiR12AaND+XZJ9++tzKNk6nVLA6Y08gKrKNM=; b=aftjprGfhUIibbu581knBQY6F9Cc69hBErIrpFY5tuUfNfh+viwLIZ+5Ngg0BHI7ao +9BFoM7rEjSOifoFoqgxRbKmraWPxO3EMsy1Z0FfQz3VQwnk6VFS8rTkndNXqzVLOBkD 3gwd66sF6zTiDWBo9db+snNeBfDh4NETdV/EifmDnm5zK5PPxu9eBcMM/fpa+cql+HY8 /QxHE+b2WXGL5mXx1fbB6fSrg9jAMgraWLyz8nhCeFuaEWgQ6kqE6GKIPSTGmx/4pL/q 64FskAP/V8NJFd96D+EyfFPrZE6FtBVy7ybuQeEQtBUoC8trrpBICrPtlmaV99X41JAA 8TCw== X-Gm-Message-State: AOAM530SX3pUOPv71/r+30WgNX22jfdsdO6cGVRBB5wfQ8WnTJS2jH0l nVnYW3s9xH9XWrQGzzLJIno= X-Received: by 2002:a65:5ace:: with SMTP id d14mr2946530pgt.323.1603957920912; Thu, 29 Oct 2020 00:52:00 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id j20sm2042396pfd.40.2020.10.29.00.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:52:00 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 14/15] iio: light: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:09 +0800 Message-Id: <20201029074910.227859-14-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/light/pa12203001.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/light/pa12203001.c b/drivers/iio/light/pa12203001.c index bfade6577a38..7737d2c8f0d5 100644 --- a/drivers/iio/light/pa12203001.c +++ b/drivers/iio/light/pa12203001.c @@ -417,14 +417,12 @@ static int pa12203001_suspend(struct device *dev) } #endif -#ifdef CONFIG_PM_SLEEP static int pa12203001_resume(struct device *dev) { struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev)); return pa12203001_power_chip(indio_dev, PA12203001_CHIP_ENABLE); } -#endif #ifdef CONFIG_PM static int pa12203001_runtime_resume(struct device *dev) -- 2.28.0