gpio: sysfs: Obey valid_mask
Do not allow exporting GPIOs which are set invalid by the driver's valid mask. Fixes: 726cb3ba ("gpiolib: Support 'gpio-reserved-ranges' property") Signed-off-by: NMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
Showing
想要评论请 注册 或 登录