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: ad7944: add namespace to T_QUIET_NS

Add AD7944_ namespace to T_QUIET_NS. This is the preferred style. This
way the bad style won't be copied when we add more T_ macros.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20241009-iio-adc-ad7944-add-namespace-to-t_quiet_ns-v1-1-a216357a065c@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

David Lechner and committed by
Jonathan Cameron
3eb27cf1 c4f9679c

+2 -2
+2 -2
drivers/iio/adc/ad7944.c
··· 80 80 }; 81 81 82 82 /* quite time before CNV rising edge */ 83 - #define T_QUIET_NS 20 83 + #define AD7944_T_QUIET_NS 20 84 84 85 85 static const struct ad7944_timing_spec ad7944_timing_spec = { 86 86 .conv_ns = 420, ··· 150 150 * CS is tied to CNV and we need a low to high transition to start the 151 151 * conversion, so place CNV low for t_QUIET to prepare for this. 152 152 */ 153 - xfers[0].delay.value = T_QUIET_NS; 153 + xfers[0].delay.value = AD7944_T_QUIET_NS; 154 154 xfers[0].delay.unit = SPI_DELAY_UNIT_NSECS; 155 155 156 156 /*