소스 검색

regulator: core: Ensure selector is mapped

Clearly the testing only covered the bottom range.

Signed-off-by: Mark Brown <broonie@linaro.org>
Mark Brown 12 년 전
부모
커밋
6c918d2209
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      drivers/regulator/core.c

+ 2 - 0
drivers/regulator/core.c

@@ -2446,6 +2446,8 @@ int regulator_map_voltage_linear_range(struct regulator_dev *rdev,
 				return ret;
 		}
 
+		ret += range->min_sel;
+
 		break;
 	}