lkml.org 
[lkml]   [2013]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 10/11] mfd: twl-core: Remove no longer valid comment regarding to write buffer size
    Date
    With the regmap conversion there is no longeer a need to allocate bigger
    buffer for writes

    Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
    ---
    drivers/mfd/twl-core.c | 3 ---
    include/linux/i2c/twl.h | 3 ---
    2 files changed, 6 deletions(-)

    diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c
    index e2895a4..9661204 100644
    --- a/drivers/mfd/twl-core.c
    +++ b/drivers/mfd/twl-core.c
    @@ -308,9 +308,6 @@ EXPORT_SYMBOL(twl_rev);
    * @reg: register address (just offset will do)
    * @num_bytes: number of bytes to transfer
    *
    - * IMPORTANT: for 'value' parameter: Allocate value num_bytes+1 and
    - * valid data starts at Offset 1.
    - *
    * Returns the result of operation - 0 is success
    */
    int twl_i2c_write(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes)
    diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h
    index 72adc88..e441fd8 100644
    --- a/include/linux/i2c/twl.h
    +++ b/include/linux/i2c/twl.h
    @@ -182,9 +182,6 @@ int twl_i2c_read_u8(u8 mod_no, u8 *val, u8 reg);

    /*
    * Read and write several 8-bit registers at once.
    - *
    - * IMPORTANT: For twl_i2c_write(), allocate num_bytes + 1
    - * for the value, and populate your data starting at offset 1.
    */
    int twl_i2c_write(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes);
    int twl_i2c_read(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes);
    --
    1.8.1


    \
     
     \ /
      Last update: 2013-01-16 15:21    [W:3.952 / U:0.180 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site