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

12345678910111213141516171819202122232425
  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. --- a/drivers/regulator/mcp16502.c
  14. +++ b/drivers/regulator/mcp16502.c
  15. @@ -93,6 +93,7 @@ static unsigned int mcp16502_of_map_mode
  16. .owner = THIS_MODULE, \
  17. .n_voltages = MCP16502_VSEL + 1, \
  18. .linear_ranges = _ranges, \
  19. + .linear_min_sel = VDD_LOW_SEL, \
  20. .n_linear_ranges = ARRAY_SIZE(_ranges), \
  21. .of_match = of_match_ptr(_name), \
  22. .of_map_mode = mcp16502_of_map_mode, \