static void wacom_i2c_lcd_freq_work(struct work_struct *work) { struct wacom_i2c *wac_i2c = container_of(work, struct wacom_i2c, lcd_freq_work); wacom_i2c_sync_lcd_freq(wac_i2c); }
static void wacom_i2c_lcd_freq_work(struct work_struct *work) { struct wacom_i2c *wac_i2c = container_of(work, struct wacom_i2c, lcd_freq_work); if (wac_i2c->lcd_freq_wait == true) { printk(KERN_DEBUG"epen:%s, freq is running\n", __func__); return ; } wac_i2c->lcd_freq_wait = true; wacom_i2c_sync_lcd_freq(wac_i2c); }