patch "iio: adc: ad7192: Fix internal/external clock selection" added to char-misc-testing
This is a note to let you know that I've just added the patch titled
iio: adc: ad7192: Fix internal/external clock selection
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-testing 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 be merged to the char-misc-next branch sometime soon, after it passes testing, and the merge window is open.
If you have any questions about this process, please let me know.
From f7d9e21dd274b97dc0a8dbc136a2ea8506063a96 Mon Sep 17 00:00:00 2001
From: Fabrizio Lamarque <[email protected]>
Date: Tue, 30 May 2023 09:53:08 +0200
Subject: iio: adc: ad7192: Fix internal/external clock selection
Fix wrong selection of internal clock when mclk is defined.
Resolve a logical inversion introduced in c9ec2cb328e3.
--- drivers/iio/adc/ad7192.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/ad7192.c +1 -1
@@ -367,7 +367,7 @@ static int ad7192_of_clock_select(struct ad7192_state *st) clock_sel =AD7192_CLK_INT ;/* use internal clock */ -if (st->mclk) { +if (!st->mclk) {if (of_property_read_bool (np,"adi,int-clock-output-enable" )) clock_sel =AD7192_CLK_INT_CO ; }else {
Signature · 1 line
2.41.0