Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp271816pxx; Thu, 29 Oct 2020 02:08:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwak4QB6RjF5T6UqM/MJa8s+9eD5eH/ZnrmDvqebAB/XN/VgYqF5mNJDNRkGMCiuD/+Fl8 X-Received: by 2002:a17:906:cc50:: with SMTP id mm16mr3129828ejb.145.1603962499155; Thu, 29 Oct 2020 02:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603962499; cv=none; d=google.com; s=arc-20160816; b=cPQzq8TLrEorrfYZyQ2UUg5oPxTn3p/rHbowVczvaOeJaApI414BK8UeAJKMqpbdYA ZzjPkBenSzgWAeBAUV6sIzM9u0BJ47ErEYeX8qHSWHZtrT+RW/MvqT/Po11ODrHAmuSO ogbqpIinL9uOxckGA6gTKvvvR2ywZ7+K8JGrcSfCeDOrY0drNFRGBf0NG3mb7YjUsdOV az4QDOT/WROXWuGvUKsDzeBWkx2wyI3clgvucn4BJdnZF5+gZVfZMkj4sYBFTpMCzQzw LtmDUq2DIBQTBVmZAJZL0mlrCH8JaC1O/mJTUheMxeD6vytSSxYoCMe8SCWah290bMv3 wzAw== 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=XkDkKRB7/2lcKBzKiX53t3HQfs1gEjtZFJmelsymB+Q=; b=JcQm6f19omR9HerFhcs3L+YELGTnRf91txgAXGW0DByYD6suEKdtNQDqYJmO8Fe0CT 6lA7uraz9tPzbXksRXC7VArH6Y2X3m8CAD3t1qpPVneqXcs8Kbi1mmfkxxEGp43XaXZ/ mOs34R/zxmSzMYi9XEVGtAFwGe4yuYYwppv0qYEI7oMC9JeNJPe6XYK84MmrM/a2XQHy eBHyx9WmXeBC8hYKrOpZ6n58mF9RUKc12MreAPIpVlwMf+VpGoYMBP9mtl/UOLGI6r94 c5N8ZtQnJzUMuPVlGUZQcBG0RPb16tIUgxBP7rSiZAkyGxGQOu1KWrNNK58ZuViT+M2S mZzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mpFTCQ8L; 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 i15si1687655edl.249.2020.10.29.02.07.56; Thu, 29 Oct 2020 02:08:19 -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=mpFTCQ8L; 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 S1727373AbgJ2ID1 (ORCPT + 99 others); Thu, 29 Oct 2020 04:03:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbgJ2IBA (ORCPT ); Thu, 29 Oct 2020 04:01:00 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBBE9C0613CF; Thu, 29 Oct 2020 00:51:04 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id z24so1674123pgk.3; Thu, 29 Oct 2020 00:51:04 -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=XkDkKRB7/2lcKBzKiX53t3HQfs1gEjtZFJmelsymB+Q=; b=mpFTCQ8LPy72Xr802aGpI0eZ1f4K1YI2SgfPo8aEX/BbTYD+f6SZcEIZqkDRepyWtK dn68KDDehULYSdvQ3IvItCo9eVahGo289q2Q3b9HwMwjxjtNcbTJytK/JJRj9vmrr8k6 MkGf3iICdyq89omI0M7yLNpMikdW7aFOu3Hy0rDQVFI3kjmEnjAb/ucznbDci6gWkcjn 8WnY/UkQn2/7hlFutW8Obf1O2nlkFCWrRSFlRtuwDfU81wKHghVCjmNffJye2DQRdPG7 z037c4CQnb7zHHAmNoDmoQjzD1RW95BAtUhHo5zeqznAQt6CKSZL/ma6XoL7OuN/ddZr NPXA== 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=XkDkKRB7/2lcKBzKiX53t3HQfs1gEjtZFJmelsymB+Q=; b=HjjynqSqqrg+Ue38w4LdnrkiH8Km3mPV7Q9qJ4Chbaqi5DkjBbygH9knNmc+ofhJwD zOQ8clcOKs9b62ZHFSx19YjUrH+10TMKLlgosduySHi7lBw1yebU6ouc4gnj3Mpai++u gog3by6YwTNdoEzULbDzlEKujh0b2OnyTUCRW3hpBeUTap0Ocuga3hPdGS4jsh+GZ32E IqVLc/O8Y2Pc63BXdgTj+h9tZrnLsk6Ko7AGt74Y4TeQJSa0rqu7Iihzh6c8KKuH4rCM JmsYA5WbmhWSllwat5icLcUWnu0KpARHlNOISnabASrxzaOcQU3dXo3ATJfPpxc3Od+z cb5Q== X-Gm-Message-State: AOAM532OPhpV8pC1iPUamdNG9l9ziA9PiJeXgFKUYUflrp8g7yRoDtmg 2CMWN9ub08f89Wzvh1D++mA= X-Received: by 2002:a62:c181:0:b029:152:6ba8:a011 with SMTP id i123-20020a62c1810000b02901526ba8a011mr3171136pfg.2.1603957864450; Thu, 29 Oct 2020 00:51:04 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id r19sm1738735pjo.23.2020.10.29.00.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:51:04 -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 09/15] iio: adc: palmas_gpadc: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:04 +0800 Message-Id: <20201029074910.227859-9-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/adc/palmas_gpadc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/adc/palmas_gpadc.c b/drivers/iio/adc/palmas_gpadc.c index 889b88768b63..76bafa5a4bf3 100644 --- a/drivers/iio/adc/palmas_gpadc.c +++ b/drivers/iio/adc/palmas_gpadc.c @@ -643,7 +643,6 @@ static int palmas_gpadc_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM_SLEEP static int palmas_adc_wakeup_configure(struct palmas_gpadc *adc) { int adc_period, conv; @@ -812,7 +811,6 @@ static int palmas_gpadc_resume(struct device *dev) return 0; }; -#endif static const struct dev_pm_ops palmas_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(palmas_gpadc_suspend, -- 2.28.0