From: Matti Kaasinen <matti.kaasinen-9Aww8k/80nUxHbG02/KK1g@public.gmane.org>
To: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: at24.c - "convenient" byte transfer through sysfs
Date: Sat, 26 Jul 2008 02:37:53 +0300 [thread overview]
Message-ID: <488A63D1.4020906@kolumbus.fi> (raw)
Hi all!
Could anyone explain a bit the "convenient" part of transferring bytes
through sysfs. Both reading and writing seems requiring kobject
reference to the client operation is directed to. I have tried finding
ways getting the kobject reference for required i2c client without
getting too convinced without the my solutions. The best choice so far
is using bus_for_each_dev -helper function scanning through all the i2c
clients instantiated on i2c bus. That requires bus_type structure as its
first parameter. Unfortunately i2c_bus_type is not exported at least in
2.6.24 that I'm playing currently with. I've seen patch discussions
related to exporting/not exporting i2c_bus_type. Do anyone know the
current status/future plans with it or have other suggestions regarding
this byte transfer structure through sysfs to i2c clients?
Thanks in advance,
Matti Kaasinen
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
reply other threads:[~2008-07-25 23:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=488A63D1.4020906@kolumbus.fi \
--to=matti.kaasinen-9aww8k/80nuxhbg02/kk1g@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