Hi Ioana, > So you are suggesting gpio-regmap to allocate the bitmap using > devm_bitmap_alloc() and base its size on config->ngpio, then copy into > it the bitmap passed by the caller, right? Yes, that does seem more > error proof in terms of memory handling. Will change it in the next > version. Yes exactly. -michael