static int itomap2430_sharp01_panel_enable(void) { DBGENTER(1); DBGLEAVE(1); return 0; }
static void innovator1610_panel_cleanup(void) { DBGENTER(1); omap_free_gpio(15); omap_free_gpio(14); DBGLEAVE(1); }
fireexecd_client_t *client_new(pid_t pid, const char *cmdpath, const char *profile, const char *name) { DBGENTER(pid, "client_new"); fireexecd_client_t *cli = malloc(sizeof(fireexecd_client_t)); if(!cli) { DBGLEAVE(pid, "client_new"); return NULL; } cli->cmdpath = strdup(cmdpath); if(!cli->cmdpath) { free(cli); DBGLEAVE(pid, "client_new"); return NULL; } cli->profile = profile ? strdup(profile) : NULL; if(profile && !cli->profile) { free(cli->cmdpath); free(cli); DBGLEAVE(pid, "client_new"); return NULL; } cli->name = name ? strdup(name) : NULL; if(name && !cli->name) { free(cli->profile); free(cli->cmdpath); free(cli); DBGLEAVE(pid, "client_new"); return NULL; } cli->pid = pid; cli->handler = 0; cli->regtime = 0; cli->status = UNDEFINED; cli->pol = EXECHELP_DEFAULT_POLICY; DBGLEAVE(pid, "client_new"); return cli; }
static void innovator1610_panel_disable(void) { DBGENTER(1); /* set GPIO13, GPIO14 and GPIO15 low */ omap_set_gpio_dataout(14, 0); omap_set_gpio_dataout(15, 0); DBGLEAVE(1); }
static int innovator1610_panel_enable(void) { DBGENTER(1); /* set GPIO14 and GPIO15 high */ omap_set_gpio_dataout(14, 1); omap_set_gpio_dataout(15, 1); DBGLEAVE(1); return 0; }
static int innovator1610_panel_init(struct omapfb_device *fbdev) { int r = 0; DBGENTER(1); if (omap_request_gpio(14)) { pr_err("can't request GPIO 14\n"); r = -1; goto exit; } if (omap_request_gpio(15)) { pr_err("can't request GPIO 15\n"); omap_free_gpio(14); r = -1; goto exit; } /* configure GPIO(14, 15) as outputs */ omap_set_gpio_direction(14, 0); omap_set_gpio_direction(15, 0); exit: DBGLEAVE(1); return r; }
static void itomap2430_sharp01_panel_disable(void) { DBGENTER(1); DBGLEAVE(1); }
static void itomap2430_sharp01_panel_cleanup(void) { DBGENTER(1); DBGLEAVE(1); }
static int itomap2430_sharp01_panel_init(struct omapfb_device *fbdev) { DBGENTER(1); DBGLEAVE(1); return 0; }