コード例 #1
0
static inline int hi3630_srcup_reg_read(struct hi3630_srcup_data *pdata, unsigned int reg)
{
	unsigned long flag = 0;
	int ret = 0;

	BUG_ON(NULL == pdata);

	if (hwspin_lock_timeout_irqsave(pdata->hwlock, HWLOCK_WAIT_TIME, &flag)) {
		loge("%s: hwspinlock timeout!\n", __func__);
		return ret;
	}

	ret = hi3630_asp_irq_read(pdata->hi3630_asp_irq, reg);

	hwspin_unlock_irqrestore(pdata->hwlock, &flag);
	return ret;
}
コード例 #2
0
static inline int hi3630_hdmi_reg_read(struct hi3630_hdmi_data *pdata, unsigned int reg)
{
	BUG_ON(NULL == pdata);
	return hi3630_asp_irq_read(pdata->hi3630_asp_irq, reg);
}