Re: [PATCH] regulator: core: Allow fixed voltage range in multiplelinear ranges

From: Mark Brown
Date: Thu Jul 18 2013 - 10:55:14 EST


On Thu, Jul 18, 2013 at 10:21:57PM +0800, Axel Lin wrote:
> Current code does not allow fixed voltage range in multiple linear ranges.
> If someone does set range->uV_step == 0 in one of the linear ranges, we hit
> divided by zero bug. This patch fixes this issue.
> For fixed voltage range, return any selector means the same voltage.
> Thus just return 0.

Applied, thanks.

Attachment: signature.asc
Description: Digital signature