mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
pwm: rzg2l-gpt: Fix period_ticks type from u32 to u64
period_ticks is used to store PWM period values that can exceed the 32-bit
range, so change its type from u32 to u64 to prevent overflow.
Cc: stable@kernel.org
Fixes: 061f087f5d ("pwm: Add support for RZ/G2L GPT")
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://patch.msgid.link/20260604095647.108654-2-biju.das.jz@bp.renesas.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
This commit is contained in:
parent
6f9b73071c
commit
2b40d72de9
|
|
@ -81,7 +81,7 @@ struct rzg2l_gpt_chip {
|
|||
void __iomem *mmio;
|
||||
struct mutex lock; /* lock to protect shared channel resources */
|
||||
unsigned long rate_khz;
|
||||
u32 period_ticks[RZG2L_MAX_HW_CHANNELS];
|
||||
u64 period_ticks[RZG2L_MAX_HW_CHANNELS];
|
||||
u32 channel_request_count[RZG2L_MAX_HW_CHANNELS];
|
||||
u32 channel_enable_count[RZG2L_MAX_HW_CHANNELS];
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user