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

PMIC_STATUS pmic_bklit_off_rampup ( t_bklit_channel  channel  ) 

This function stops backlight brightness ramp up function;

Parameters:
channel Backlight channel.
Returns:
This function returns PMIC_SUCCESS if successful.

Definition at line 625 of file pmic_light.c.

References pmic_write_reg(), and suspend_flag.

Referenced by pmic_light_ioctl().

{
      unsigned int reg_value = 0;
      unsigned int mask = 0;

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

      switch (channel) {
      case BACKLIGHT_LED1:
            mask = BITFMASK(BIT_UP_MAIN_BL);
            break;
      case BACKLIGHT_LED2:
            mask = BITFMASK(BIT_UP_AUX_BL);
            break;
      case BACKLIGHT_LED3:
            mask = BITFMASK(BIT_UP_KEY_BL);
            break;
      default:
            return PMIC_PARAMETER_ERROR;
      }

      CHECK_ERROR(pmic_write_reg(LREG_0, reg_value, mask));

      return PMIC_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index