gpio: uapi: define GPIO_MAX_NAME_SIZE for array sizes
authorKent Gibson <warthog618@gmail.com>
Mon, 28 Sep 2020 00:27:50 +0000 (08:27 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 30 Sep 2020 08:56:34 +0000 (10:56 +0200)
commit539430fbbcc4a8d02451c77fff1ecd1f3b5f8abf
treeb85e927a51acf57c8e9e7e03604d213cc7cb6173
parent69e4e1368803266d0e06dba86868f64f7b277cde
gpio: uapi: define GPIO_MAX_NAME_SIZE for array sizes

Replace constant array sizes with a macro constant to clarify the source
of array sizes, provide a place to document any constraints on the size,
and to simplify array sizing in userspace if constructing structs
from their composite fields.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
include/uapi/linux/gpio.h