Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp504298pxx; Thu, 29 Oct 2020 07:44:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCeTXQ64Iga3ovJkMvPQwhAX4lixGEagE8hujjYOteBdqUaZJbCdlbj66A/gPjZej02LKA X-Received: by 2002:a17:906:bc98:: with SMTP id lv24mr4304140ejb.545.1603982663190; Thu, 29 Oct 2020 07:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603982663; cv=none; d=google.com; s=arc-20160816; b=jm+t4b3KxjDSbnqWzrDSMnZLdti4XMJ36gbVU7xHIxd3Jmw6m+RWq9pre7W1Q2sUGQ W4diMF2E+erq8oRjYbk0OMrPXhwtHDpK45GhMZ1cLbFMNuWUGyuIkZLrTKXn1tSNa9KA x4W3VNQIARuXVi7wdNwea0qqmdMaZe+p7xcoS1IyKgCOCz5QgOrRYoQ5otfyAfhrVSxT F+RpgmDrDGg7eNr+PX0xtDnsUYLK4uMouxim9mKMlJnYWlRpaNLd6m1uZclrhZH97nx3 ka8LED/vc6LH6fLJA6xKJ3ivF1B2asc5Cyvh4NLwNDsuQikNKIWajEl/aM1zKwvhz1Bw ufYQ== 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:subject:cc:to:from:date :dkim-signature; bh=d/f6Zww4NHJDHTsZu0fVYjdY5VHrQFlffMaQj270xME=; b=cGHmSpc66g9SAz+SSahmyWpNbhbEmlOJJn24wPmLmE7HXLwqEWEYGmAW+5VjQa/Xv0 +2Lr4v0BMyQl4dNwCFl+sS4w6YaJ8cmyegAO1I1BOqxH4StkS5EuuQfXu5OipA64q1cP qPVzatbmHwco32FbOCP1vVmE9IPULNpTTGZlTdXwnSBzIAuhaqx5u8o6vRxQ9R0jI7zk vEmzWxrEhVlyU8TSz6ysDCUnjLtWfg+aFe1U3G98/SXJ0Zknj977nld8c/AX92ObWv2v iLwwNWq+nI/0V1aoTuPzVf8MTwDB2lVV7BHT66Rl1cZD1iv5C9LHEHvWY9l5j8+xWdYj UR1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WUalWVfd; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r7si1934122ejc.705.2020.10.29.07.43.59; Thu, 29 Oct 2020 07:44:23 -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=@kernel.org header.s=default header.b=WUalWVfd; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727694AbgJ2OkM (ORCPT + 99 others); Thu, 29 Oct 2020 10:40:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:55642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725940AbgJ2OkM (ORCPT ); Thu, 29 Oct 2020 10:40:12 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6C85020838; Thu, 29 Oct 2020 14:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603982411; bh=bQCsa4tywjj3qn+ltSe7J4RPmQOxSf8VWYxqoPQig6Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WUalWVfd3F1cqzet3Uw+4PmoFYBgo2ng6C2FTDryDKomIsEighYI6js+8rzl3xWTr kWym88BhxNp0iZ8eldM2NFQyhtjYPSQcMruCSMOm+yUtuXRVjlFRRxmjzCAPhRAQta D1nmQccmmFnSmZLQE9UVR0++1U4Qv3/78+rQw0sM= Date: Thu, 29 Oct 2020 14:40:07 +0000 From: Jonathan Cameron To: Coiby Xu Cc: Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: Re: [PATCH 01/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP Message-ID: <20201029144007.77d967b0@archlinux> In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Oct 2020 15:48:56 +0800 Coiby Xu wrote: > SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. > > Signed-off-by: Coiby Xu Hi Coiby, Please put a cover letter on your next series explaining the context. In this particular case some of the replies you have gotten are general at it is a lot easier to find these sorts of things via replying to the cover letter. Jonathan > --- > 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); >