Hi all, Today's linux-next merge of the gpio-brgl tree got a conflict in: drivers/iio/adc/ad7606_spi.c between commit: d2477887f667 ("iio: adc: ad7606: move software functions into common file") from the iio tree and commit: 8203bc81f025 ("iio: adc: ad7606: use gpiod_multi_set_value_cansleep") from the gpio-brgl tree. I fixed it up (code was moved so I used the former version of this file and applied the following merge resolution patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. From a1072aac97bdaf3042fe2def4d7e6e7fa928cfbd Mon Sep 17 00:00:00 2001 From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Date: Mon, 17 Feb 2025 14:52:30 +1100 Subject: [PATCH] fix up for "iio: adc: ad7606: use gpiod_multi_set_value_cansleep" interacting with commit d2477887f667 ("iio: adc: ad7606: move software functions into common file") from the iio tree. Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> --- drivers/iio/adc/ad7606.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/iio/adc/ad7606.c b/drivers/iio/adc/ad7606.c index cb3de1bd15b4..7d83bb320249 100644 --- a/drivers/iio/adc/ad7606.c +++ b/drivers/iio/adc/ad7606.c @@ -1259,10 +1259,9 @@ static int ad7606b_sw_mode_setup(struct iio_dev *indio_dev) * in the device tree, then they need to be set to high, * otherwise, they must be hardwired to VDD */ - if (st->gpio_os) { - gpiod_set_array_value(st->gpio_os->ndescs, st->gpio_os->desc, - st->gpio_os->info, os); - } + if (st->gpio_os) + gpiod_multi_set_value_cansleep(st->gpio_os, os); + /* OS of 128 and 256 are available only in software mode */ st->oversampling_avail = ad7606b_oversampling_avail; st->num_os_ratios = ARRAY_SIZE(ad7606b_oversampling_avail); -- 2.45.2 -- Cheers, Stephen Rothwell
Attachment:
pgpAgZZRNQbmf.pgp
Description: OpenPGP digital signature