* [lm-sensors] [PATCH 2.6] Documentation fix (writing-clients)
@ 2005-10-01 15:31 Hideki IWAMOTO
2005-10-02 11:35 ` Jean Delvare
0 siblings, 1 reply; 2+ messages in thread
From: Hideki IWAMOTO @ 2005-10-01 15:31 UTC (permalink / raw)
To: lm-sensors
o Remove flags parameter from detect function.
o i2c_smbus_read_i2c_block_data is not deleted in 2.6.10. It still exists.
--- linux-2.6.14-rc3/Documentation/i2c/writing-clients.org 2005-10-01 21:58:59.830765256 +0900
+++ linux-2.6.14-rc3/Documentation/i2c/writing-clients 2005-10-01 22:14:18.964035760 +0900
@@ -246,10 +246,7 @@ the detection to stop: other addresses a
This should only be done on fatal or internal errors, such as a memory
shortage or i2c_attach_client failing.
-For now, you can ignore the `flags' parameter. It is there for future use.
-
- int foo_detect_client(struct i2c_adapter *adapter, int address,
- unsigned short flags, int kind)
+ int foo_detect_client(struct i2c_adapter *adapter, int address, int kind)
{
int err = 0;
int i;
@@ -576,12 +573,12 @@ SMBus communication
extern s32 i2c_smbus_write_block_data(struct i2c_client * client,
u8 command, u8 length,
u8 *values);
+ extern s32 i2c_smbus_read_i2c_block_data(struct i2c_client * client,
+ u8 command, u8 *values);
These ones were removed in Linux 2.6.10 because they had no users, but could
be added back later if needed:
- extern s32 i2c_smbus_read_i2c_block_data(struct i2c_client * client,
- u8 command, u8 *values);
extern s32 i2c_smbus_read_block_data(struct i2c_client * client,
u8 command, u8 *values);
extern s32 i2c_smbus_write_i2c_block_data(struct i2c_client * client,
----
Hideki IWAMOTO h-iwamoto@kit.hi-ho.ne.jp
^ permalink raw reply [flat|nested] 2+ messages in thread* [lm-sensors] [PATCH 2.6] Documentation fix (writing-clients)
2005-10-01 15:31 [lm-sensors] [PATCH 2.6] Documentation fix (writing-clients) Hideki IWAMOTO
@ 2005-10-02 11:35 ` Jean Delvare
0 siblings, 0 replies; 2+ messages in thread
From: Jean Delvare @ 2005-10-02 11:35 UTC (permalink / raw)
To: lm-sensors
Ohaio Hideki,
> o Remove flags parameter from detect function.
This one I already fixed in one of Jeff Garzik's trees, as part of a
larger documentation patch. It's just a matter of time before it
reaches mainline.
http://www.kernel.org/git/?p=linux/kernel/git/jgarzik/misc-2.6.git;a=blobdiff;h›9b7d0e54f24d447fc07e3a25ac1696e5d60143;hpÌ25797017453600a686bbed6c18e0b8d07e6d03;hb\x0fc9dcdae08ec08daf1efd8e4bda78395a655240;f=Documentation/i2c/writing-clients
> o i2c_smbus_read_i2c_block_data is not deleted in 2.6.10. It still exists.
Correct, I've applied this one, thanks.
BTW, do not hesitate to sign the patches you send, by adding the
following line in the header comments:
Signed-off-by: Hideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp>
That way you'll always get properly credited for your work. This also
allows for easier tracking of changes if anyone has questions about a
particular patch.
Arigato,
--
Jean Delvare
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-02 11:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-01 15:31 [lm-sensors] [PATCH 2.6] Documentation fix (writing-clients) Hideki IWAMOTO
2005-10-02 11:35 ` Jean Delvare
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.