Re: [PATCH 1/7] iio: Use kmalloc_array() in iio_scan_mask_set()
From: Jonathan Cameron
Date: Sat Sep 24 2016 - 12:36:39 EST
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!
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html