Thread (68 messages) 68 messages, 6 authors, 2015-07-20

Re: [RFC PATCH 05/15] pwm: introduce default period and polarity concepts

From: Uwe Kleine-König <hidden>
Date: 2015-07-02 06:44:45
Also in: linux-arm-kernel, linux-leds, linux-pwm, linux-tegra

On Wed, Jul 01, 2015 at 10:21:51AM +0200, Boris Brezillon wrote:
When requested by a user, the PWM is assigned a default period and polarity
extracted from the DT, the platform data or statically set by the driver.
Those default values are currently stored in the period and polarity
fields of the pwm_device struct, but they will be stored somewhere else
once we have introduced the architecture allowing for hardware state
retrieval.

The pwm_set_default_polarity and pwm_set_default_period should only be
used by PWM drivers or the PWM core infrastructure to specify the
default period and polarity values.
Would it make sense to put the prototypes of
pwm_set_default_p{olarity,eriod} into (say) drivers/pwm/pwm-private.h
then?

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help