/* a hacky interface to control the panel power */ static void lcdc_config_gpios(int on) { printk(KERN_INFO "%s: power goes to %d\n", __func__, on); if (panel_power(on)) printk(KERN_ERR "%s: panel_power failed!\n", __func__); }
static int lcdc_panel_power(int on) { int flag_on = !!on; static int lcdc_power_save_on; if (lcdc_power_save_on == flag_on) return 0; lcdc_power_save_on = flag_on; return panel_power(on); }