From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (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 67DFC3B47DE for ; Mon, 27 Apr 2026 10:10:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777284631; cv=none; b=p3/R1MpF1FBi441yJeOTtnB/E/C3/h2LuTvw8iAS8JH804suiiDgfq2CWA061ZK2pSzGtckgNu9y6vTv3u0Od+Z7I17odJwPME5DVntmPCk/sKtqamewnyNChYrzvRTc9psNFWf8z3tiE7Uy45xUmEaWgEs0k1UW6xYNQ3v/h8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777284631; c=relaxed/simple; bh=pbq+haMBXJjpodXoD7EdAGSmOaszrbzilDvwBg0HaV8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NeEMixNo7pB+fp5+qKr5d7nJIEMYQHRZ1UWOTgWyRfd7HOMDVtWykpyoIclX67lt49RTuwmNPqVm8LYxMu1ZBuy6KiEjdlp/bypJdpVCIFpuYLsEmpywSvuIj+gteJ7iOj6gmX2CucBNHu5bXnBUS9fVEt/qGMNkD6rKqBoh0KI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=i/UeYZcz; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i/UeYZcz" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-82cebbdbdccso6178242b3a.1 for ; Mon, 27 Apr 2026 03:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777284630; x=1777889430; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MPviO7yWOPeiGXaSIG7x52NERDN2fjLGfup6ZZml7C0=; b=i/UeYZczC6CFOHZgeJTctRZholWCQ0f3V5KYAIHlJK/TEwN0UP38QCTGu76ceENp9+ XU53pMayqN+C8PtOccz3JrZ4XPjKgTISsjmUgZcx2zdjPp7ujAh0tLz2mWhd64g3oOlp wT68GzcdqpwWPATf5/lmrCwDhJkmNIo3pIIzw5W9aj2JBDYIjBPwvUN6MHdbrjOobGew 7fkin2ALcIaGQ5hpKb1Z39RrqUh98P8Wy3EdQwIj96svr1u6ZBAp7cp71HSfBE8xFwRw HatsFSLoLPEJeoLc7w3SkIgvxHg68zLWgYDm/gbttEQ7aHPWQDbDYgco3hl6SgxZliFE PCNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777284630; x=1777889430; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=MPviO7yWOPeiGXaSIG7x52NERDN2fjLGfup6ZZml7C0=; b=F/seOgOaDZPpBGATUiaVhwu5QrecqFjSHWtmOvCzH7oqtMlNKVBUvf0RVFtr/3UjN+ X08bGN420OKiUbWabbSCsa3e9FvDtu3NnYZxHp/uD03LYngNXgX4jy8T0S+mvX9aSsEr 5X6i6WLezTnykr5B4SlctU+IkRZG5BeSTHnAjKUJSHQT7OOhjKFgpKYk3h4BtHGckvVY BPS1wZuweKIJSdg0RmBVudcEdolMGiT5Gh7MdoPKtJhFkJ7mv3s47YIyimDtTEXwCQ55 qE8/fI/y7oJb1MwBJmupx1HVDuTR8LQs9vEmvTi5oH7Ap4UoznbP3593sDRNyLIsokql k/ug== X-Forwarded-Encrypted: i=1; AFNElJ9Q7xijlC8MR03yOjn41KsrCZrCsaI491Si7J0p52m8FeL5ZADYjVzRH7rIR4A3CEeU9UV9NAOfd+4axRM=@vger.kernel.org X-Gm-Message-State: AOJu0Yym4O2BOyqpJWBAKC6EOzBOBUnmarkrCBMlRL+vCvCZ398UTNfi StdEKD2n9ny8FCuIrKmJ0ZjsPL3H+FxhmEM/Cg8fyBHtBQXUMLcJzEZNAZk9QdLn X-Gm-Gg: AeBDiessaChSkZ7anx/iMiIHfXnlSRbXruRSMHstpoYgmj9tAHU+jKA8IfaThzfvjp+ ODU9PZQ/T/5Cey3WiNYqFAnU6QVixTVVJ+TIdzLujf1H3HD4cAwJ/57h/SM2Cb6GCjbpv5o6t23 ldiTw2EnKcNOtQf6qcZ3orlbow3b41p9O21fDRPFKqHavjrnAnzAYnsxZ4SAFLr45EwIWpKBwti bXzS7GLHX5XelRMdM+zumKL6+hKoLzQnuaftq3ZZ4EFTE2mOPNplJeh35mgAEqKlFvng+C5FoeX SUV8U20nbEATakPNqZ6kbDk0wstYY54oO/GV3PMN6Jjr+VOtNfvvSjm7dotQG/1zwVluLJmrIb6 iaxuo5p9qixVPd46lva1Rviq+bjH2qPW+it+3S472cyiaG5XekXBQI4rwqcFV25L1pUHNFxZ88Q /awVohWuvazpBSHWV5JyYRSKMzZtXI2oQ7T5Hr0mXiXjupI1snSDDgns6tXOxCDUBCejuhWMvvW 0LwFzSNDNSdZmopQr6bQRleMv+dO4ruDIiqx8kji9YiqPDYO8VHyiOWWr1o X-Received: by 2002:a05:6a00:3e1c:b0:82a:146d:36a3 with SMTP id d2e1a72fcca58-82f8b55a221mr35827753b3a.21.1777284629796; Mon, 27 Apr 2026 03:10:29 -0700 (PDT) Received: from lord-daniel-VivoBook-ASUSLaptop-K3502ZA-S3502ZA.. ([2405:201:31:d016:e577:22da:dc9:7f6c]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82f8ebba485sm39534225b3a.38.2026.04.27.03.10.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2026 03:10:28 -0700 (PDT) From: Piyush Patle To: ak@it-klinger.de, jic23@kernel.org Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/7] iio: adc: hx711: update Kconfig, module description and file header Date: Mon, 27 Apr 2026 15:39:34 +0530 Message-ID: <20260427100950.33936-4-piyushpatle228@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260427100950.33936-1-piyushpatle228@gmail.com> References: <20260427100950.33936-1-piyushpatle228@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Update the Kconfig entry to "AVIA HX711 and compatible ADCs" and list supported chips one per line to make it easy to extend when new variants are added. Change the module description and file header to match. Add direct includes for linux/array_size.h and linux/types.h rather than relying on transitive includes pulled in by other headers. Signed-off-by: Piyush Patle --- Changes in v4: - New patch. Split out from the v3 refactor patch as requested by Andy Shevchenko so that text/description changes are separate from code refactoring. - Add direct linux/array_size.h and linux/types.h includes. --- drivers/iio/adc/Kconfig | 7 ++++--- drivers/iio/adc/hx711.c | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 60038ae8dfc4..f18692aea795 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -784,13 +784,14 @@ config HI8435 called hi8435. config HX711 - tristate "AVIA HX711 ADC for weight cells" + tristate "AVIA HX711 and compatible ADCs" depends on GPIOLIB select IIO_BUFFER select IIO_TRIGGERED_BUFFER help - If you say yes here you get support for AVIA HX711 ADC which is used - for weigh cells + If you say Y here you get support for the following AVIA ADCs: + - HX711 + which are used for bridge sensors such as weigh cells. This driver uses two GPIOs, one acts as the clock and controls the channel selection and gain, the other one is used for the measurement diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 0776a23bf59b..32362771cfc8 100644 --- a/drivers/iio/adc/hx711.c +++ b/drivers/iio/adc/hx711.c @@ -1,12 +1,14 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* - * HX711: analog to digital converter for weight sensor module + * HX711 and compatible ADCs driver for weight sensor modules * * Copyright (c) 2016 Andreas Klinger */ +#include #include #include #include +#include #include #include #include @@ -573,7 +575,7 @@ static struct platform_driver hx711_driver = { module_platform_driver(hx711_driver); MODULE_AUTHOR("Andreas Klinger "); -MODULE_DESCRIPTION("HX711 bitbanging driver - ADC for weight cells"); +MODULE_DESCRIPTION("HX711 and compatible bitbanging ADC driver"); MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:hx711-gpio"); -- 2.43.0