Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: ti-ads131e08: Fix spelling mistake "tweek" -> "tweak"

There is a spelling mistake in variable tweek_offset and in comment
blocks. Fix these.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250603165706.126031-1-colin.i.king@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Colin Ian King and committed by
Jonathan Cameron
f0fdb01d 126cbd0d

+5 -5
+5 -5
drivers/iio/adc/ti-ads131e08.c
··· 625 625 * 16 bits of data into the buffer. 626 626 */ 627 627 unsigned int num_bytes = ADS131E08_NUM_DATA_BYTES(st->data_rate); 628 - u8 tweek_offset = num_bytes == 2 ? 1 : 0; 628 + u8 tweak_offset = num_bytes == 2 ? 1 : 0; 629 629 630 630 if (iio_trigger_using_own(indio_dev)) 631 631 ret = ads131e08_read_data(st, st->readback_len); ··· 640 640 dest = st->tmp_buf.data + i * ADS131E08_NUM_STORAGE_BYTES; 641 641 642 642 /* 643 - * Tweek offset is 0: 643 + * Tweak offset is 0: 644 644 * +---+---+---+---+ 645 645 * |D0 |D1 |D2 | X | (3 data bytes) 646 646 * +---+---+---+---+ 647 647 * a+0 a+1 a+2 a+3 648 648 * 649 - * Tweek offset is 1: 649 + * Tweak offset is 1: 650 650 * +---+---+---+---+ 651 651 * |P0 |D0 |D1 | X | (one padding byte and 2 data bytes) 652 652 * +---+---+---+---+ 653 653 * a+0 a+1 a+2 a+3 654 654 */ 655 - memcpy(dest + tweek_offset, src, num_bytes); 655 + memcpy(dest + tweak_offset, src, num_bytes); 656 656 657 657 /* 658 658 * Data conversion from 16 bits of data to 24 bits of data 659 659 * is done by sign extension (properly filling padding byte). 660 660 */ 661 - if (tweek_offset) 661 + if (tweak_offset) 662 662 *dest = *src & BIT(7) ? 0xff : 0x00; 663 663 664 664 i++;