summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorTabrez Ahmed <tabreztalks@gmail.com>2026-05-02 05:08:44 +0300
committerGuenter Roeck <linux@roeck-us.net>2026-06-09 18:22:57 +0300
commitb46e1a0bff3343ad8a50a5d9cdb56a3847ba69ef (patch)
tree89112cc7a20f88a242d972d572828457eeab9d77 /include/linux/timerqueue.h
parenta2b0986398e6dd952ab413f6dcd271ddf86ea9b8 (diff)
downloadlinux-b46e1a0bff3343ad8a50a5d9cdb56a3847ba69ef.tar.xz
hwmon: (ads7871) Use DMA-safe buffer for SPI writes
The driver currently passes a stack-allocated buffer to spi_write(), which is incompatible with DMA on systems with CONFIG_VMAP_STACK enabled. Move the transfer buffer into the driver's private data structure to ensure it is DMA-safe. Since this shared buffer now requires serialization, this change depends on the previous commit which migrated the driver to the hwmon 'with_info' API. While moving the logic, also: - Corrected the sign extension for 14-bit data by casting to s16. - Scaled the output to millivolts (2500mV full scale ) to comply with the hwmon ABI. Signed-off-by: Tabrez Ahmed <tabreztalks@gmail.com> Link: https://lore.kernel.org/r/20260502020844.110038-4-tabreztalks@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions