Skip to content

Commit cbfabf8

Browse files
XenuIsWatchingkartben
authored andcommitted
sensor: lps22hh: fix null check for i3c ibi
A typo was made where if the i3c bus is not null, then it will not set the ibi callback. Signed-off-by: Ryan McClelland <[email protected]>
1 parent de7b0bb commit cbfabf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/st/lps2xdf/lps2xdf_trigger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ int lps2xdf_init_interrupt(const struct device *dev, enum sensor_variant variant
179179

180180
#if (DT_HAS_COMPAT_ON_BUS_STATUS_OKAY(st_lps22df, i3c) ||\
181181
DT_HAS_COMPAT_ON_BUS_STATUS_OKAY(st_lps28dfw, i3c))
182-
if (cfg->i3c.bus == NULL) {
182+
if (cfg->i3c.bus != NULL) {
183183
/* I3C IBI does not utilize GPIO interrupt. */
184184
lps2xdf->i3c_dev->ibi_cb = lps2xdf_ibi_cb;
185185

0 commit comments

Comments
 (0)