From: Jonathan Cameron <jic23@kernel.org>
To: Matt Ranostay <mranostay@gmail.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: chemical: atlas-ph-sensor: switch regmap cache
Date: Sun, 14 Feb 2016 15:02:11 +0000 [thread overview]
Message-ID: <56C096F3.9070908@kernel.org> (raw)
In-Reply-To: <1455412842-750-1-git-send-email-mranostay@gmail.com>
On 14/02/16 01:20, Matt Ranostay wrote:
> switch from using REGCACHE_FLAT to REGCACHE_RBTREE so initial hw values
> are read from device. This also allows some volatile ranges to be
> dropped.
>
> Signed-off-by: Matt Ranostay <mranostay@gmail.com>
I'm lost here. Why should changing the storage of the register cache result
in different behaviour other than in efficiency of access to cached values?
Jonathan
> ---
> drivers/iio/chemical/atlas-ph-sensor.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/iio/chemical/atlas-ph-sensor.c b/drivers/iio/chemical/atlas-ph-sensor.c
> index 06cd49c..71c8e02 100644
> --- a/drivers/iio/chemical/atlas-ph-sensor.c
> +++ b/drivers/iio/chemical/atlas-ph-sensor.c
> @@ -65,8 +65,6 @@ struct atlas_data {
>
> static const struct regmap_range atlas_volatile_ranges[] = {
> regmap_reg_range(ATLAS_REG_INT_CONTROL, ATLAS_REG_INT_CONTROL),
> - regmap_reg_range(ATLAS_REG_CALIB_STATUS, ATLAS_REG_CALIB_STATUS),
> - regmap_reg_range(ATLAS_REG_TEMP_DATA, ATLAS_REG_TEMP_DATA + 4),
> regmap_reg_range(ATLAS_REG_PH_DATA, ATLAS_REG_PH_DATA + 4),
> };
>
> @@ -83,7 +81,7 @@ static const struct regmap_config atlas_regmap_config = {
>
> .volatile_table = &atlas_volatile_table,
> .max_register = ATLAS_REG_PH_DATA + 4,
> - .cache_type = REGCACHE_FLAT,
> + .cache_type = REGCACHE_RBTREE,
> };
>
> static const struct iio_chan_spec atlas_channels[] = {
>
next prev parent reply other threads:[~2016-02-14 15:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-14 1:20 [PATCH] iio: chemical: atlas-ph-sensor: switch regmap cache Matt Ranostay
2016-02-14 15:02 ` Jonathan Cameron [this message]
2016-02-14 17:40 ` Lars-Peter Clausen
2016-02-14 19:52 ` Matt Ranostay
2016-02-15 15:02 ` Mark Brown
2016-02-17 21:19 ` Jonathan Cameron
2016-02-17 21:44 ` Matt Ranostay
2016-02-19 18:59 ` 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=56C096F3.9070908@kernel.org \
--to=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=mranostay@gmail.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.