diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-02-14 12:33:26 +0300 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-02-22 16:39:29 +0300 |
commit | e0d32775716508942657cc5778bd881b40659287 (patch) | |
tree | f62df74cdd370bd730c85750ce76104c157f8174 /init | |
parent | 1dd173fc96244d4b67f642cf90c29f21aa2b49b9 (diff) | |
download | linux-e0d32775716508942657cc5778bd881b40659287.tar.xz |
staging: greybus: pwm: Rework how the number of PWM lines is determined
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.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/3efd84ac03e7dc288f20b0de20b142b6404cb1fa.1707900770.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions