Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4559006rwb; Mon, 8 Aug 2022 03:17:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ZvXuOWwzlpUsOtcPR/d5FHThjogUs1+bYkvlvI6J8dIaYZNm16zxYxNfRosWFMPoKlRan X-Received: by 2002:a17:907:7e85:b0:72e:dbe1:7203 with SMTP id qb5-20020a1709077e8500b0072edbe17203mr13381996ejc.349.1659953871402; Mon, 08 Aug 2022 03:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659953871; cv=none; d=google.com; s=arc-20160816; b=DcsalL8xVnOs0dOI4q+u/OsOV8wqCoDj64uVBk0VPmpeJmtOlPeq6XYn2FU3VxeHqj CN2CZuC8zlKRbIRzRqthNSyuwK//+brhSHWjmo/xJvyGqTNNCZy14OrLL3CvZ5rfeWCE o7etT7aGG02a35rLzVrXwAMYUYS64gkEjqMWj0UIgpZ9KDIMWS1TrzRzX4zBah3g3ALL vkHHlB5izlEiN3z44W7XwF0WJC1n0PyRTBSnzSO1OQYYe9vFJ1zBZ5QhJMp+XzNDL3sP SLGThqHGiFEZGilJd6MsxTGdHv2qnNgbrQERS1guw2nk9yAjWPKA5olZeGDt3mkhsxJG r5zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xExDiNzjvGBll5feAm0Ok3SGRkY16fJNcNgVa/ZsGBE=; b=coQLa22SAZJFmLmR0lsZs25Xj3UsKfF+qJrkLpSpbDafQsECSugc0xO+RPVm1vh+ar 3x/Kf/ANurAYGAJogoBEs8tmenEc+WbyhZQlSHVi8jaN15kzuSfggVMTNFtovh6dipAb AJu5ttbrVKuMM9cnCknh13ay96ybxuBSCG8jl3bYyFskv+T4hUwqRzulAjc6FNpoM6kI ZbKNtmLCw9vwAh03NSY9saQU0pTZLJQyNoVmsPEtrosOndTEMY8WEvkiBlzwcTq+jVbE qmlVN1+T4+EkNB/+RIIevxKhRamOCgFUTTEEe3p8uEMPemCMgFXJ9grym6WfIw5hsUzl C7bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hhvSJv0h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bx6-20020a0564020b4600b00435b2a66c73si5695470edb.191.2022.08.08.03.17.25; Mon, 08 Aug 2022 03:17:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hhvSJv0h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242163AbiHHKGe (ORCPT + 99 others); Mon, 8 Aug 2022 06:06:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242095AbiHHKG3 (ORCPT ); Mon, 8 Aug 2022 06:06:29 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D46C8E0DD for ; Mon, 8 Aug 2022 03:06:27 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id f20so11894089lfc.10 for ; Mon, 08 Aug 2022 03:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=xExDiNzjvGBll5feAm0Ok3SGRkY16fJNcNgVa/ZsGBE=; b=hhvSJv0hFGZXDYIQFwSL6k+5gXSL/X8a3LGryvzm+aOX1Xf4Qk7/+IqJDC0vJo/6gh OsrKkZOWoU/yq/DDMqPRabVVaEHdxX2W4dULe7nPW4FLVjzlEaAKCxnw+iDSzZtMQQjo QwtA+JluOjck1UM72qaTjxoFHwmU1Ic1NE9IaT5Cb5X5JBf1knRnyrrsVliurueMDtxl roZ50yyhmbZgRd9fLAPaJeS4AYkDfeihvWk8KFShGqBnLcVcUtDDCAhJT6U1kfnr4CmG DOpQyRPPwXi8d+puo2X+Ju64R96Aj6AgAM+lD0fz0rwmTP2+OKEgAAJZ7EiAnhiRO5BQ zAHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=xExDiNzjvGBll5feAm0Ok3SGRkY16fJNcNgVa/ZsGBE=; b=e7YgWtf4L/erMssplBzFMsFIHVZ5GZAkvYSXzsyNvPDVKdIZN9B4EZEFyty7gks0C2 23p0yp+sQhXIPSNFHiU1tFw/rcXKUSWbyYDf+3eZCNKYk3y5gczAsGkqMiuWjfO4ppF9 A46N1dUcI6wU1P+qh5IpJDnziji4tohBCMcKYYVL6F+LZ+C4eRIWpFgKrz8/RNsvJRfv 5wNUzeZFeNN/En/Pifddj6TiA8BL9QKZQ+zj12jd6v1ixR96JIxseJjGok0H2oAqilC7 /KDon27DQ/b7cJgSiBaBIdgQ92ElJMgdRiHAdX93pxdS5932XhD9T2suKY7Ig8+dI5ER KxAQ== X-Gm-Message-State: ACgBeo2j48epkVM5zWD4vPpdTVGoqfxi0/LZsL/+GW9oE3wDFALnBa+i FTRx1OiggusTP9Bvrt7JlugbNA== X-Received: by 2002:a05:6512:3f0e:b0:48a:5edd:99b2 with SMTP id y14-20020a0565123f0e00b0048a5edd99b2mr5803617lfa.124.1659953186052; Mon, 08 Aug 2022 03:06:26 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id s11-20020a056512202b00b0048ce0a62226sm482724lfs.137.2022.08.08.03.06.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Aug 2022 03:06:25 -0700 (PDT) Message-ID: <471c8c75-5658-ff08-1c79-4b8f1f76f289@linaro.org> Date: Mon, 8 Aug 2022 13:06:24 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 22/28] mfd: max77686: Remove #ifdef guards for PM related functions Content-Language: en-US To: Paul Cercueil , Lee Jones Cc: linux-kernel@vger.kernel.org, Chanwoo Choi , Bartlomiej Zolnierkiewicz References: <20220807145247.46107-1-paul@crapouillou.net> <20220807145247.46107-23-paul@crapouillou.net> From: Krzysztof Kozlowski In-Reply-To: <20220807145247.46107-23-paul@crapouillou.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/08/2022 17:52, Paul Cercueil wrote: > Use the new DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros > to handle the .suspend/.resume callbacks. > > These macros allow the suspend and resume functions to be automatically > dropped by the compiler when CONFIG_SUSPEND is disabled, without having > to use #ifdef guards. > > The advantage is then that these functions are now always compiled > independently of any Kconfig option, and thanks to that bugs and > regressions are easier to catch. > > Signed-off-by: Paul Cercueil > Cc: Chanwoo Choi > Cc: Krzysztof Kozlowski > Cc: Bartlomiej Zolnierkiewicz With dropped Bartlomiej: Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof