pwm: made export functions static
* removed functions from external api also. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
17
api/pwm.h
17
api/pwm.h
@@ -142,23 +142,6 @@ maa_result_t maa_pwm_pulsewidth_us(maa_pwm_context pwm, int us);
|
|||||||
*/
|
*/
|
||||||
maa_result_t maa_pwm_enable(maa_pwm_context pwm, int enable);
|
maa_result_t maa_pwm_enable(maa_pwm_context pwm, int enable);
|
||||||
|
|
||||||
/** Unexport the PWM context (maa_pwm_close() will call this function)
|
|
||||||
*
|
|
||||||
* @param dev The PWM context/
|
|
||||||
*
|
|
||||||
* @return maa result type.
|
|
||||||
*/
|
|
||||||
maa_result_t maa_pwm_unexport(maa_pwm_context pwm);
|
|
||||||
|
|
||||||
/** Unexport the PWM context (maa_pwm_close() will call this function)
|
|
||||||
* Forces operation regardless of ownership.
|
|
||||||
*
|
|
||||||
* @param dev The PWM context/
|
|
||||||
*
|
|
||||||
* @return maa result type.
|
|
||||||
*/
|
|
||||||
maa_result_t maa_pwm_unexport_force(maa_pwm_context pwm);
|
|
||||||
|
|
||||||
/** Change ownership of context
|
/** Change ownership of context
|
||||||
*
|
*
|
||||||
* @param pwm the context
|
* @param pwm the context
|
||||||
|
|||||||
@@ -259,15 +259,6 @@ maa_pwm_enable(maa_pwm_context dev, int enable)
|
|||||||
return MAA_SUCCESS;
|
return MAA_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
maa_result_t
|
|
||||||
maa_pwm_unexport(maa_pwm_context dev)
|
|
||||||
{
|
|
||||||
if (dev->owner) {
|
|
||||||
return maa_pwm_unexport_force(dev);
|
|
||||||
}
|
|
||||||
return MAA_ERROR_INVALID_RESOURCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
maa_result_t
|
maa_result_t
|
||||||
maa_pwm_unexport_force(maa_pwm_context dev)
|
maa_pwm_unexport_force(maa_pwm_context dev)
|
||||||
{
|
{
|
||||||
@@ -292,6 +283,15 @@ maa_pwm_unexport_force(maa_pwm_context dev)
|
|||||||
return MAA_SUCCESS;
|
return MAA_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
maa_result_t
|
||||||
|
maa_pwm_unexport(maa_pwm_context dev)
|
||||||
|
{
|
||||||
|
if (dev->owner) {
|
||||||
|
return maa_pwm_unexport_force(dev);
|
||||||
|
}
|
||||||
|
return MAA_ERROR_INVALID_RESOURCE;
|
||||||
|
}
|
||||||
|
|
||||||
maa_result_t
|
maa_result_t
|
||||||
maa_pwm_close(maa_pwm_context dev)
|
maa_pwm_close(maa_pwm_context dev)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user