int es705_sensor_hub_enable_event_interrupt(struct es705_priv *es705)
{
	u32 sync_ack;
	int rc;

	/* Send command to setup the event interrupt to be active high */
	rc = es705_cmd(es705, ES705_CMD_EVT_INTR_ACTHIGH);
	if (rc == 0) {
		sync_ack = es705->last_response;
		pr_debug("[SPI]: %s(): EvtIntr_ack = 0x%08x\n",
		    __func__, sync_ack);
	}
	return rc;
}
Ejemplo n.º 2
0
static int macro_cmd(void *ctx, u32 cmd)
{
	struct es705_priv *es705 = (struct es705_priv *)ctx;
	dev_dbg(es705->dev, "%s(): cmd=0x%08x\n", __func__, cmd);
	return es705_cmd(es705, cmd);
}