Re: [PATCH v2 09/12] sunxi: pmic_bus: Clean up preprocessor conditions

2021-10-12 Thread Andre Przywara
On Fri, 8 Oct 2021 00:17:22 -0500 Samuel Holland wrote: > 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

[PATCH v2 09/12] sunxi: pmic_bus: Clean up preprocessor conditions

2021-10-07 Thread Samuel Holland
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