aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/asix.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-11 08:53:58 -0400
committerLuis Henriques <luis.henriques@canonical.com>2012-05-25 12:24:43 -0400
commit3edc012b2873dbf951c8ef9788ec379b3b0311cc (patch)
tree7e81c77bf29f3f91fc7ee42067edd3fca2b1ce4c /drivers/net/usb/asix.c
parent974b602be4e0cec127258aecda078e8180173274 (diff)
regulator: Fix the logic to ensure new voltage setting in valid range
BugLink: http://bugs.launchpad.net/bugs/1002880 commit f55205f4d4a8823a11bb8b37ef2ecbd78fb09463 upstream. I think this is a typo. To ensure new voltage setting won't greater than desc->max, the equation should be desc->min + desc->step * new_val <= desc->max. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Diffstat (limited to 'drivers/net/usb/asix.c')
0 files changed, 0 insertions, 0 deletions