Skip to content

Commit

Permalink
driver_si7210: standardize MASK names
Browse files Browse the repository at this point in the history
  • Loading branch information
panantoni01 committed Jul 8, 2024
1 parent 272d0e2 commit 65bd040
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions driver_si7210/si7210_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#define SI7210_REG_DSPSIGL 0xC2
#define SI7210_MASK_DSPSIGSEL GENMASK(2, 0)
#define SI7210_REG_DSPSIGSEL 0xC3
#define SI7210_BIT_STOP BIT(1)
#define SI7210_BIT_ONEBURST BIT(2)
#define SI7210_MASK_STOP BIT(1)
#define SI7210_MASK_ONEBURST BIT(2)
#define SI7210_REG_POWER_CTRL 0xC4
#define SI7210_MASK_ARAUTOINC BIT(0)
#define SI7210_REG_ARAUTOINC 0xC5
Expand Down Expand Up @@ -118,8 +118,8 @@ static int si7210_fetch_measurement(struct si7210_data* data,
return ret;

ret = regmap_update_bits(data->regmap, SI7210_REG_POWER_CTRL,
SI7210_BIT_ONEBURST | SI7210_BIT_STOP,
SI7210_BIT_ONEBURST & ~SI7210_BIT_STOP);
SI7210_MASK_ONEBURST | SI7210_MASK_STOP,
SI7210_MASK_ONEBURST & ~SI7210_MASK_STOP);
if (ret < 0)
return ret;

Expand Down

0 comments on commit 65bd040

Please sign in to comment.