From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C5B917F8; Thu, 7 Dec 2023 02:06:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jIJZd/Us" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C2B7C433C7; Thu, 7 Dec 2023 02:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701914788; bh=QudyBCcyUGVMqpgzaWlXkbqLRvWGAeM0uhNwakY1NMM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jIJZd/UswEP6oGmOQ2npG3k0QC2r7hBuALHtDDcOVDABfc5gIefZ2cfRJikD6AGaM +LqQnrXcFUzdTEZ2pteb7LmWITpz0c+RHlhLfXinbRmRD9s3SUdJeT/ofTvk0ldnuZ AEWJjI1/z37n+1m5EHh5ibQoL4MebmU26IgXiPzrQoc294maHbAnFVvjANAagkSQDO buyw1m/5n/fSEm1fe7vK/XWNyUEYKqBQeU2Q83mhnA3GY9VRERWLa6KhvonBM+PL1p SyaonGwCLPYZf40VRB9qe3tAFaInpzavsJ/vz7EqlcA9P1YDQzqKJzyPF30APEbt1F jshX15C98Nqwg== Date: Thu, 7 Dec 2023 10:06:25 +0800 From: Tzung-Bi Shih To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Thierry Reding , kernel@pengutronix.de, Benson Leung , Guenter Roeck , linux-pwm@vger.kernel.org, chrome-platform@lists.linux.dev Subject: Re: [PATCH v4 006/115] pwm: cros-ec: Change prototype of helpers to prepare further changes Message-ID: References: Precedence: bulk X-Mailing-List: linux-pwm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Dec 06, 2023 at 12:43:20PM +0100, Uwe Kleine-König wrote: > pwm_chip allocation and registration is about to change. For that the > number of PWM devices must be known earlier in cros_ec_pwm_probe(). So > make cros_ec_pwm_get_duty() and cros_ec_num_pwms() independent of > struct cros_ec_pwm_device which is only available later. > > Signed-off-by: Uwe Kleine-König Reviewed-by: Tzung-Bi Shih