static int msm_fb_lcdc_power_save(int on) { int rc = 0; /* Doing the init of the LCDC GPIOs very late as they are from an I2C-controlled IO Expander */ lcdc_toshiba_gpio_init(); if (lcdc_gpio_initialized) { gpio_set_value_cansleep(GPIO_DISPLAY_PWR_EN, on); /*++ Huize - 20120927 Modify for identifying what the code is used by customization ++*/ #ifndef DISPLAY_CUSTOMIZATION gpio_set_value_cansleep(GPIO_BACKLIGHT_EN, on); #endif /*-- Huize - 20120927 Modify for identifying what the code is used by customization --*/ rc = on ? regulator_bulk_enable( ARRAY_SIZE(regs_lcdc), regs_lcdc) : regulator_bulk_disable( ARRAY_SIZE(regs_lcdc), regs_lcdc); if (rc) pr_err("%s: could not %sable regulators: %d\n", __func__, on ? "en" : "dis", rc); } return rc; }
static int msm_fb_lcdc_power_save(int on) { int rc = 0; /* Doing the init of the LCDC GPIOs very late as they are from an I2C-controlled IO Expander */ lcdc_toshiba_gpio_init(); if (lcdc_gpio_initialized) { gpio_set_value_cansleep(GPIO_DISPLAY_PWR_EN, on); gpio_set_value_cansleep(GPIO_BACKLIGHT_EN, on); rc = on ? regulator_bulk_enable( ARRAY_SIZE(regs_lcdc), regs_lcdc) : regulator_bulk_disable( ARRAY_SIZE(regs_lcdc), regs_lcdc); if (rc) pr_err("%s: could not %sable regulators: %d\n", __func__, on ? "en" : "dis", rc); } return rc; }
static int msm_fb_lcdc_power_save(int on) { int rc = 0; /* */ lcdc_toshiba_gpio_init(); if (lcdc_gpio_initialized) { gpio_set_value_cansleep(GPIO_DISPLAY_PWR_EN, on); gpio_set_value_cansleep(GPIO_BACKLIGHT_EN, on); rc = on ? regulator_bulk_enable( ARRAY_SIZE(regs_lcdc), regs_lcdc) : regulator_bulk_disable( ARRAY_SIZE(regs_lcdc), regs_lcdc); if (rc) pr_err("%s: could not %sable regulators: %d\n", __func__, on ? "en" : "dis", rc); } return rc; }