READ_COUNTER
if ((command == READ_COUNTER || command == WRITE_COUNTER) && !val)
case READ_COUNTER:
if (command == READ_COUNTER) {
ret = ni6501_counter_command(dev, READ_COUNTER, &val);