pwm: atmel: Use a constant for maximum prescale value
authorUwe Kleine-König <uwe@kleine-koenig.org>
Sat, 24 Aug 2019 00:10:37 +0000 (02:10 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 8 Jan 2020 12:43:00 +0000 (13:43 +0100)
commitff55e7a314143e717f4d96271b541c29111502df
tree858810d2f5d29c0cbc31a48805de31de5af5efa4
parent3c269ba6d8af044ecdb69c610b24697a43ef71c3
pwm: atmel: Use a constant for maximum prescale value

The maximal prescale value is 10 for all supported variants. So drop the
member in the variant description and introduce a global constant
instead.

This reduces the size of the variant descriptions and the .apply()
callback can be compiled a bit more effectively.

Acked-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-atmel.c