check_trip_points
if (check_trip_points(dev, nr) < 0)
if (val == sf4 && check_trip_points(data, nr)) {