From patchwork Thu Jun 20 21:13:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 13706387 Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA3417581F for ; Thu, 20 Jun 2024 21:13:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718918001; cv=none; b=H+oBM4fNgdMyyN/mN5195UyVheA8zNMaHegwTzvJ3uheU69u9McJB6SQTqRfxu2boRCjNrUEPHZG0Ht8MRshQOhP3eJ7eqv52bOglIIVD4jGIrWoMZQuQ53Af59Y3exjjDpyuKxnXjpa8Aasf/sfblEcBnz99YniOgN/nY332DM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718918001; c=relaxed/simple; bh=4R/hmM5DhHgRr9zX/FKiuPPmuZZhyDhreZk2qsyxjBM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=h+KEYXP6LWvrWl9Fv8S+EWdfwejz72rPauX6u/OFvvSfuSOYpSqlyYjcCRB+6V55fw73PnKDyumt4sWpOWkIJgBlOjgNuFqzZ2gkVWhCPCoFZXmIrEPfJxmq5ibmwVEiR980KRnqpCqTyZDt8zD8sjjJk2lNqg5xxUYbE3LDNcE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Mn+Zc874; arc=none smtp.client-ip=91.218.175.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Mn+Zc874" X-Envelope-To: jic23@kernel.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1718917996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3F/8CvL20eESB7gcMx7eZWODBujihhNzXkhob3X1cqs=; b=Mn+Zc874xS2mU7SKqENdOU57/0K2/SN7HPoA9dxd3nAGUB4z75W5BJKCWFeZuDy4j716ua crN8yPD4/WCbpLIDXozXrNpN2Rn/v98xpVMU6bBUHWNYZaRnFeH5xLYy+fEqVGnx6ejKrx I7MKnQnCG5rPiwTbvuFjMIIEkGPloLg= X-Envelope-To: jdelvare@suse.com X-Envelope-To: linux@roeck-us.net X-Envelope-To: linux-iio@vger.kernel.org X-Envelope-To: linux-hwmon@vger.kernel.org X-Envelope-To: lars@metafoo.de X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: sean.anderson@linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson To: Jonathan Cameron , Jean Delvare , Guenter Roeck , linux-iio@vger.kernel.org, linux-hwmon@vger.kernel.org Cc: Lars-Peter Clausen , linux-kernel@vger.kernel.org, Sean Anderson Subject: [PATCH 0/2] hwmon: iio: Add labels Date: Thu, 20 Jun 2024 17:13:07 -0400 Message-Id: <20240620211310.820579-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Add support for using IIO channel labels for HWMON labels. Sean Anderson (2): iio: Add iio_read_channel_label to inkern API hwmon: iio: Add labels from IIO channels drivers/hwmon/iio_hwmon.c | 33 ++++++++++++++++++++++++++++++--- drivers/iio/iio_core.h | 4 ++++ drivers/iio/industrialio-core.c | 23 ++++++++++++++--------- drivers/iio/inkern.c | 6 ++++++ include/linux/iio/consumer.h | 10 ++++++++++ 5 files changed, 64 insertions(+), 12 deletions(-)