Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp269900pxx; Thu, 29 Oct 2020 02:05:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK5y4G7CeCX00TNWTSWHugNz5tQ2cL/xIuZzFttLMEboP6rCG2v37Vlq/m1KWdxpe1LkAP X-Received: by 2002:a17:906:911:: with SMTP id i17mr3027924ejd.40.1603962319433; Thu, 29 Oct 2020 02:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603962319; cv=none; d=google.com; s=arc-20160816; b=uWpLEaHVjPLX2N9tJObjw1TQOlOsyXcmJygH+drdBym6HxPiDlWtRPexgGCqXm8GuI PfbnfEMS1aBQYRAdtgDuAuBn+RQSs8jUJ3esw35htLBdtGTFN2pKh86OhzuYjVqKk1gj SNwSLux7J9SHOB2Ez5iB+c+Pb1iKmU5D9WN58oHVNbclcV6OC32zEf7HJ1H9G/IMblgv b3YLJaaJdDhClgpnjMV2CnpJDwwkHTUO0gdwSf4pZJAKruIfaNYc1EjZ0u0YNsG7jKto qEjMypscgXgrA8Kfo2arVmIucm61KdMnYHCus1Mfb0/62FRnXDQR+P665QJPLiUuoLOV FObg== 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=0pJyw5e2uVCaJHwgv8O5wRSAVHlgce7tiNX5svglHsI=; b=n1LGYgBiAPnNsCzO8HFGab1Q6czts/XzoWKNnemRyGSAY8RxIqrMjdB8xpVUlc6Hat prDTmXKS5hPCGdLLGasRE6FOv5x95KZQ8Gtk7zj1SdSefQ1978NarpxfJd+JEqbkbOiL +4XVtu2K3sH2ZuyEdkvPDuor5UyaF7ts6tpvru90WEWzKNJfGUn5RbV4rqISHG+s10sr VvSxMq6IRkKOJcZMXduY3FrKbn2T+CK4pkgJ2uSzFwTA2+Mc5zJPpIQN8CZhG0XdJvox jqhGe3sUFlTmIuwYEODY2dMpCblMsELLas+vPLI4+ItwUermHbGJVuGfC6DQLDzhYwOf MmGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ix2lmQl+; 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 r2si1062649ejr.265.2020.10.29.02.04.57; Thu, 29 Oct 2020 02:05: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=Ix2lmQl+; 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 S1732169AbgJ2HuA (ORCPT + 99 others); Thu, 29 Oct 2020 03:50:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732050AbgJ2Hty (ORCPT ); Thu, 29 Oct 2020 03:49:54 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3428C0613CF; Thu, 29 Oct 2020 00:49:53 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id o7so1667059pgv.6; Thu, 29 Oct 2020 00:49:53 -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=0pJyw5e2uVCaJHwgv8O5wRSAVHlgce7tiNX5svglHsI=; b=Ix2lmQl+DWYLKLA5is7LbnytJ0ADzwrgbCCN0XUD6Ufr2BzUCcTw5cpeujwfjaAs6J EJw+5iOFVfEBp1FclITejeT0AHVB2r8TcoQrzdYn956WgfLXmN7vPc9M77rCwHcfO5pH Fq3ePKfGkQTwcCnEwdyCdgrKcCLr/2xZ6WWiC8wujgufIHoeUWN4WyyW2+4SpSNsqj02 jRSym5jsnpgpw6JaQWwwhPhtyh9q64Fk8lPKC1x/pWR8tQukiHqRzCWdobhplCZaXRRz 1pw8QMGykw3fi6Atelwxb8PJwj8bhrjOdwimXM93Xtg61jcVeSKzm5V1RJ6FFX1W33gx 3j3w== 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=0pJyw5e2uVCaJHwgv8O5wRSAVHlgce7tiNX5svglHsI=; b=GHmnBA5tp3bUpQeE5X2funpoVR178YjaRVAWfgf5fE1ranb/cuTlwsV4OOTIYey7XL vvs6rJfS9xVbXcejxm6x90IzIt2Nr7SN2ufLmg1P9aHnr/2vBnos+r2m4vTQkP6ZI0Uq kU2IO16AlllGvFYSk5oLOn811UcrmbgPWog/yklBpVdboQNSMQ1Vw0pNsfh7HwfBlqIl wlIXfPn9Dy7HCNyNbX9UsipsMmjeR72ssvsQ9Jjd8V7cx+DpBFZEtj+Ka0L6OZXg/yTQ jw2sCMB0HkwNTWRNgGsae2R2D+xJiICizoXBwHkCD5rorUw55+sejbX7kJMZLHv5Ev84 ZOPQ== X-Gm-Message-State: AOAM533ANgUZyNi3mIp8m9D7VN9WYkR8tg3GNkeOTJnJAF0l0NNd+Fxi GnhOYTCaLqmua3L02EBBLvM= X-Received: by 2002:a17:90a:dc85:: with SMTP id j5mr3007974pjv.38.1603957793539; Thu, 29 Oct 2020 00:49:53 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id m23sm1619046pgk.84.2020.10.29.00.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:49:53 -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 04/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:48:59 +0800 Message-Id: <20201029074910.227859-4-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 SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/accel/mc3230.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/accel/mc3230.c b/drivers/iio/accel/mc3230.c index 46e4283fc037..b966922b9899 100644 --- a/drivers/iio/accel/mc3230.c +++ b/drivers/iio/accel/mc3230.c @@ -160,7 +160,6 @@ static int mc3230_remove(struct i2c_client *client) return mc3230_set_opcon(iio_priv(indio_dev), MC3230_MODE_OPCON_STANDBY); } -#ifdef CONFIG_PM_SLEEP static int mc3230_suspend(struct device *dev) { struct mc3230_data *data; @@ -178,7 +177,6 @@ static int mc3230_resume(struct device *dev) return mc3230_set_opcon(data, MC3230_MODE_OPCON_WAKE); } -#endif static SIMPLE_DEV_PM_OPS(mc3230_pm_ops, mc3230_suspend, mc3230_resume); -- 2.28.0