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

int pmic_light_init_reg ( void   ) 

This function initialize Light registers of mc13783 with 0.

Returns:
This function returns 0 if successful.

Definition at line 2618 of file pmic_light.c.

References pmic_write_reg().

Referenced by pmic_light_suspend().

{
      CHECK_ERROR(pmic_write_reg(LREG_0, 0, PMIC_ALL_BITS));
      CHECK_ERROR(pmic_write_reg(LREG_1, 0, PMIC_ALL_BITS));
      CHECK_ERROR(pmic_write_reg(LREG_2, 0, PMIC_ALL_BITS));
      CHECK_ERROR(pmic_write_reg(LREG_3, 0, PMIC_ALL_BITS));
      CHECK_ERROR(pmic_write_reg(LREG_4, 0, PMIC_ALL_BITS));
      CHECK_ERROR(pmic_write_reg(LREG_5, 0, PMIC_ALL_BITS));
      return 0;
}


Generated by  Doxygen 1.6.0   Back to index