/* Sometimes while docking, false dock events can be sent to the driver because good connections aren't made or some other reason. Ignore these if we are in the middle of doing something.  */
static int dock_in_progress(struct dock_station *ds)
/* Sometimes while docking, false dock events can be sent to the driver because good connections aren't made or some other reason. Ignore these if we are in the middle of doing something.  */
static int dock_in_progress(struct dock_station *ds)
{
	if ((ds->flags & DOCK_DOCKING) ||
	    time_before(jiffies, (ds->last_dock_time + HZ)))
		return 1;
	return 0;
}