Skip to content

Commit

Permalink
drivers: sensor: ina23x: remove redundant build asserts
Browse files Browse the repository at this point in the history
With the recent introduction of DT_HAS* Kconfig helpers, such build
asserts are highly unlikely, so just remove them.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull authored and carlescufi committed Nov 15, 2022
1 parent a34158f commit af03ad3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions drivers/sensor/ina23x/ina230.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,6 @@ static const struct sensor_driver_api ina230_driver_api = {
.channel_get = ina230_channel_get,
};

BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) > 0,
"No compatible ina230 instances found");

#ifdef CONFIG_INA230_TRIGGER
#define INA230_CFG_IRQ(inst) \
.trig_enabled = true, \
Expand Down
3 changes: 0 additions & 3 deletions drivers/sensor/ina23x/ina237.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,6 @@ static const struct sensor_driver_api ina237_driver_api = {
.channel_get = ina237_channel_get,
};

BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) > 0,
"No compatible ina237 instances found");

#define INA237_DRIVER_INIT(inst) \
static struct ina237_data ina237_data_##inst; \
static const struct ina237_config ina237_config_##inst = { \
Expand Down

0 comments on commit af03ad3

Please sign in to comment.