commit | c80376cadd2bcecc6aec9d774079da793a56b176 | [log] [tgz] |
---|---|---|
author | Chen-Yu Tsai <wens@csie.org> | Mon May 02 10:28:10 2016 +0800 |
committer | Hans de Goede <hdegoede@redhat.com> | Wed May 25 17:52:39 2016 +0200 |
tree | 8265b80f4c8d8a57f0a98f5836d3a61056381f7f | |
parent | 40aa3d5416ce2bca175693bdb56647762da5e6a3 [diff] |
power: axp221: Remove switch case to simplify axp_set_eldo The ELDO enable bits and registers are contiguous for axp221. Instead of a switch case testing against the index, just use the index to shift the bit or register offset. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>