From: Michal Wilczynski Date: Tue, 28 Oct 2025 12:22:35 +0000 (+0100) Subject: pwm: th1520: Fix clippy warning for redundant struct field init X-Git-Tag: v6.19-rc1~154^2~2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=26dcb42086d401373b9e09b7f83357e8b9af6b55;p=thirdparty%2Flinux.git 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 Reviewed-by: Elle Rhumsaa Link: https://patch.msgid.link/20251028-pwm_fixes-v1-4-25a532d31998@samsung.com Signed-off-by: Uwe Kleine-König --- diff --git a/drivers/pwm/pwm_th1520.rs b/drivers/pwm/pwm_th1520.rs index ee2a6d573bc23..b2d83c121c5c7 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, }) }