Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

PMIC_STATUS pmic_tcled_disable_half_current ( void   ) 

This function disables Tri-color LED half current mode.

Returns:
This function returns PMIC_SUCCESS if successful.

Definition at line 2114 of file pmic_light.c.

References pmic_write_reg(), and suspend_flag.

Referenced by pmic_light_ioctl().

{
      unsigned int mask = 0;
      unsigned int value = 0;

      if (suspend_flag == 1) {
            return -EBUSY;
      }

      value = BITFVAL(BIT_TC1HALF, 0);
      mask = BITFMASK(BIT_TC1HALF);

      CHECK_ERROR(pmic_write_reg(LREG_1, value, mask));

      return PMIC_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index