]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwm: Fix incorrect variable used in error message
authorColin Ian King <colin.i.king@gmail.com>
Tue, 2 Sep 2025 13:03:48 +0000 (14:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:37:30 +0000 (16:37 +0200)
commit14ca48623eec266c73e227314f69bc32cb3a748e
tree1754cf9bca81305c13e347b468dd9ebfabb421ff
parent6cef9e4425143b19742044c8a675335821fa1994
pwm: Fix incorrect variable used in error message

commit afe872274edc7da46719a2029bfa4eab142b15f6 upstream.

The dev_err message is reporting the incorrect return value ret_tohw,
it should be reporting the value in ret_fromhw. Fix this by using
ret_fromhw instead of ret_tohw.

Fixes: 6c5126c6406d ("pwm: Provide new consumer API functions for waveforms")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20250902130348.2630053-1-colin.i.king@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pwm/core.c