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

PMIC_STATUS pmic_bklit_get_edge_slow ( bool *  edge  ) 

This function gets backlight analog edge slowing mode. DThe backlight

Parameters:
edge Edge slowing mode.
Returns:
This function returns PMIC_SUCCESS if successful.

Definition at line 776 of file pmic_light.c.

References pmic_read_reg(), and suspend_flag.

Referenced by pmic_light_ioctl().

{
      unsigned int mask;
      unsigned int value;

      if (suspend_flag == 1) {
            return -EBUSY;
      }
      mask = BITFMASK(BIT_SLEWLIMBL);
      CHECK_ERROR(pmic_read_reg(LREG_2, &value, mask));
      *edge = (bool) BITFEXT(value, BIT_SLEWLIMBL);

      return PMIC_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index