/* Avoid spamming the console with prints every IBF / IBHF interrupt, if we find ourselves in an unexpected state.  */
static void shi_npcx_log_unexpected_state(const struct device *dev, char *isr_name)
/* Avoid spamming the console with prints every IBF / IBHF interrupt, if we find ourselves in an unexpected state.  */
static void shi_npcx_log_unexpected_state(const struct device *dev, char *isr_name)
{
	struct shi_npcx_data *data = dev->data;
	if (data->state != data->last_error_state) {
		LOG_ERR("Unexpected state %d in %s ISR", data->state, isr_name);
	}
	data->last_error_state = data->state;
}