Private
Public Access
2
0

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:
Thomas Ingleby
2014-05-21 14:56:11 +01:00
parent 98800a5c76
commit a2c7eb5458
2 changed files with 9 additions and 26 deletions

View File

@@ -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);
/** 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
*
* @param pwm the context

View File

@@ -259,15 +259,6 @@ maa_pwm_enable(maa_pwm_context dev, int enable)
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_pwm_unexport_force(maa_pwm_context dev)
{
@@ -292,6 +283,15 @@ maa_pwm_unexport_force(maa_pwm_context dev)
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_pwm_close(maa_pwm_context dev)
{