/* stts751_handle_interrupt - handle the thsld event read data and call handler if registered any  */
static void stts751_handle_interrupt(const struct device *dev)
/* stts751_handle_interrupt - handle the thsld event read data and call handler if registered any  */
static void stts751_handle_interrupt(const struct device *dev)
{
	struct stts751_data *stts751 = dev->data;
	const struct stts751_config *cfg = dev->config;
	stts751_status_t status;
	stts751_status_reg_get(stts751->ctx, &status);
	if (stts751->thsld_handler != NULL &&
	    (status.t_high || status.t_low)) {
		stts751->thsld_handler(dev, stts751->thsld_trigger);
	}
	gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_EDGE_TO_ACTIVE);
}