w1: ds2406: use crc16() instead of crc16_byte() loop
Instead of looping through each byte and calling crc16_byte(), instead just call crc16() on the whole buffer. No functional change. Acked-by:Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by:
Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20250513022115.39109-2-ebiggers@kernel.org Signed-off-by:
Eric Biggers <ebiggers@google.com>
Loading
Please register or sign in to comment