From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2A231BD51F for ; Tue, 2 Jul 2024 17:34:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719941651; cv=none; b=Kff/+dA13Jiqm2hjnCHHkNiRR1YjmTSra9zpDGJNDHg64H6TBNS3aRMsP0DUl59MxoYQuPLjmU16PATEjpSO7jd9HLWX7YP+0FaSzTWSiq9XlPFnKA4sA0HuLukJ4xr2vfzS2gzN+BE6A1ajQ5vkV65GKGUZ2P9xssWhLdTnX70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719941651; c=relaxed/simple; bh=/o5c+700JcEHhe5XAJMAq8Yr8uQLfpczFgZy6jDoudY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=GrCG5hYLlyXuGtcmcbkmy/qLHgGaoT+kLiJdDgmOXEXFwcRnln3FwyB9XxG76ZIW3ix20EDYUtzAtmR6dhV8OiKZvm0odjAF6NSAZggwg22yYSNd0tlPyGASLZColTSY0jOtuyOWSnAf/xW/bcIFxXi5twa5tL0X9HH4RY71kko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=nZ4MPJY4; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="nZ4MPJY4" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-52ce6c8db7bso6915638e87.1 for ; Tue, 02 Jul 2024 10:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1719941647; x=1720546447; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=cZz0RwSCh0QMB9gJx+0gDDvp+8YLO/0RV5ftBIqGid8=; b=nZ4MPJY4m1M7jtTDt4a6RZkxi0vTQfF6iWvItALB1D8Znh33p5wysQYorc0o9t6FMX HNWV3Bq4KK7GY0bDqEF+eAq9FpfyenFe4xRUR+UHq6AdMhiq5K1sDDfqUKNmC0hqMyPi arejn1NxL0TgRMrCwQUIhjnzILXqcV5DMhJypHE55JMK8ia+4YIlshKtBaxcbNoQq473 Uz+x7FGqWvHZmatPkrZcYbPHXaqlx/wz1Xa/1GH4+x2oTBeXdOu6/WZjFxxCf/cRZkUW MEgnVHxotWjy55/p2X8vSxWeSccLmWnPa0hDP7nDyUWpojOc6IFK0SL7nt9HtY3d4DKo f6pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719941647; x=1720546447; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cZz0RwSCh0QMB9gJx+0gDDvp+8YLO/0RV5ftBIqGid8=; b=NdMXwqs8ZPgzLVQHG+hrlNTm/2eQfvSUcZVYX/IZHS7GFzBiNcmfukziQ4YavWb1up a5Rg8kkDP+sUfCcZpf0tn6Cnanfydy7OkbtbukRt7c48FC8bf6hNektBlE1l2Hl1uwqH Se7mTRvazTeS2zkpRwyg0srh3J+K0Ewtoz/vo/lzY9o1SGCZJInoFQhYxloJIiPfgHCO RkJpWc9XUcGwQ+2noTyY+Nqf6ePeROevIB0X6QYLdcwnq7HNa9xMvJFTuhbH0kLcMxkU wirFeUX2140N46dMGC/ZEX75MWK4E7tSZlzPSJMzwc9PRSBO+6VX4RP0zMfNpIIEtRvo InAg== X-Forwarded-Encrypted: i=1; AJvYcCXVOTegr87UDbmjAzbdFx24iVykpMwcCYJH+M1L+kkQYY01Xr793wZpLA02jRNGSEsUHq3263heVu6bu/MD/wJap3PHTMUyGYEeDw== X-Gm-Message-State: AOJu0YwvBCEWk4N2ZmhZeMdEdF98c0zUAme3NJF4hhxrTWNaSZ6w/gJe 6e1KIMKHTik0lIZ7fPpqV6FX4cIKaFaGkN0q1POdzgkeYHgwvTRFGkwnUnLZH8E= X-Google-Smtp-Source: AGHT+IFjYnN8Qw8rIORJHAmRqYrCZytTFvoTnvxnbl/X+PyzxSN0cPeaw+HT/4KTY7wnV29vzGq+Pg== X-Received: by 2002:a05:6512:2245:b0:52c:8aa6:4e9c with SMTP id 2adb3069b0e04-52e82752786mr7398520e87.65.1719941646613; Tue, 02 Jul 2024 10:34:06 -0700 (PDT) Received: from [127.0.1.1] (frhb82016ds.ikexpress.com. [185.246.87.17]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256af59732sm207594485e9.11.2024.07.02.10.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 10:34:06 -0700 (PDT) From: Guillaume Stols Subject: [PATCH v3 0/8] iio: adc: ad7606: Improvements Date: Tue, 02 Jul 2024 17:34:04 +0000 Message-Id: <20240702-cleanup-ad7606-v3-0-57fd02a4e2aa@baylibre.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAw6hGYC/2XMQQ6CMBCF4auQrq3pjFCKK+9hXJR2kCYIpNVGQ ri7BTcGl/9L3jezQN5RYOdsZp6iC27oU5wOGTOt7u/EnU3NUGAucpDcdKT718i1LaWQHCQQkq0 UqJql0+ipce8NvN5Sty48Bz9tfoR1/VIS1J6KwAVvQBW5LUxZVvZS66lztaejGR5s1SL+CPgvY BIqSQKbSmAh98KyLB/cjApe8QAAAA== To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Hennerich , linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, Jonathan Cameron , Guillaume Stols , jstephan@baylibre.com, dlechner@baylibre.com, Conor Dooley X-Mailer: b4 0.14.0 This series adds the following improvements over the current AD7606's driver implementation: - Fix wrong usage of gpio array - Fix standby that was documented as ACTIVE_LOW but handled in the driver as if it was ACTIVE_HIGH - Improve dt-bindings documentation - Switch mutex lock to scoped guard Signed-off-by: Guillaume Stols --- Changes in v3: - Remove the two first patches that were already picked up. - Add styling corrections. - [Patch 6/8] Improve commit message. - [Patch 8/8] Replace every scoped_guard by simple guard. - Link to v2: https://lore.kernel.org/r/20240628-cleanup-ad7606-v2-0-96e02f90256d@baylibre.com Changes in v2: - Change scoped guard to guard(mutex)(&st->lock). This was tested with Rob's bot condition, and seems not to generate warning anymore. - Reorder the commits for avoiding bisection issues and respect commit priority rules. - Add vdrive-supply to required properties. - Separate cosmetic changes from content ones in dt-binding descriptions. - Move maxItems changes (and plural in descriptions) to the commit that adds conditions. - Link to v1: https://lore.kernel.org/r/20240618-cleanup-ad7606-v1-0-f1854d5c779d@baylibre.com --- Guillaume Stols (8): dt-bindings: iio: adc: adi,ad7606: normalize textwidth dt-bindings: iio: adc: adi,ad7606: improve descriptions dt-bindings: iio: adc: adi,ad7606: add supply properties dt-bindings: iio: adc: adi,ad7606: fix example dt-bindings: iio: adc: adi,ad7606: add conditions iio: adc: ad7606: fix oversampling gpio array iio: adc: ad7606: fix standby gpio state to match the documentation iio: adc: ad7606: switch mutexes to scoped_guard .../devicetree/bindings/iio/adc/adi,ad7606.yaml | 123 ++++++++++++++++----- drivers/iio/adc/ad7606.c | 47 ++++---- drivers/iio/adc/ad7606_spi.c | 5 +- 3 files changed, 115 insertions(+), 60 deletions(-) --- base-commit: 340fa834ae229a952db04a57ed13fd5d35d75818 change-id: 20240416-cleanup-ad7606-161e2ed9818b Best regards, -- Guillaume Stols