aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2025-07-01 16:37:53 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-07-13 15:36:25 +0100
commite916934b591585140a59ac899ac356cd4a1f269f (patch)
tree163039a318be0068a136139736946a637dbdd3d9 /tools/perf/scripts/python/bin
parentiio: adc: ad_sigma_delta: use sizeof() in ALIGN() (diff)
downloadlinux-e916934b591585140a59ac899ac356cd4a1f269f.tar.gz
linux-e916934b591585140a59ac899ac356cd4a1f269f.zip
iio: adc: ad_sigma_delta: use BITS_TO_BYTES() macro
Use the BITS_TO_BYTES() macro instead of dividing by 8 to convert bits to bytes. This makes it more obvious what unit conversion is taking place. In one instance, we also avoid the temporary assignment to a variable as it was confusing that reg_size was being used with two different units (bits and bytes). scan_type is factored out to reduce line wrapping. Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Link: https://patch.msgid.link/20250701-iio-adc-ad7173-add-spi-offload-support-v3-5-42abb83e3dac@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions