Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp269053pxx; Thu, 29 Oct 2020 02:04:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPzRcMWmsYdI0xoUW3AuRWvzDcJxOjldlZIpjxm3I8Y6WjMPM1iuM14k6rSBQOoEkLsmun X-Received: by 2002:aa7:d9ce:: with SMTP id v14mr2909055eds.203.1603962242323; Thu, 29 Oct 2020 02:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603962242; cv=none; d=google.com; s=arc-20160816; b=imGD1tB2lu/kGuG/MqCZz8c2KdX5alToqBzAF/O9ZeEbqQNIMV9rLv1jx1bmCjj4wH JGXbupw6OLWdOXubr9QKdKEOdZB8uti3vdIj+hx2By3B9M77HpbDkHAcctIsnYXBOQmh 44v3JUiN3ev2ErIVGG/R+OPi6a3vsT4de3sGznmCu8zhCiCRxq2TgQkDe4l4bWJ/+nOr Kkvz+B0QrUavvuy/42yPI2BMy+pxO/+CwCOsxDVE6MvYi46Rq45rTvNNXA7OcRDcy1yc N6gG/IBsv09Y5EnwL5gArROTVLGPsPUVeIXyf7IxhS+X8NiuUZkNjdhZKjh/ArZfwig3 fR/w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=CMlFtGrdeVtaOx7nt5ZPArRY2VyBCH0dW+8eWG0qLW4=; b=ZtHb94Sc3UYutJSRItokiM8TL75ClVf+DO06lxmfocYrJWvadf/dSz4OOsjJVuvZX2 YGcCzVRR4z5MOXPQfoEPj2Exv6FekwDyA7vXY5XmjdndLoGAvZWaWaZfYpGN+Gk4uPy6 fxAtc9jrM0smD+4Y2O18orLRi5Sp/6rsaqgpyMR2XZ9NyGYOLgUU8zVWfUvhyj7KBgeU oUsQ7mYWIlg4Dn2xpRo/6DYTwUmyoS1OAevZQj75p89iiIuObyzFrt3GBjaf0Hl026Ep eSkzCKr5IvEpmyX36PawBIlUlN67g62KGdrWSjQCNjgvVmK/GmjmwnPzKpeLao5yd6db z00Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HvFCJ6ar; 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 df7si1919252edb.283.2020.10.29.02.03.40; Thu, 29 Oct 2020 02:04:02 -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=HvFCJ6ar; 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 S1731771AbgJ2Hte (ORCPT + 99 others); Thu, 29 Oct 2020 03:49:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731857AbgJ2Hta (ORCPT ); Thu, 29 Oct 2020 03:49:30 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA8CCC0613CF; Thu, 29 Oct 2020 00:49:29 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id h6so1666744pgk.4; Thu, 29 Oct 2020 00:49:29 -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:mime-version :content-transfer-encoding; bh=CMlFtGrdeVtaOx7nt5ZPArRY2VyBCH0dW+8eWG0qLW4=; b=HvFCJ6arHGB/fbzycTvZdkLR6Xp9z2jfSltOBnO96Z18/92E6aFgxyuguq82Ti3+NK 4k4bFP236wuKqrDH4WCE1n8+TxMiSg12mHN8EiNzvyXGclE2fejGINwDnzoXz2lzZKMB ZfCVsVXuhSn1xqtTOwpiTGEhHyCJcPAgNXbwfN0bEcjzrwwO4h+azi4V0WSRPZD3gh9x /aYOmFS4/u7SIbgJrvONi1XJMYXSB6fzv7waAAas2p6PQVL7IQ0ePmdvFIWPbP+2HDpr Al6q3bMnu4L+h7NiXPy2B10ohFfgPMlYRqFPwpWylW0ImRF5Dwv70uuEai+FqDTgZNeG 1E8w== 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:mime-version :content-transfer-encoding; bh=CMlFtGrdeVtaOx7nt5ZPArRY2VyBCH0dW+8eWG0qLW4=; b=GrIIp5AZm7Na59+K1mtENBvPRuNixLrSJBbtTGNwlZxfKZhyLN7ebDnbOoOfIFwCDW wPbk5QYSgWZ4dSe9h8IF6w4aG7xXAyG0K/4L/iN3EpcL1bbeYwX2DPN+5jnn/Rl9awcQ mqLO+CIo4WoY0WTm6sEUpZPR+J7egWFQF110xA9G7WbnHMCWgXS39aY0NjHfEglc5XPI Yyiu/8nBzgLs+lzLxSL5jpfs63EhyFLuzzNVN/WbintLnrzVt4x9DsF1fmpSg5rHU8/w vX7r/XpbHnyqhkaZsIMUnKh/98IJ1tDl96PXhEzwdXw796sAN/Ojqv/tXmMtvt/5yRy6 an2Q== X-Gm-Message-State: AOAM533lgL+p8cZ17zolzGl6Ua8AfkMFziZVHG3G7YtnUkR59Cic7EdS YCs0Tmt8U4v6dwIanBnbOJ4= X-Received: by 2002:a17:90a:d30a:: with SMTP id p10mr2972316pju.15.1603957769401; Thu, 29 Oct 2020 00:49:29 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id o65sm1684688pga.42.2020.10.29.00.49.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:49:28 -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 01/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:48:56 +0800 Message-Id: <20201029074910.227859-1-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 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/da311.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/accel/da311.c b/drivers/iio/accel/da311.c index 3b3df620ba27..55d4891556ca 100644 --- a/drivers/iio/accel/da311.c +++ b/drivers/iio/accel/da311.c @@ -263,7 +263,6 @@ static int da311_remove(struct i2c_client *client) return da311_enable(client, false); } -#ifdef CONFIG_PM_SLEEP static int da311_suspend(struct device *dev) { return da311_enable(to_i2c_client(dev), false); @@ -273,7 +272,6 @@ static int da311_resume(struct device *dev) { return da311_enable(to_i2c_client(dev), true); } -#endif static SIMPLE_DEV_PM_OPS(da311_pm_ops, da311_suspend, da311_resume); -- 2.28.0