summaryrefslogtreecommitdiff
path: root/drivers/timer/timer-uclass.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2021-10-08 00:17:22 -0500
committerAndre Przywara <andre.przywara@arm.com>2021-10-12 10:30:19 +0100
commitd3b02987cb6126650ff5077ccaba1e4e1ba76d6c (patch)
tree83081944dbb77db2d8387a46f5a299b89f0d6308 /drivers/timer/timer-uclass.c
parent3227c85fe76312290c3ec15a02dcba3f9c6bc399 (diff)
sunxi: pmic_bus: Clean up preprocessor conditions
Instead of using the SoC symbols to decide the bus type, use whichever bus driver is actually enabled. This allows collapsing all of the AXP2xx and AXP8xx variants into one "else" case. It also has the advantage of falling back to I2C when the other bus drivers are disabled; this works because all of the PMICs support I2C in addition to other interfaces. Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'drivers/timer/timer-uclass.c')
0 files changed, 0 insertions, 0 deletions