lkml.org 
[lkml]   [2003]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [PATCH] i2c driver changes for 2.5.68
    From
    Date
    ChangeSet 1.1179.3.9, 2003/04/24 11:14:26-07:00, greg@kroah.com

    [PATCH] i2c: removed unneeded typedef from i2c-sensor.h


    drivers/i2c/i2c-sensor.c | 4 ++--
    include/linux/i2c-sensor.h | 7 ++-----
    2 files changed, 4 insertions(+), 7 deletions(-)


    diff -Nru a/drivers/i2c/i2c-sensor.c b/drivers/i2c/i2c-sensor.c
    --- a/drivers/i2c/i2c-sensor.c Thu Apr 24 16:46:20 2003
    +++ b/drivers/i2c/i2c-sensor.c Thu Apr 24 16:46:20 2003
    @@ -35,8 +35,8 @@

    /* Very inefficient for ISA detects, and won't work for 10-bit addresses! */
    int i2c_detect(struct i2c_adapter *adapter,
    - struct i2c_address_data *address_data,
    - i2c_found_addr_proc * found_proc)
    + struct i2c_address_data *address_data,
    + int (*found_proc) (struct i2c_adapter *, int, int))
    {
    int addr, i, found, j, err;
    struct i2c_force_data *this_force;
    diff -Nru a/include/linux/i2c-sensor.h b/include/linux/i2c-sensor.h
    --- a/include/linux/i2c-sensor.h Thu Apr 24 16:46:20 2003
    +++ b/include/linux/i2c-sensor.h Thu Apr 24 16:46:20 2003
    @@ -315,16 +315,13 @@
    {NULL}}; \
    SENSORS_INSMOD

    -typedef int i2c_found_addr_proc(struct i2c_adapter *adapter,
    - int addr, int kind);
    -
    /* Detect function. It iterates over all possible addresses itself. For
    SMBus addresses, it will only call found_proc if some client is connected
    to the SMBus (unless a 'force' matched); for ISA detections, this is not
    done. */
    extern int i2c_detect(struct i2c_adapter *adapter,
    - struct i2c_address_data *address_data,
    - i2c_found_addr_proc * found_proc);
    + struct i2c_address_data *address_data,
    + int (*found_proc) (struct i2c_adapter *, int, int));


    /* This macro is used to scale user-input to sensible values in almost all
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:35    [W:0.020 / U:88.828 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site