lkml.org 
[lkml]   [2012]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/4] regulator: tps65910: update type for regmap
    Date
    When accessing the regmap via the read/write functions, we need to use a
    unsigned int * instead of a u8 * otherwise corruption will occur.

    Signed-off-by: Rhyland Klein <rklein@nvidia.com>
    ---
    drivers/regulator/tps65910-regulator.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c
    index 747bf57..9fd0fe1 100644
    --- a/drivers/regulator/tps65910-regulator.c
    +++ b/drivers/regulator/tps65910-regulator.c
    @@ -331,7 +331,7 @@ struct tps65910_reg {

    static inline int tps65910_read(struct tps65910_reg *pmic, u8 reg)
    {
    - u8 val;
    + unsigned int val;
    int err;

    err = pmic->mfd->read(pmic->mfd, reg, 1, &val);
    --
    1.7.0.4


    \
     
     \ /
      Last update: 2012-04-18 22:37    [W:2.428 / U:0.480 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site