Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp427789pxx; Thu, 29 Oct 2020 06:05:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzlvEqld730r5oeRcYtwBymI8mSfGh0CLUWZyV4yLBVvzB1PFCarkdPm1+mVPDTeyCggRp X-Received: by 2002:a05:6402:22d9:: with SMTP id dm25mr3814833edb.182.1603976753635; Thu, 29 Oct 2020 06:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603976753; cv=none; d=google.com; s=arc-20160816; b=WrePd2rrfM7gax/iOwPJcEU47UqUFWowNJHMpfocpjaKhFyf0ZEgHJ1UuoHs1pp/lE Knm+NVmVRpEOgfK4HNB5xuDlYVMH8EkCUKVL7X72nbYSdbh2ZdqEkr6L0QpNUfXqlcJe fj1fndr4Vq1mGg+FqgyZ25ZrFW8mI7w3QRrJNcmtOj0nUpXbLIFROyLceK1gyNi2+SL/ 4Oci72qXWSrGa7TZeIPBTpnpCJK+anIqrSdLFPLuA5YdnFB3puao6ITjjOi3l5MBdbze g3WLJsNf9ue5eIsifKKtFgIqPssWs3YT+o5fNarSdE/3qHoW2bGVkIHu0JaR4k27JXP4 jKWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=nGj7iDM92NQVRuGbn+ozqAndmBV0qhvLbW0rauV5xM8=; b=rxyOk6gNvR+LZH+Xy1sOomUeucK5AcxFrP2YmtV2WxLwkxZiIu4Xj1ZAkEnaVpFNG/ g+ioP7AVUYOQa1RDxnfxjMQqFEdX4Q+WwicJawngZm8JQUVrpydatolGFOdCcpKYViIJ b2MT2l8DLJsGEoxHbBBPD1S4hwHJBGaeGvXMyRuIROOwLIv1y7rgcYQ7cvP/pJNgSlon h/BW3dvMoXnp5RrckSUYmEfzOmuaNCok7E2d5oB0YY10m8F1+Mh7SVY9j7MFBBlCDw++ Mu1o3Hr3ykXzHox3IzSOdNd7cmaYMcbRtqeCCi0PGu0j2zpoDLrGKx8d9Ht0Zn2DQHz7 GKDQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id da5si2399254edb.595.2020.10.29.06.05.22; Thu, 29 Oct 2020 06:05:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726505AbgJ2NDN (ORCPT + 99 others); Thu, 29 Oct 2020 09:03:13 -0400 Received: from mga18.intel.com ([134.134.136.126]:14589 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbgJ2NDN (ORCPT ); Thu, 29 Oct 2020 09:03:13 -0400 IronPort-SDR: TkP6MwqawPcDnjHFMMmoLIhkNfj7Cc9P4/5W839ZUi/OJCD1sRTOyF6MyRR8YgWRQZUYuudbpo p0MFzarfXkew== X-IronPort-AV: E=McAfee;i="6000,8403,9788"; a="156198413" X-IronPort-AV: E=Sophos;i="5.77,430,1596524400"; d="scan'208";a="156198413" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2020 06:01:09 -0700 IronPort-SDR: 3qgQPkOoGiuutHD8VQ1/Hu9BIIB3Y9S/rb3NSoV/a2yephauLRYags68xLj91KBtA06KyyQn7X q5xTzf5YHR2w== X-IronPort-AV: E=Sophos;i="5.77,430,1596524400"; d="scan'208";a="525500863" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2020 06:01:07 -0700 Received: by paasikivi.fi.intel.com (Postfix, from userid 1000) id E955220736; Thu, 29 Oct 2020 15:01:05 +0200 (EET) Date: Thu, 29 Oct 2020 15:01:05 +0200 From: Sakari Ailus To: Heikki Krogerus Cc: "Rafael J. Wysocki" , Felipe Balbi , Andy Shevchenko , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCHv2 1/3] software node: Power management operations for software nodes Message-ID: <20201029130105.GM26150@paasikivi.fi.intel.com> References: <20201029105941.63410-1-heikki.krogerus@linux.intel.com> <20201029105941.63410-2-heikki.krogerus@linux.intel.com> <20201029111303.GL26150@paasikivi.fi.intel.com> <20201029115113.GA2288851@kuha.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201029115113.GA2288851@kuha.fi.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 01:51:13PM +0200, Heikki Krogerus wrote: > On Thu, Oct 29, 2020 at 01:13:03PM +0200, Sakari Ailus wrote: > > These functions are doing pretty much the same thing but with different > > parameters. How about implementing a macro or a few, which would take all > > the parameters as arguments and return the function to call? A few variants > > may be needed. Individual functions performing different tasks would become > > very simple. > > I would prefer to do that as the second step, if you guys don't mind. > I think this was already talked about, but maybe only internally. > Those macros should then be used also in other places where the same > steps are being executed, for example in drivers/base/power/domain.c. Works for me. For the set: Acked-by: Sakari Ailus -- Sakari Ailus