]> git.baikalelectronics.ru Git - kernel.git/commit
iio: buffer: re-introduce bitmap_zalloc() for trialmask
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Sat, 21 Mar 2020 08:59:56 +0000 (10:59 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:13 +0000 (16:56 +0100)
commitde08eda9bad5e389cb9198641ba66e0f1e593578
treecb5339c972b552f4fe334c9865e803c402f64b68
parent85f1ece116ff9edb3df100ea3d903e19d0b99726
iio: buffer: re-introduce bitmap_zalloc() for trialmask

Commit eae802350bb1e ("iio: buffer: Switch to bitmap_zalloc()") introduced
bitmap_alloc(), but commit 8fa9aadb43e82 ("iio: Fix scan mask selection")
reverted it.

This change adds it back. The only difference is that it's adding
bitmap_zalloc(). There might be some changes later that would require
initializing it to zero. In any case, now it's already zero-ing the
trialmask.

Appears to have been the result of merge conflict resolution rather
than an intentional revert.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-buffer.c