···2323static int regcache_rbtree_exit(struct regmap *map);24242525struct regcache_rbtree_node {2626- /* the actual rbtree node holding this block */2727- struct rb_node node;2828- /* base register handled by this block */2929- unsigned int base_reg;3026 /* block of adjacent registers */3127 void *block;3228 /* Which registers are present */3329 long *cache_present;3030+ /* base register handled by this block */3131+ unsigned int base_reg;3432 /* number of registers available in the block */3533 unsigned int blklen;3434+ /* the actual rbtree node holding this block */3535+ struct rb_node node;3636} __attribute__ ((packed));37373838struct regcache_rbtree_ctx {
+6-3
drivers/base/regmap/regmap-irq.c
···1010 * published by the Free Software Foundation.1111 */12121313-#include <linux/export.h>1413#include <linux/device.h>1515-#include <linux/regmap.h>1616-#include <linux/irq.h>1414+#include <linux/export.h>1715#include <linux/interrupt.h>1616+#include <linux/irq.h>1817#include <linux/irqdomain.h>1918#include <linux/pm_runtime.h>1919+#include <linux/regmap.h>2020#include <linux/slab.h>21212222#include "internal.h"···346346 int i;347347 int ret = -ENOMEM;348348 u32 reg;349349+350350+ if (chip->num_regs <= 0)351351+ return -EINVAL;349352350353 for (i = 0; i < chip->num_irqs; i++) {351354 if (chip->irqs[i].reg_offset % map->reg_stride)