Skip to contentSkip to conversation

patch "iio: adc: rohm-bd79124: Fix rising alarm" added to char-misc-linus

PATCH [email protected] 1 participant 1 message Sep 11

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

iio: adc: rohm-bd79124: Fix rising alarm

to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-linus branch.

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.

If you have any questions about this process, please let me know.

From 0d3f6b5e639f0bca5c1466ec523a94ec4f9f4c24 Mon Sep 17 00:00:00 2001
From: Matti Vaittinen <[email protected]>
Date: Mon, 10 Aug 2026 10:49:56 +0300
Subject: iio: adc: rohm-bd79124: Fix rising alarm

The rising alarm is using the cached falling alarm value causing wrong value to be used.

Fix this by using the correct cached value for rising alarm.

Fixes 3f57a3b9ab74 ("iio: adc: Support ROHM BD79124 ADC")
---
 drivers/iio/adc/rohm-bd79124.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/rohm-bd79124.c +1 -1
index ed5427288961..eab5286763a7 100644
@@ -524,7 +524,7 @@ static int bd79124_enable_event(struct bd79124_data *data,
 		return ret;
 
 	if (dir == IIO_EV_DIR_RISING) {
-		limit = &data->alarm_f_limit[channel];
+		limit = &data->alarm_r_limit[channel];
 		reg = BD79124_GET_HIGH_LIMIT_REG(channel);
 	} else {
 		limit = &data->alarm_f_limit[channel];
Signature · 1 line
2.55.0