Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp505821pxx; Thu, 29 Oct 2020 07:46:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRqAREoYcSlJ8PG9BRbQymtTQXbyxxftdPHP/W5uLVbHeCgL5sK0oQdGNvWQKkCy2h30se X-Received: by 2002:a05:6402:2073:: with SMTP id bd19mr4214547edb.127.1603982787521; Thu, 29 Oct 2020 07:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603982787; cv=none; d=google.com; s=arc-20160816; b=o/sC8hu+D2L5n2LH55nPistflFT5G7LwGQ3/mPJQwuZhSxO+KL4qWuurGkKo2k9tx0 jd/AhShKaZkblsFweRoPkTzZsQkiDFU+pL/nAbPS5zODpeW6dbmeXkNpKLHwcjzJiSqr S3CFfRPfiUXsy2T68PJGxEhVyMXi3oju0bc+dVtnzxNpyrWuW1BJ/JJ4u6/Gu5doifrC 9hD+9tKzioe/YgxJHQC2zfWRW+4VWX6Fgg+45zUg3YLoQuzzz19Vm7oJ0WVhogy9GIxa ZLeZI+tTsemBgz6JYeISQOtWYIHv329IC6zYT7NMFspn8CNOgMoXxU8M7oGZe0UF8Jws 3zvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=F2veZZJSq3DocBjLKyefRgKHa5wllxVXQll/nwjlSWk=; b=jh+A/UUfLNVIzt2xATlpmsPtG3OKxe8RM/FOgJTVaW/w194bp/MQjNlZznGiU8PCA9 mh+nkkgAZ5SlTr+Xkab+J9N4p6kvjY/Kd/7HtFVfmD2GPmaSUSPhLexQQZhgyKA3Xn09 AOPQ/63oxZ/J4TN8mVokfk2MeXvYyLTP3/Pvr1HvEK+F8O3qaBu6+K4EorEkoTu6L5Qo 1TdjMlhGoN2AYJLIjlnBz6YBL7Coa2QAoP2sHhMLkW1gGfG1XVNPoPj5t06wdDq9TOhY PLzHVEZsnj3aG1ep/3G0cI5L3sutvcgi4tXp7uoH0cmpbEWfeiLZwXxn4NJQFqSXyU0y 6VNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Op8SBRcP; 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 i20si2130245edj.323.2020.10.29.07.46.04; Thu, 29 Oct 2020 07:46:27 -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=Op8SBRcP; 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 S1727889AbgJ2OoN (ORCPT + 99 others); Thu, 29 Oct 2020 10:44:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727862AbgJ2OoM (ORCPT ); Thu, 29 Oct 2020 10:44:12 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5174CC0613D2; Thu, 29 Oct 2020 07:44:12 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id r10so1403193plx.3; Thu, 29 Oct 2020 07:44:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=F2veZZJSq3DocBjLKyefRgKHa5wllxVXQll/nwjlSWk=; b=Op8SBRcPqL/SZEVejO88Styz7/vwYq3Y9GrhamWquhddcSmFRkXJGuLx8Jwo3n6Zb8 y+JR9bsFe9Pm2pg46VvIjMoZ0wKtc3grHT5QnHNK9lDDzvNQ+0+D2T7uMMMbfZGydqC1 f+l7ZyxQCjb8opFWDdln5C0/2SuADifVj9UO+qGkRCkjk94AtkWPF3poI4JmCVVnWVmo uB5ZbdZh4YKRnqwsTiFryhIo8aW4/1TOb4poBEdWR2zO3O+XnnQmbrTQaXOcIivMi1Ii rvc3HJFfritwib9V0MkWWbIx39gB5IWBPN7ccOT/UO8HEZXTsKhNWRoBwdoAHkkeqLiZ lAKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=F2veZZJSq3DocBjLKyefRgKHa5wllxVXQll/nwjlSWk=; b=j5tMYd4PE72NDzq+tuKvtTYpMKwwqppzXPtIl9UXC3F+cpSNESFUiN/YHXql6NjE1c 3ISI3XHf3KFJag4GG0e4xEVdJrFY4qaeT+oETKEL/IgZKglj1D9eZx1HAZri8xCksL82 sFMORP9I1V7tsVDGWLbLPAxnJ+nPHg7OSuXUc77KU9gX7TJ31Degao+3OAM0VCDjKbk4 uw24GmFABIu4vop7MiC1GfrnXgkiinDmtVL1mYjk4eaX1YTU6OafWrK6vO9FM7Z9riGv aWKYLamjQt2OGNBSfelJQd4qraeovCbzk3Eg2h07huzVk9+BQcq86KfiD2PtuC17B0BU JLSA== X-Gm-Message-State: AOAM530pN+DCP6vIbop/BV+GRHkLtyTWLQsjK8HP6XhAnM4c2/PfqRbH 2Ch9cdtgowX/bWtpF0yuuogTreq0XiL5IOpz X-Received: by 2002:a17:902:968a:b029:d5:a3a0:3c43 with SMTP id n10-20020a170902968ab02900d5a3a03c43mr4384648plp.70.1603982651300; Thu, 29 Oct 2020 07:44:11 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id 194sm3149912pfz.182.2020.10.29.07.44.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 07:44:10 -0700 (PDT) From: Coiby Xu X-Google-Original-From: Coiby Xu Date: Thu, 29 Oct 2020 22:43:32 +0800 To: Jonathan Cameron Cc: Lars-Peter Clausen , Peter Meerwald-Stadler , "open list:IIO SUBSYSTEM AND DRIVERS" , open list Subject: Re: [PATCH 01/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP Message-ID: <20201029144332.bnaoeztlydmob5jt@Rk> References: <20201029074910.227859-1-coiby.xu@gmail.com> <20201029144007.77d967b0@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20201029144007.77d967b0@archlinux> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HI Jonathan, On Thu, Oct 29, 2020 at 02:40:07PM +0000, Jonathan Cameron wrote: >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. > I will do it in v2. Thank you for the suggestion! >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); >> > -- Best regards, Coiby