Changeset 4022

Show
Ignore:
Timestamp:
01/07/06 18:19:24 (7 years ago)
Author:
khali
Message:

Drop i2c-dev's empty command implementation. This is a backport
from Linux 2.6, original patch from Laurent Riffard. Also update the
documentation not to suggest an empty implementation of command.

Location:
i2c/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/CHANGES

    r4021 r4022  
    2222                     Iwamoto) 
    2323  doc/writing-clients: New memory allocation model 
     24                       Drop empty command implementation example 
    2425  i2c-core: Fix logic error in SMBus Write Word transaction with software 
    2526            PEC (Hideki Iwamoto) 
     
    3031            Rewrite software PEC implementation (2.6 backport) 
    3132            Improve debugging in i2c_transfer (2.6 backport) 
     33  i2c-dev: Drop empty command implementation (2.6 backport, Laurent Riffard) 
    3234  i2c.h: Fix union i2c_smbus_data definition 
    3335         Delete 2 out-of-date, colliding ioctl defines 
  • i2c/trunk/doc/writing-clients

    r4011 r4022  
    658658need this. You may even set it to NULL. 
    659659 
    660   /* No commands defined */ 
    661   int foo_command(struct i2c_client *client, unsigned int cmd, void *arg) 
    662   { 
    663     return 0; 
    664   } 
    665  
    666660 
    667661Sending and receiving 
  • i2c/trunk/kernel/i2c-dev.c

    r3986 r4022  
    8989        .attach_adapter = i2cdev_attach_adapter, 
    9090        .detach_client  = i2cdev_detach_client, 
    91         .command        = i2cdev_command, 
    9291}; 
    9392 
     
    464463} 
    465464 
    466 static int i2cdev_command(struct i2c_client *client, unsigned int cmd, 
    467                            void *arg) 
    468 { 
    469         return -1; 
    470 } 
    471  
    472465static int __init i2c_dev_init(void) 
    473466{