summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/rcar_i2c.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-05-02 10:28:10 +0800
committerHans de Goede <hdegoede@redhat.com>2016-05-25 17:52:39 +0200
commitaa23f539c88418333fb5300051642bc9b99d17b2 (patch)
tree8265b80f4c8d8a57f0a98f5836d3a61056381f7f /drivers/i2c/rcar_i2c.c
parent5af116b560d8a6e0b11d6239b5a8f783f9ac6fd1 (diff)
downloadtalos-obmc-uboot-aa23f539c88418333fb5300051642bc9b99d17b2.tar.gz
talos-obmc-uboot-aa23f539c88418333fb5300051642bc9b99d17b2.zip
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>
Diffstat (limited to 'drivers/i2c/rcar_i2c.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud