From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Linux I2C <i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org>
Subject: [PATCH 0/3] i2c-tools: Allow passing i2c bus by name
Date: Sat, 12 Apr 2008 13:58:41 +0200 [thread overview]
Message-ID: <20080412135841.1983d15c@hyperion.delvare> (raw)
Hi all,
This patch set lets the user provide the i2c bus by name, rather than
number, in i2cdetect, i2cdump, i2cget and i2cset. The first patch
refactors the handling of the i2cbus command line argument so that
further changes only have to be done in once place. The second patch
splits print_i2c_busses into a gathering part and a printing part. The
third patch makes use of the gathering part to resolve the bus name to
a bus number.
This has been tested on both Linux 2.4 and Linux 2.6 and works well for
me. I welcome comments, reviews and testing.
Thanks,
--
Jean Delvare
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
next reply other threads:[~2008-04-12 11:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-12 11:58 Jean Delvare [this message]
[not found] ` <20080412135841.1983d15c-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-04-12 12:34 ` [PATCH 1/3] Refactor the handling of the i2cbus command line argument Jean Delvare
2008-04-12 12:35 ` [PATCH 2/3] Split print_i2c_busses into a gathering part and a printing part Jean Delvare
2008-04-12 12:38 ` [PATCH 3/3] Allow passing i2c bus by name Jean Delvare
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=20080412135841.1983d15c@hyperion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=i2c-GZX6beZjE8VD60Wz+7aTrA@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox