diff options
| author | Michal Wilczynski <m.wilczynski@samsung.com> | 2025-10-28 13:22:35 +0100 |
|---|---|---|
| committer | Uwe Kleine-König <ukleinek@kernel.org> | 2025-11-13 10:21:34 +0100 |
| commit | 26dcb42086d401373b9e09b7f83357e8b9af6b55 (patch) | |
| tree | c51e4cf63deb30f71a082f4ffdc1253aa2f080b0 | |
| parent | 6fe9e919c144f1296d38e2abb10c7ac4320aa7fa (diff) | |
pwm: th1520: Fix clippy warning for redundant struct field init
Clippy warns about redundant struct field initialization when the field
name and the variable name are the same (e.g., `status: status`).
No functional change.
Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
Reviewed-by: Elle Rhumsaa <elle@weathered-steel.dev>
Link: https://patch.msgid.link/20251028-pwm_fixes-v1-4-25a532d31998@samsung.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
| -rw-r--r-- | drivers/pwm/pwm_th1520.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm_th1520.rs b/drivers/pwm/pwm_th1520.rs index ee2a6d573bc2..b2d83c121c5c 100644 --- a/drivers/pwm/pwm_th1520.rs +++ b/drivers/pwm/pwm_th1520.rs @@ -185,7 +185,7 @@ impl pwm::PwmOps for Th1520PwmDriverData { ); Ok(pwm::RoundedWaveform { - status: status, + status, hardware_waveform: wfhw, }) } |