From: eolsen@google.com (Eric Olsen)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [PATCH] i2c: i2c_get_client is gone
Date: Tue, 24 Jan 2006 16:43:19 +0000 [thread overview]
Message-ID: <43D65927.8060508@google.com> (raw)
In-Reply-To: <11365852541953@kroah.com>
I was attempting to port a 2.4 kernel patch by Abraham van der Merwe
that splits the support of the DS1307 into 3 parts (device, nvram and
rtc). With the removal of i2c_get_client, what is the recommended
method for writting a driver like this?
Thanks
--eric
Greg KH wrote:
>[PATCH] i2c: i2c_get_client is gone
>
>The i2c_get_client function doesn't exist anymore, so we shouldn't
>have a definition for it in i2c.h.
>
>Signed-off-by: Jean Delvare <khali at linux-fr.org>
>Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
>
>---
>commit 482c788ded0aa9710722eaf9cf60886d3b923218
>tree a66b5810e0db6061da847c1edd73f3e2fa0c5f32
>parent 92b429461228f0f06a994dd3d4ccf1c9ff7596bd
>author Jean Delvare <khali at linux-fr.org> Sat, 26 Nov 2005 21:06:08 +0100
>committer Greg Kroah-Hartman <gregkh at suse.de> Thu, 05 Jan 2006 22:16:22 -0800
>
> include/linux/i2c.h | 13 ++-----------
> 1 files changed, 2 insertions(+), 11 deletions(-)
>
>diff --git a/include/linux/i2c.h b/include/linux/i2c.h
>index 85c517a..a9cea62 100644
>--- a/include/linux/i2c.h
>+++ b/include/linux/i2c.h
>@@ -296,17 +296,8 @@ extern int i2c_del_driver(struct i2c_dri
> extern int i2c_attach_client(struct i2c_client *);
> extern int i2c_detach_client(struct i2c_client *);
>
>-/* New function: This is to get an i2c_client-struct for controlling the
>- client either by using i2c_control-function or having the
>- client-module export functions that can be used with the i2c_client
>- -struct. */
>-extern struct i2c_client *i2c_get_client(int driver_id, int adapter_id,
>- struct i2c_client *prev);
>-
>-/* Should be used with new function
>- extern struct i2c_client *i2c_get_client(int,int,struct i2c_client *);
>- to make sure that client-struct is valid and that it is okay to access
>- the i2c-client.
>+/* Should be used to make sure that client-struct is valid and that it
>+ is okay to access the i2c-client.
> returns -ENODEV if client has gone in the meantime */
> extern int i2c_use_client(struct i2c_client *);
> extern int i2c_release_client(struct i2c_client *);
>
>
>_______________________________________________
>lm-sensors mailing list
>lm-sensors at lm-sensors.org
>http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
>
>
prev parent reply other threads:[~2006-01-24 16:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-06 22:07 [lm-sensors] [PATCH] i2c: i2c_get_client is gone Greg KH
2006-01-24 16:43 ` Eric Olsen [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=43D65927.8060508@google.com \
--to=eolsen@google.com \
--cc=lm-sensors@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 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.