static inline void hi3630_srcup_clr_bit(struct hi3630_srcup_data *pdata, unsigned int reg, unsigned int offset) { unsigned long flag = 0; BUG_ON(NULL == pdata); if (hwspin_lock_timeout_irqsave(pdata->hwlock, HWLOCK_WAIT_TIME, &flag)) { loge("%s: hwspinlock timeout!\n", __func__); return; } hi3630_asp_irq_clr_bit(pdata->hi3630_asp_irq, reg, offset); hwspin_unlock_irqrestore(pdata->hwlock, &flag); }
static inline void hi3630_hdmi_clr_bit(struct hi3630_hdmi_data *pdata, unsigned int reg, unsigned int offset) { BUG_ON(NULL == pdata); hi3630_asp_irq_clr_bit(pdata->hi3630_asp_irq, reg, offset); }