]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codecs: rt5677: Use secs_to_jiffies() instead of msecs_to_jiffies()
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 5 Apr 2025 12:58:08 +0000 (14:58 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 6 Apr 2025 22:25:18 +0000 (23:25 +0100)
commit7afa96026f0a1d81b7e9cc8f1811cae4b80d4d94
tree3b2a5f33ec43c37b2967ec70c40b0b6088618f31
parente0cd450a2d207ce44aa88137a045f2d2a31810c2
ASoC: codecs: rt5677: Use secs_to_jiffies() instead of msecs_to_jiffies()

Use secs_to_jiffies() instead of msecs_to_jiffies() and avoid scaling
'delay' to milliseconds.

Since 'delay' isn't a compile-time constant, secs_to_jiffies() expands
to much simpler code compared to msecs_to_jiffies(), reducing the size
of 'snd-soc-rt5677-spi.ko' by 472 bytes.

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250405125808.302259-1-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5677-spi.c