Skip to content

Commit

Permalink
drivers: adc: ads1x1x: fix pga enum comment
Browse files Browse the repository at this point in the history
The pga enum internal reference voltage and gain values
were fixed in the code, but a comment was forgotten to be
updated. Correct the comment to match how the code uses
the enum.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
  • Loading branch information
XenuIsWatching authored and carlescufi committed May 31, 2023
1 parent 9515a52 commit 77fb202
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/adc/adc_ads1x1x.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ enum {
};

enum {
/* +/-6.144V range = Gain 2/3 */
/* +/-6.144V range = Gain 1/3 */
ADS1X1X_CONFIG_PGA_6144 = 0,
/* +/-4.096V range = Gain 1 */
/* +/-4.096V range = Gain 1/2 */
ADS1X1X_CONFIG_PGA_4096 = 1,
/* +/-2.048V range = Gain 2 (default) */
/* +/-2.048V range = Gain 1 (default) */
ADS1X1X_CONFIG_PGA_2048 = 2,
/* +/-1.024V range = Gain 4 */
/* +/-1.024V range = Gain 2 */
ADS1X1X_CONFIG_PGA_1024 = 3,
/* +/-0.512V range = Gain 8 */
/* +/-0.512V range = Gain 4 */
ADS1X1X_CONFIG_PGA_512 = 4,
/* +/-0.256V range = Gain 16 */
/* +/-0.256V range = Gain 8 */
ADS1X1X_CONFIG_PGA_256 = 5
};

Expand Down

0 comments on commit 77fb202

Please sign in to comment.