Skip to content

Commit c419c58

Browse files
dlechnunojsa
authored andcommitted
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>
1 parent be0534b commit c419c58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/iio/adc/ad7944.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct ad7944_adc {
8080
};
8181

8282
/* quite time before CNV rising edge */
83-
#define T_QUIET_NS 20
83+
#define AD7944_T_QUIET_NS 20
8484

8585
static const struct ad7944_timing_spec ad7944_timing_spec = {
8686
.conv_ns = 420,
@@ -150,7 +150,7 @@ static int ad7944_3wire_cs_mode_init_msg(struct device *dev, struct ad7944_adc *
150150
* CS is tied to CNV and we need a low to high transition to start the
151151
* conversion, so place CNV low for t_QUIET to prepare for this.
152152
*/
153-
xfers[0].delay.value = T_QUIET_NS;
153+
xfers[0].delay.value = AD7944_T_QUIET_NS;
154154
xfers[0].delay.unit = SPI_DELAY_UNIT_NSECS;
155155

156156
/*

0 commit comments

Comments
 (0)