From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 84FA23B4EBC for ; Mon, 27 Apr 2026 10:10:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777284631; cv=none; b=ofuwKwyLdSlJW2WIuw+QGizACGjGJAkWTAqOVSK++iNiy8GnGWa2zak/OCS5bbZuAaS12ZfE6o2tS8WseXmLAfCi5CQS+AeE5ESyHpYWEvagUgHPoZTqIwQpnwKMohCrIIZVeY7ckEBrjLQoQmYdFV+aYz1UDbPzfbWQbP1Nsv0= 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.170 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-f170.google.com with SMTP id d2e1a72fcca58-82cebbdbdccso6178240b3a.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=O8bQJWWfNAPK9DOvNY8ZQG8laFBTmElZ57pbHm3Ca94NmIff8SAYIP7EEqBgHRv/S2 TL/v2vSjc1bB1xGwboXNDb+ev45LYxNXpd79sBwrIARMuIOor7BERGC5fYT9J1l9kBcm QOTOPuLPWlwOFOMb5D8juL69/dq6pXOKWpN3hnejRs5QAJKgUFazAu/FQbYzyTXrTeXU eCL6bPInwcydCcr3zBYNHxbn8/pEquUFusnNJ7nJuoUm7vkILz21NyrhTVYEeYKzy903 S5cSKpIUCvz/zVVH4hPj/fIDJKP8B4Qq2np8+y/29kfVkF4/Gy6kRNsh8TfYFxfJ4paB 6Ppg== X-Forwarded-Encrypted: i=1; AFNElJ/5sqoYNf1qkvu9j105V3vk3v6omZK9eaDYmSqZ78NrHebyso6XRykv+jjRskthIQvcw6yWpvl4+J0=@vger.kernel.org X-Gm-Message-State: AOJu0Ywe5ipG+2zFKNAG2n7V20GZjFyiuNXsEmmR3IO+U9mCqcPDL8O8 rcC8zIh7nQ+vIA89NMX2ABECfWStlGuAJrB97008af27MePq8j+SQuc8 X-Gm-Gg: AeBDies6KL7ZA7k+gGSTa+DXA+3EA9Sgq82K2NHEoTRSrN/xwTcwM+ShWYrNgK/cWAW 3CvQ1/wZFh5E5PbfI1E0Htix5soSjjhrTZd9QnPIICYNjPRwbU5I+hnXepB8xV2RaKZmL0ZMd2E cH2T/FK7jkfEtgbABRNKXLZAJKJQmG5AYpqEIX2m6Kq9myJiH0BpAZecLOQr8c2Rump0XTKF0jD iOS0gnYihMyr6H7sDsD125wHS1rvb/2yHebQveN4CymbF3zpT0+6cY04X39BsTtKpnJWZvDKa5J yNSPIbKsf+Vc7CtaOKQrH3aX+JH/FMfIpGggIOWDHwOqUhJrYvbEzFebc0YshLrlNr3zD21zYyW s5DUSZZ+LgIQVHBAddoUFrIJsJmkIhx3f2a/jB305ZzqXOjjTz86meIhw+OzMBRe/ZMrNMyJ4eE 3hUwlORq0uOOFS/WWMSiEsgRDeU4Za5PdMMTTP9LyyG87rTQzm6L/IumOFrTVxqXpBb08ICf0e7 YuYZtNW7+y1FCTWk7HtduqB90ZW2c0axRBGmY6nvCZmfpKj40qmdzhrX17/ 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-iio@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