lkml.org 
[lkml]   [2012]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/4] mfd: tps65910: cache register when we need it
    Date
    During regmap initialization, we do not provide the default value and
    hence in place of caching register during regmap_init(), cache it
    when actually we need it i.e. after reading of that register.

    Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
    ---
    drivers/mfd/tps65910.c | 3 +--
    1 files changed, 1 insertions(+), 2 deletions(-)

    diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
    index 7a55af9..0f95ddf 100644
    --- a/drivers/mfd/tps65910.c
    +++ b/drivers/mfd/tps65910.c
    @@ -85,8 +85,7 @@ static const struct regmap_config tps65910_regmap_config = {
    .reg_bits = 8,
    .val_bits = 8,
    .volatile_reg = is_volatile_reg,
    - .max_register = TPS65910_MAX_REGISTER,
    - .num_reg_defaults_raw = TPS65910_MAX_REGISTER,
    + .max_register = TPS65910_MAX_REGISTER - 1,
    .cache_type = REGCACHE_RBTREE,
    };

    --
    1.7.1.1


    \
     
     \ /
      Last update: 2012-05-09 15:41    [W:0.021 / U:0.588 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site