From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: William Breathitt Gray <william.gray@linaro.org>
Cc: Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iio: addac: stx104: Migrate to the regmap API
Date: Mon, 20 Mar 2023 17:51:32 +0200 [thread overview]
Message-ID: <ZBiBBJOmjOAHGUn0@smile.fi.intel.com> (raw)
In-Reply-To: <20230319202256.352939-1-william.gray@linaro.org>
On Sun, Mar 19, 2023 at 04:22:56PM -0400, William Breathitt Gray wrote:
> The regmap API supports IO port accessors so we can take advantage of
> regmap abstractions rather than handling access to the device registers
> directly in the driver.
...
> -/**
> - * struct stx104_iio - IIO device private data structure
I believe this...
> - * @chan_out_states: channels' output states
> - * @reg: I/O address offset for the device registers
> - */
> -struct stx104_iio {
...and this can be left here. With that the diff won't be too disrupted.
(You are using only pointers to the generic data types in the struct
definition, that's why its location can be almost anywhere before the
first its real user.)
> - unsigned int chan_out_states[STX104_NUM_OUT_CHAN];
> - struct stx104_reg __iomem *reg;
...
> +struct stx104_iio {
> + struct regmap *aio_data_map;
> + struct regmap *aio_ctl_map;
> };
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2023-03-20 16:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-19 20:22 [PATCH] iio: addac: stx104: Migrate to the regmap API William Breathitt Gray
2023-03-20 15:51 ` Andy Shevchenko [this message]
2023-03-20 16:35 ` William Breathitt Gray
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=ZBiBBJOmjOAHGUn0@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=william.gray@linaro.org \
/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.