diff options
| author | Biju Das <biju.das.jz@bp.renesas.com> | 2025-11-26 10:42:48 +0000 |
|---|---|---|
| committer | Uwe Kleine-König <ukleinek@kernel.org> | 2025-11-27 09:58:07 +0100 |
| commit | fae00ea9f00367771003ace78f29549dead58fc7 (patch) | |
| tree | bc2c856ce7bd05ea5aad8e27414ec64f91f30e47 /tools/lib/python/kdoc/kdoc_re.py | |
| parent | cda323dbda76600bf9761970d58517648f0de67d (diff) | |
pwm: rzg2l-gpt: Allow checking period_tick cache value only if sibling channel is enabled
The rzg2l_gpt_config() tests the rzg2l_gpt->period_tick variable when
both channels of a hardware channel are in use. This check is not valid
if rzg2l_gpt_config() is called after disabling all the channels, as it
tests against the cached value. Hence, allow checking and setting the
cached value only if the sibling channel is enabled.
While at it, drop else after return statement to fix the check patch
warning.
Cc: stable@kernel.org
Fixes: 061f087f5d0b ("pwm: Add support for RZ/G2L GPT")
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://patch.msgid.link/20251126104308.142302-1-biju.das.jz@bp.renesas.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions
