aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dvb
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-06-20 04:44:05 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-07-05 09:04:10 -0400
commitf567fde24640cf6f2d6416196bfc8b3fefc8e433 (patch)
treed30b90b0e73d3513123764756439a5f27f0682db /include/linux/dvb
parent42b14cb037fefa33a2ff51c4d3915a49c71de3d5 (diff)
gpio: fix bits conflict for gpio flags
The bit 2 and 3 in GPIO flag are allocated for the flag OPEN_DRAIN/OPEN_SOURCE. These bits are reused for the flag EXPORT/EXPORT_CHANGEABLE and so creating conflict. Fix this conflict by assigning bit 4 and 5 for the flag EXPORT/EXPORT_CHANGEABLE. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/dvb')
0 files changed, 0 insertions, 0 deletions
iated with it; to reduce the allocated size of an array, call:: int flex_array_shrink(struct flex_array *array); The return value will be the number of pages of memory actually freed. This function works by scanning the array for pages containing nothing but FLEX_ARRAY_FREE bytes, so (1) it can be expensive, and (2) it will not work if the array's pages are allocated with __GFP_ZERO. It is possible to remove all elements of an array with a call to:: void flex_array_free_parts(struct flex_array *array); This call frees all elements, but leaves the array itself in place. Freeing the entire array is done with:: void flex_array_free(struct flex_array *array); As of this writing, there are no users of flexible arrays in the mainline kernel. The functions described here are also not exported to modules; that will probably be fixed when somebody comes up with a need for it.