]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
pwm: sun4i: Simplify controller mapping
authorAndre Przywara <andre.przywara@arm.com>
Sun, 18 Mar 2018 23:28:45 +0000 (23:28 +0000)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 27 Mar 2018 23:12:12 +0000 (01:12 +0200)
commit7b4c7c567d77dabbf7f5d561ba26425902cfafca
tree5aa9cf64cffe3b859745a851b2ed8b2322871449
parent6a89bb6cc021ce5938c8edfa57b61cff38553c51
pwm: sun4i: Simplify controller mapping

At the moment we assign our supported compatible strings to a respective
instance of our sun4i_pwm_data structure, even though some of them
are the same.
To avoid further clutter, split out the three different combinations of
features we have at the moment and name them accordingly.
This should make it more obvious which compatible string to use for new
SoCs.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-sun4i.c