From: greg@kroah.com (Greg KH)
To: linux-kernel@vger.kernel.org, sensors@stimpy.netroedge.com
Subject: [PATCH] i2c driver changes for 2.5.68
Date: Thu, 19 May 2005 06:23:54 +0000 [thread overview]
Message-ID: <1051228746305@kroah.com> (raw)
In-Reply-To: <10512287461640@kroah.com>
In-Reply-To: <10512287461373@kroah.com>
ChangeSet 1.1179.3.7, 2003/04/24 11:13:08-07:00, greg@kroah.com
[PATCH] i2c: removed unused flags paramater in found_proc callback.
drivers/i2c/i2c-core.c | 8 ++++----
include/linux/i2c.h | 5 +----
2 files changed, 5 insertions(+), 8 deletions(-)
diff -Nru a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
--- a/drivers/i2c/i2c-core.c Thu Apr 24 16:46:44 2003
+++ b/drivers/i2c/i2c-core.c Thu Apr 24 16:46:44 2003
@@ -618,8 +618,8 @@
* ----------------------------------------------------
*/
int i2c_probe(struct i2c_adapter *adapter,
- struct i2c_client_address_data *address_data,
- i2c_client_found_addr_proc *found_proc)
+ struct i2c_client_address_data *address_data,
+ int (*found_proc) (struct i2c_adapter *, int, int))
{
int addr,i,found,err;
int adap_id = i2c_adapter_id(adapter);
@@ -644,7 +644,7 @@
(addr = address_data->force[i+1])) {
DEB2(printk(KERN_DEBUG "i2c-core.o: found force parameter for adapter %d, addr %04x\n",
adap_id,addr));
- if ((err = found_proc(adapter,addr,0,0)))
+ if ((err = found_proc(adapter,addr,0)))
return err;
found = 1;
}
@@ -732,7 +732,7 @@
/* OK, so we really should examine this address. First check
whether there is some client here at all! */
if (i2c_smbus_xfer(adapter,addr,0,0,0,I2C_SMBUS_QUICK,NULL) >= 0)
- if ((err = found_proc(adapter,addr,0,-1)))
+ if ((err = found_proc(adapter,addr,-1)))
return err;
}
return 0;
diff -Nru a/include/linux/i2c.h b/include/linux/i2c.h
--- a/include/linux/i2c.h Thu Apr 24 16:46:44 2003
+++ b/include/linux/i2c.h Thu Apr 24 16:46:44 2003
@@ -338,12 +338,9 @@
* It will only call found_proc if some client is connected at the
* specific address (unless a 'force' matched);
*/
-typedef int i2c_client_found_addr_proc (struct i2c_adapter *adapter,
- int addr, unsigned short flags,int kind);
-
extern int i2c_probe(struct i2c_adapter *adapter,
struct i2c_client_address_data *address_data,
- i2c_client_found_addr_proc *found_proc);
+ int (*found_proc) (struct i2c_adapter *, int, int));
/* An ioctl like call to set div. parameters of the adapter.
*/
WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org, sensors@stimpy.netroedge.com
Subject: Re: [PATCH] i2c driver changes for 2.5.68
Date: Thu, 24 Apr 2003 16:59:06 -0700 [thread overview]
Message-ID: <1051228746305@kroah.com> (raw)
In-Reply-To: <10512287461640@kroah.com>
ChangeSet 1.1179.3.7, 2003/04/24 11:13:08-07:00, greg@kroah.com
[PATCH] i2c: removed unused flags paramater in found_proc callback.
drivers/i2c/i2c-core.c | 8 ++++----
include/linux/i2c.h | 5 +----
2 files changed, 5 insertions(+), 8 deletions(-)
diff -Nru a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
--- a/drivers/i2c/i2c-core.c Thu Apr 24 16:46:44 2003
+++ b/drivers/i2c/i2c-core.c Thu Apr 24 16:46:44 2003
@@ -618,8 +618,8 @@
* ----------------------------------------------------
*/
int i2c_probe(struct i2c_adapter *adapter,
- struct i2c_client_address_data *address_data,
- i2c_client_found_addr_proc *found_proc)
+ struct i2c_client_address_data *address_data,
+ int (*found_proc) (struct i2c_adapter *, int, int))
{
int addr,i,found,err;
int adap_id = i2c_adapter_id(adapter);
@@ -644,7 +644,7 @@
(addr == address_data->force[i+1])) {
DEB2(printk(KERN_DEBUG "i2c-core.o: found force parameter for adapter %d, addr %04x\n",
adap_id,addr));
- if ((err = found_proc(adapter,addr,0,0)))
+ if ((err = found_proc(adapter,addr,0)))
return err;
found = 1;
}
@@ -732,7 +732,7 @@
/* OK, so we really should examine this address. First check
whether there is some client here at all! */
if (i2c_smbus_xfer(adapter,addr,0,0,0,I2C_SMBUS_QUICK,NULL) >= 0)
- if ((err = found_proc(adapter,addr,0,-1)))
+ if ((err = found_proc(adapter,addr,-1)))
return err;
}
return 0;
diff -Nru a/include/linux/i2c.h b/include/linux/i2c.h
--- a/include/linux/i2c.h Thu Apr 24 16:46:44 2003
+++ b/include/linux/i2c.h Thu Apr 24 16:46:44 2003
@@ -338,12 +338,9 @@
* It will only call found_proc if some client is connected at the
* specific address (unless a 'force' matched);
*/
-typedef int i2c_client_found_addr_proc (struct i2c_adapter *adapter,
- int addr, unsigned short flags,int kind);
-
extern int i2c_probe(struct i2c_adapter *adapter,
struct i2c_client_address_data *address_data,
- i2c_client_found_addr_proc *found_proc);
+ int (*found_proc) (struct i2c_adapter *, int, int));
/* An ioctl like call to set div. parameters of the adapter.
*/
next prev parent reply other threads:[~2005-05-19 6:23 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-24 23:58 [BK PATCH] i2c driver changes for 2.5.68 Greg KH
2005-05-19 6:23 ` Greg KH
2003-04-24 23:59 ` [PATCH] " Greg KH
2005-05-19 6:23 ` Greg KH
2003-04-24 23:59 ` Greg KH
2005-05-19 6:23 ` Greg KH
2003-04-24 23:59 ` Greg KH
2005-05-19 6:23 ` Greg KH
2003-04-24 23:59 ` Greg KH
2005-05-19 6:23 ` Greg KH
2003-04-24 23:59 ` Greg KH
2005-05-19 6:23 ` Greg KH
2003-04-24 23:59 ` Greg KH
2005-05-19 6:23 ` Greg KH
2003-04-24 23:59 ` Greg KH [this message]
2005-05-19 6:23 ` Greg KH
2003-04-24 23:59 ` Greg KH
2005-05-19 6:23 ` Greg KH
2003-04-24 23:59 ` Greg KH
2005-05-19 6:23 ` Greg KH
2003-04-24 23:59 ` Greg KH
2005-05-19 6:23 ` Greg KH
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=1051228746305@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sensors@stimpy.netroedge.com \
/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.