Merge remote-tracking branches 'regmap/topic/64bit' and 'regmap/topic/irq-type' into...
authorMark Brown <broonie@kernel.org>
Tue, 5 Jan 2016 19:07:17 +0000 (19:07 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 5 Jan 2016 19:07:17 +0000 (19:07 +0000)
1  2  3 
drivers/base/regmap/regcache.c
drivers/base/regmap/regmap-irq.c
drivers/base/regmap/regmap.c
include/linux/regmap.h

Simple merge
index 4d2cb21254aaca8cfe64eba1333ac28a8902a49e,8d16db533527362efa638f67b69673607d069327,dbe7a0d15a26693db214e1270be5f470796e0b6b..9b0d202414d065bf6e03a6f39bb33c9925dee4db
@@@@ -420,11 -420,10 -484,15 +484,16 @@@@ int regmap_add_irq_chip(struct regmap *
        else
                d->irq_reg_stride = 1;
   
++      if (chip->type_reg_stride)
++              d->type_reg_stride = chip->type_reg_stride;
++      else
++              d->type_reg_stride = 1;
++ 
        if (!map->use_single_read && map->reg_stride == 1 &&
            d->irq_reg_stride == 1) {
 --             d->status_reg_buf = kmalloc(map->format.val_bytes *
 --                                         chip->num_regs, GFP_KERNEL);
 ++             d->status_reg_buf = kmalloc_array(chip->num_regs,
 ++                                               map->format.val_bytes,
 ++                                               GFP_KERNEL);
                if (!d->status_reg_buf)
                        goto err_alloc;
        }
Simple merge
Simple merge