Skip to content

Commit 1cc7551

Browse files
Shetty-Anushbuha
authored andcommitted
drivers:adc:ad7768-1: Fix switch logic in ad77681_update_sample_rate()
Fix switch logic in ad77681_update_sample_rate() to handle SINC5 and FIR filters separately Signed-off-by: Anush Shetty <[email protected]>
1 parent 547b88b commit 1cc7551

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/adc/ad7768-1/ad77681.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ int32_t ad77681_update_sample_rate(struct ad77681_dev *dev)
448448

449449
/* Finding out decimation ratio */
450450
switch (dev->filter) {
451-
case (AD77681_SINC5 | AD77681_FIR):
451+
case AD77681_SINC5:
452+
case AD77681_FIR:
452453
/* Decimation ratio of FIR or SINC5 (x32 to x1024) */
453454
switch (dev->decimate) {
454455
case AD77681_SINC5_FIR_DECx32:

0 commit comments

Comments
 (0)