linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <Marius.Cristea@microchip.com>
To: <nuno.sa@analog.com>, <linux-iio@vger.kernel.org>
Cc: <dlechner@baylibre.com>, <srinivas.pandruvada@linux.intel.com>,
	<neil.armstrong@linaro.org>, <eblanc@baylibre.com>,
	<angelogioacchino.delregno@collabora.com>, <jic23@kernel.org>,
	<andy@kernel.org>, <Michael.Hennerich@analog.com>,
	<jbrunet@baylibre.com>, <khilman@baylibre.com>,
	<matthias.bgg@gmail.com>, <jikos@kernel.org>,
	<martin.blumenstingl@googlemail.com>, <matteomartelli3@gmail.com>
Subject: Re: [PATCH 3/9] iio: adc: mcp3564: replace sprintf() with sysfs_emit()
Date: Tue, 30 Sep 2025 15:59:40 +0000	[thread overview]
Message-ID: <61a9ae408469a0cd91fe04be1c7aa69ab90caca3.camel@microchip.com> (raw)
In-Reply-To: <20250930-dev-sprintf-cleanup-v1-3-5d65d096a952@analog.com>


Reviewed-by: Marius Cristea <marius.cristea@microchip.com>

On Tue, 2025-09-30 at 16:33 +0100, Nuno Sá via B4 Relay wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you
> know the content is safe
> 
> From: Nuno Sá <nuno.sa@analog.com>
> 
> Update the mcp3564_read_label() function to use sysfs_emit() for
> generating labels.
> 
> Signed-off-by: Nuno Sá <nuno.sa@analog.com>
> ---
>  drivers/iio/adc/mcp3564.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/mcp3564.c b/drivers/iio/adc/mcp3564.c
> index
> cd679ff10a97c4be19ca461126bdfae2fa8431f2..fcdf13f49c48f31ba3a0a907968
> 6d2b81a792744 100644
> --- a/drivers/iio/adc/mcp3564.c
> +++ b/drivers/iio/adc/mcp3564.c
> @@ -987,7 +987,7 @@ static int mcp3564_read_label(struct iio_dev
> *indio_dev,
>  {
>         struct mcp3564_state *adc = iio_priv(indio_dev);
> 
> -       return sprintf(label, "%s\n", adc->labels[chan->scan_index]);
> +       return sysfs_emit(label, "%s\n", adc->labels[chan-
> >scan_index]);
>  }
> 
>  static int mcp3564_parse_fw_children(struct iio_dev *indio_dev)
> 
> --
> 2.51.0
> 

  reply	other threads:[~2025-09-30 15:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-30 15:33 [PATCH 0/9] iio: replace sprintf() with sysfs_emit() in .read_label() op Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 1/9] iio: adc: ad4030: replace sprintf() with sysfs_emit() Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 2/9] iio: adc: ad7768-1: " Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 3/9] iio: adc: mcp3564: " Nuno Sá via B4 Relay
2025-09-30 15:59   ` Marius.Cristea [this message]
2025-09-30 15:33 ` [PATCH 4/9] iio: adc: meson_saradc: " Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 5/9] iio: adc: mt6360-adc: replace snprintf() " Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 6/9] iio: adc: pac1921: replace sprintf() " Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 7/9] iio: adc: qcom-spmi-rradc: replace snprintf() " Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 8/9] iio: position: hid-sensor-custom-intel-hinge: replace sprintf() " Nuno Sá via B4 Relay
2025-09-30 16:07   ` srinivas pandruvada
2025-09-30 15:33 ` [PATCH 9/9] iio: resolver: ad2s1210: " Nuno Sá via B4 Relay
2025-10-04 14:00 ` [PATCH 0/9] iio: replace sprintf() with sysfs_emit() in .read_label() op Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=61a9ae408469a0cd91fe04be1c7aa69ab90caca3.camel@microchip.com \
    --to=marius.cristea@microchip.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=dlechner@baylibre.com \
    --cc=eblanc@baylibre.com \
    --cc=jbrunet@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=jikos@kernel.org \
    --cc=khilman@baylibre.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=matteomartelli3@gmail.com \
    --cc=matthias.bgg@gmail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=nuno.sa@analog.com \
    --cc=srinivas.pandruvada@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).