public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: stefan.eletzhofer@eletztrick.de
To: linux-kernel@vger.kernel.org
Subject: i2c_get_client() missing?
Date: Tue, 27 Apr 2004 17:01:44 +0200	[thread overview]
Message-ID: <20040427150144.GA2517@gonzo.local> (raw)

Hi,
I'm in the process of porting my Epson 8564 RTC chip from 2.4 to
2.6.6-rc2. This is a RTC chip sitting on a I2C bus.

The code is here:
http://213.239.196.168/~seletz/patches/2.6.6-rc2/i2c-rtc8564.patch
http://213.239.196.168/~seletz/patches/2.6.6-rc2/machine-raalpha-rtc.patch

In order to split up functionality (I2C bus access and RTC misc device
stuff) I wrote two separate modules. In the rtc code module I did a i2c_get_client()
with the ID of my RTC chip to get a struct i2c_client which I think I need to
talk to the chip. I've implemented the command callback in my I2C module, which
I want to call from my RTC module.

Now I find that in 2.6.6-rc2 the i2c_get_client() implementation is missing (the prototype
is still in linux/i2c.h). Even the docs for i2c_use_client() refer to that function.

Most probably I'm missing something, but how is one supposed to access a i2c-client's
command function when i2c_get_client() is missing?

Of course I could just merge these two drivers and forget about separating i2c chip
access and rtc stuff, but ...

Thanks,
	Stefan E.

-- 
Eletztrick Computing - Customized Linux Development
Stefan Eletzhofer, Marktstrasse 43, DE-88214 Ravensburg
http://www.eletztrick.de

             reply	other threads:[~2004-04-27 15:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-27 15:01 stefan.eletzhofer [this message]
2004-04-27 15:35 ` i2c_get_client() missing? Greg KH
2004-04-27 16:46   ` stefan.eletzhofer
2004-04-27 18:21   ` Russell King
2004-04-28  8:13     ` stefan.eletzhofer
2004-04-28 13:36     ` stefan.eletzhofer

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=20040427150144.GA2517@gonzo.local \
    --to=stefan.eletzhofer@eletztrick.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