Re: [PATCH 1/7] iio: Use kmalloc_array() in iio_scan_mask_set()

Jonathan Cameron
2016-09-24T16:36:30Z

On 24/09/16 17:18, SF Markus Elfring wrote:
>> Applied to the togreg branch of iio.git - initially pushed out
>> as testing for the autobuilders to play with it.
>
> Thanks for your positive response.
>
>
> Do you see any need to improve the software situation around
> the macro "BITS_TO_LONGS" further?
>
> Do you fiddle with a programming interface like "bitmap_alloc" occasionally?
It might be clearer than having an array allocation as we do after this
patch. Obviously the representation is an array, but it is a little ugly
as it stands!
>
> Regards,
> Markus
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>