diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2019-08-19 11:30:58 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-08-20 10:42:07 +0200 |
commit | eb1e8bd6e3900e3a3b9776cd1b09ecfc05573619 (patch) | |
tree | ae5a6cb3d886b6996863b19b9ada95fc0358e273 /include/linux/gpio | |
parent | da9b142ab2c55ae8c46242a7624fdf62c4089e7f (diff) | |
download | linux-eb1e8bd6e3900e3a3b9776cd1b09ecfc05573619.tar.gz linux-eb1e8bd6e3900e3a3b9776cd1b09ecfc05573619.tar.bz2 linux-eb1e8bd6e3900e3a3b9776cd1b09ecfc05573619.zip |
gpio: Use callback presence to determine need of valid_mask
After we switched the two drivers that have .need_valid_mask
set to use the callback for setting up the .valid_mask,
we can just use the presence of the .init_valid_mask()
callback (or the OF reserved ranges, nota bene) to determine
whether to allocate the mask or not and we can drop the
.need_valid_mask field altogether.
Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
Cc: Amelie Delaunay <amelie.delaunay@st.com>
Cc: Stephen Boyd <swboyd@chromium.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20190819093058.10863-1-linus.walleij@linaro.org
Diffstat (limited to 'include/linux/gpio')
-rw-r--r-- | include/linux/gpio/driver.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index dc03323897ef..340121c7d2fb 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -404,15 +404,6 @@ struct gpio_chip { #endif /* CONFIG_GPIOLIB_IRQCHIP */ /** - * @need_valid_mask: - * - * If set core allocates @valid_mask with all its values initialized - * with init_valid_mask() or set to one if init_valid_mask() is not - * defined - */ - bool need_valid_mask; - - /** * @valid_mask: * * If not %NULL holds bitmask of GPIOs which are valid to be used |