On Wed, Feb 14, 2024 at 10:33:26AM +0100, Uwe Kleine-König wrote:
With a later patch it becomes necessary to already now the number of PWM lines when pwmc is allocated. So make the function not use pwmc but a plain connection and return the number of lines instead of storing it in pwmc. This allows to get rid of the pwm_max member.
Signed-off-by: Uwe Kleine-König u.kleine-koenig@pengutronix.de
Reviewed-by: Greg Kroah-Hartman gregkh@linuxfoundation.org