From patchwork Thu Dec 16 18:52:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 12682375 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A9C6C43219 for ; Thu, 16 Dec 2021 18:52:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236385AbhLPSw1 (ORCPT ); Thu, 16 Dec 2021 13:52:27 -0500 Received: from www381.your-server.de ([78.46.137.84]:47640 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236394AbhLPSwY (ORCPT ); Thu, 16 Dec 2021 13:52:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=yd63Uuar7R9bVhU6VBQ6acM6BrVP2cx0ml6/ZCjWJkI=; b=UqRaLFU4VigRm2geGI9fSM/07j csNtW/eKkZxi40sOZ4dxv63mlTT7q0ybt4+Ho7Ta4xd5we6SHi5vn1Jn4gu7YjoOrpj72Wp/p8fMs 0T1NaeKhlyOVxVF40wwx4xNNaRFGWtWg6FljUEkh68saSRBdCRsLm30T25VgHSpkNxPzCPhdpdJ99 HfmxXJ3Cunwms2Pup3br9zJioWPSLisyFa1TWF9Z+4OuB8D/QmjXxiVOGgFS61vFvjWTCvcJ2Q7d8 b/0JtARydDce+7DN+K0zlWgji0IFv9DJko2kVBdu8FSFmZNylPx+EqOxmmZRJoXM4srlUrwIVSKLZ kcZuS1Yw==; Received: from sslproxy06.your-server.de ([78.46.172.3]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mxvra-000ARv-01; Thu, 16 Dec 2021 19:52:22 +0100 Received: from [2001:a61:2bc8:8501:9e5c:8eff:fe01:8578] (helo=lars-desktop.fritz.box) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxvrZ-000HSt-LE; Thu, 16 Dec 2021 19:52:21 +0100 From: Lars-Peter Clausen To: Jonathan Cameron Cc: Michael Hennerich , Alexandru Tachici , Roan van Dijk , Tomasz Duszynski , Marc Titinger , Matt Ranostay , Johan Hovold , Paresh Chaudhary , Navin Sankar Velliangiri , Jacopo Mondi , Ludovic Tancerel , linux-iio@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 00/13] iio: Use sysfs_emit() Date: Thu, 16 Dec 2021 19:52:04 +0100 Message-Id: <20211216185217.1054495-1-lars@metafoo.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.3/26389/Thu Dec 16 07:02:49 2021) Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org I started the sysfs_emit() conversion during the last end-of-year break starting with the IIO core. It is end-of-year break again, so here is a bit more. This series contains conversions for simple users which all follow the pattern of `return sprintf(....)` or similar. The series also only covers cases where the attributes are completely custom and can not be converted to use iio_read_raw or iio_read_available. These other cases will be handled seperately by converting them to use the IIO APIs rather than device attributes. But this requires a bit more validation work than the simple straigh forward conversions. Lars-Peter Clausen (13): iio: core: Use sysfs_emit() iio: dmaengine-buffer: Use sysfs_emit() iio: ad7192: Use sysfs_emit() iio: ad9523: Use sysfs_emit() iio: as3935: Use sysfs_emit() iio: ina2xx-adc: sysfs_emit() iio: lm3533: Use sysfs_emit() iio: max31856: Use sysfs_emit() iio: max31865: Use sysfs_emit() iio: max9611: Use sysfs_emit() iio: ms_sensors: Use sysfs_emit() iio: scd4x: Use sysfs_emit() iio: sps30: Use sysfs_emit() drivers/iio/adc/ad7192.c | 4 ++-- drivers/iio/adc/ina2xx-adc.c | 2 +- drivers/iio/adc/max9611.c | 2 +- drivers/iio/buffer/industrialio-buffer-dmaengine.c | 2 +- drivers/iio/chemical/scd4x.c | 2 +- drivers/iio/chemical/sps30.c | 2 +- drivers/iio/common/ms_sensors/ms_sensors_i2c.c | 4 ++-- drivers/iio/frequency/ad9523.c | 2 +- drivers/iio/industrialio-buffer.c | 4 ++-- drivers/iio/industrialio-core.c | 2 +- drivers/iio/light/lm3533-als.c | 6 +++--- drivers/iio/proximity/as3935.c | 4 ++-- drivers/iio/temperature/max31856.c | 4 ++-- drivers/iio/temperature/max31865.c | 4 ++-- 14 files changed, 22 insertions(+), 22 deletions(-)