static void hall_device_flush_work_func(struct work_struct *work)
{
	struct hall_device_chip *chip = container_of(work, struct hall_device_chip, flush_work.work);
    SENSOR_LOG_INFO("prob Enter\n");
	hall_device_check_state(chip);
    SENSOR_LOG_INFO("prob Exit\n");
}
static void hall_device_enable(struct hall_device_chip *chip, int on)
{
    SENSOR_LOG_INFO("%s hall_device\n",on? "enable" : "disable");

	if (on) 
    {
		hall_device_irq_enable(&(chip->irq_s), true, true);
		hall_device_irq_enable(&(chip->irq_n), true, true);
        hall_device_check_state(chip);
	} 
    else 
    {
        hall_device_irq_enable(&(chip->irq_s), false, true);
        hall_device_irq_enable(&(chip->irq_n), false, true);
    }
}