Skip to content

Commit 99ba6e4

Browse files
committed
drivers: frequency: admv1014: Fix Q channel gain assignment
Fix incorrect variable assignment in admv1014_get_if_amp_gain function where the Q channel coarse gain was being assigned to the I channel gain pointer instead of the Q channel gain pointer. Fixes: 101b911 ("drivers: frequency: admv1014: Add support for ADMV1014") Signed-off-by: Antoniu Miclaus <[email protected]>
1 parent 0e78ef1 commit 99ba6e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/frequency/admv1014/admv1014.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ int admv1014_get_if_amp_gain(struct admv1014_dev *dev, uint8_t *i_coarse_gain,
284284
if (ret)
285285
return ret;
286286

287-
*i_coarse_gain = no_os_field_get(ADMV1014_IF_AMP_COARSE_GAIN_Q_MSK, data);
287+
*q_coarse_gain = no_os_field_get(ADMV1014_IF_AMP_COARSE_GAIN_Q_MSK, data);
288288

289289
return 0;
290290
}

0 commit comments

Comments
 (0)