public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andreas Werner <andy@wernerandy.de>
To: linux-kernel@vger.kernel.org
Subject: regmap different register size
Date: Tue, 26 May 2015 20:54:25 +0200	[thread overview]
Message-ID: <20150526185425.GA26217@wernerandy.de> (raw)

Hi,
i have a question regarding regmap usage.

I have a i2c multifunction device which does have a register and value width of 8bits except
the revision register. The revision can only be read by a i2c block transfer.

Does it makes sense to read the Revision once by the i2c API and let the rest of the device read/write
by regmap?

Regmap should reduce code but in this case i had to check the i2c block functionality first then read the
revisoin and then init the regmap stuff.

May be in this case it would be better to use the i2c only instead of mixing i2c API and regmap.

Regards
Andy

             reply	other threads:[~2015-05-26 18:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-26 18:54 Andreas Werner [this message]
2015-05-26 19:00 ` regmap different register size Felipe Balbi
2015-05-26 19:27   ` Andreas Werner

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=20150526185425.GA26217@wernerandy.de \
    --to=andy@wernerandy.de \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox