Skip to contentSkip to conversation

patch "iio: light: tsl2772: fix reading proximity-diodes from device tree" added to char-misc-linus

PATCH [email protected] 1 participant 1 message Apr 11, 2023

Subsystems (2)
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: light: tsl2772: fix reading proximity-diodes from device tree

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 b1cb00d51e361cf5af93649917d9790e1623647e Mon Sep 17 00:00:00 2001
From: Brian Masney <[email protected]>
Date: Mon, 3 Apr 2023 21:14:55 -0400
Subject: iio: light: tsl2772: fix reading proximity-diodes from device tree

tsl2772_read_prox_diodes() will correctly parse the properties from device tree to determine which proximity diode(s) to read from, however it didn't actually set this value on the struct tsl2772_settings. Let's go ahead and fix that.

Fixes 94cd1113aaa0 ("iio: tsl2772: add support for reading proximity led settings from device tree")
---
 drivers/iio/light/tsl2772.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/light/tsl2772.c +1 -0
index ad50baa0202c..e823c145f679 100644
@@ -601,6 +601,7 @@ static int tsl2772_read_prox_diodes(struct tsl2772_chip *chip)
 			return -EINVAL;
 		}
 	}
+	chip->settings.prox_diode = prox_diode_mask;
 
 	return 0;
 }
Signature · 1 line
2.40.0