static void n8x0_mmc_callback(void *data, u8 card_mask) { int bit, *openp, index; if (machine_is_nokia_n800()) { bit = 1 << 1; openp = &slot2_cover_open; index = 1; } else { bit = 1; openp = &slot1_cover_open; index = 0; } if (card_mask & bit) *openp = 1; else *openp = 0; #ifdef CONFIG_MMC_OMAP omap_mmc_notify_cover_event(mmc_device, index, *openp); #else pr_warn("MMC: notify cover event not available\n"); #endif }
void h2_mmc_slot_cover_handler(void *arg, int state) { if (mmc_device == NULL) return; slot_cover_open = state; omap_mmc_notify_cover_event(mmc_device, 0, state); }
static void n8x0_mmc_callback(void *data, u8 card_mask) { int bit, *openp, index; if (machine_is_nokia_n800()) { bit = 1 << 1; openp = &slot2_cover_open; index = 1; } else { bit = 1; openp = &slot1_cover_open; index = 0; } if (card_mask & bit) *openp = 1; else *openp = 0; omap_mmc_notify_cover_event(mmc_device, index, *openp); }