From: Przemyslaw Wegrzyn <pwegrzyn-qaBtZ/OuEkOiu113P13oHA@public.gmane.org>
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Finding particular I2C adapter?
Date: Mon, 10 Oct 2011 14:20:33 +0200 [thread overview]
Message-ID: <4E92E311.8080402@codepainters.com> (raw)
In-Reply-To: <4E8EF3DC.7060704-qaBtZ/OuEkOiu113P13oHA@public.gmane.org>
On 10/07/2011 02:43 PM, Przemyslaw Wegrzyn wrote:
> Ideally, I'd like to have a sort of wrapper module that will find the
> proper i2c_adapter and instantiate my i2c_client explicitly. Yet I know
> that iterating i2c adapters is discouraged at least (actually, is there
> any API now allowing for this? calling i2c_get_adapter with successive
> numbers is clearly a hack).
Answering my own question - there's i2c_for_each_dev() that I've
overlooked before. Still a hack, anyway.
--
Przemek
prev parent reply other threads:[~2011-10-10 12:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-07 12:43 Finding particular I2C adapter? Przemyslaw Wegrzyn
[not found] ` <4E8EF3DC.7060704-qaBtZ/OuEkOiu113P13oHA@public.gmane.org>
2011-10-10 12:20 ` Przemyslaw Wegrzyn [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=4E92E311.8080402@codepainters.com \
--to=pwegrzyn-qabtz/ouekoiu113p13oha@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.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.