Skip to content
Commit f94ab071 authored by Furkan Akkiz's avatar Furkan Akkiz Committed by Benjamin Cabé
Browse files

drivers: pwm: Fix prescaler configuration



This commit fixes the bug in the prescaler configuration formula.
Prescaler enumarations values are not consecutive numbers, so this
formula does not work correctly. This commit adds prescaler enums into
an array and sets PWM prescaler from this array with using
prescaler_index parameter.

Signed-off-by: default avatarFurkan Akkiz <hasanfurkan.akkiz@analog.com>
parent e7d5d7e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment