123-regulator-mcp16502-add-linear_min_sel.patch 1.2 KB

123456789101112131415161718192021222324252627282930
  1. From f5a73f3bb600b96b6149f2115360e1d0d51fbac4 Mon Sep 17 00:00:00 2001
  2. From: Claudiu Beznea <[email protected]>
  3. Date: Fri, 13 Nov 2020 17:21:07 +0200
  4. Subject: [PATCH 123/247] regulator: mcp16502: add linear_min_sel
  5. Selectors b/w zero and VDD_LOW_SEL are not valid. Use linear_min_sel.
  6. Fixes: 919261c03e7ca ("regulator: mcp16502: add regulator driver for MCP16502")
  7. Signed-off-by: Claudiu Beznea <[email protected]>
  8. Link: https://lore.kernel.org/r/[email protected]
  9. Signed-off-by: Mark Brown <[email protected]>
  10. ---
  11. drivers/regulator/mcp16502.c | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/drivers/regulator/mcp16502.c b/drivers/regulator/mcp16502.c
  14. index 6d0ad74935b3..ab78f831f5bf 100644
  15. --- a/drivers/regulator/mcp16502.c
  16. +++ b/drivers/regulator/mcp16502.c
  17. @@ -93,6 +93,7 @@ static unsigned int mcp16502_of_map_mode(unsigned int mode)
  18. .owner = THIS_MODULE, \
  19. .n_voltages = MCP16502_VSEL + 1, \
  20. .linear_ranges = _ranges, \
  21. + .linear_min_sel = VDD_LOW_SEL, \
  22. .n_linear_ranges = ARRAY_SIZE(_ranges), \
  23. .of_match = of_match_ptr(_name), \
  24. .of_map_mode = mcp16502_of_map_mode, \
  25. --
  26. 2.32.0