From: Joshua Crofts <joshua.crofts1@gmail.com>
To: Mert Seftali <mertsftl@gmail.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Jelle van der Waa" <jelle@vdwaa.nl>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iio: accel: dmard09: Implement IIO_CHAN_INFO_SCALE
Date: Fri, 3 Jul 2026 15:32:45 +0200 [thread overview]
Message-ID: <20260703153245.00001d9e@gmail.com> (raw)
In-Reply-To: <20260703130750.66549-1-mertseftali@web.de>
On Fri, 3 Jul 2026 15:07:50 +0200
Mert Seftali <mertsftl@gmail.com> wrote:
> struct dmard09_data {
> struct i2c_client *client;
> };
> @@ -79,6 +82,10 @@ static int dmard09_read_raw(struct iio_dev *indio_dev,
> *val = accel;
>
> return IIO_VAL_INT;
> + case IIO_CHAN_INFO_SCALE:
> + *val = 0;
> + *val2 = DMARD09_SCALE_NANO;
Add a blank line here - same as the previous case.
> + return IIO_VAL_INT_PLUS_NANO;
> default:
> return -EINVAL;
> }
--
Kind regards
CJD
prev parent reply other threads:[~2026-07-03 13:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-03 13:07 [PATCH] iio: accel: dmard09: Implement IIO_CHAN_INFO_SCALE Mert Seftali
2026-07-03 13:30 ` Andy Shevchenko
2026-07-03 13:32 ` Joshua Crofts [this message]
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=20260703153245.00001d9e@gmail.com \
--to=joshua.crofts1@gmail.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jelle@vdwaa.nl \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mertsftl@gmail.com \
--cc=nuno.sa@analog.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.