]> git.baikalelectronics.ru Git - 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)
commit259a5443be577bb2b79e98aee81f8dcd81f370c1
tree5aa9cf64cffe3b859745a851b2ed8b2322871449
parent097266fa1692c12457a6ad73aa6b787861ee151f
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