]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ti-tsc2046: use us_to_ktime() where appropriate
authorXichao Zhao <zhao.xichao@vivo.com>
Wed, 13 Aug 2025 07:55:56 +0000 (15:55 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 13:06:06 +0000 (14:06 +0100)
commitea9b042129275b084d13ef2f571ffd439ed47533
tree0501dbd698a2fb22063187d30e911a0a9b9d092e
parent946bfea3657a3b569ce1e59b29014ef5eb8c6c30
iio: adc: ti-tsc2046: use us_to_ktime() where appropriate

Given scan_interval_us and time_per_scan_us are both in usecs, it
makes more sense to use us_to_ktime() helper rather than converting
to nanosecs as needed for ns_to_ktime().

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250813075556.466872-1-zhao.xichao@vivo.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-tsc2046.c