struct canque_ends_t *qends;
if(!canuser || (canuser->magic != CAN_USER_MAGIC)){
- CANMSG("can_close: bad canuser magic\n");
+ CANMSG("can_ioctl: bad canuser magic\n");
return -ENODEV;
}
}
switch (cmd) {
+ case CAN_DRV_QUERY: {
+ return can_ioctl_query(canuser, arg);
+ }
case STAT: {
for (i=0x0; i<0x100; i++)
CANMSG("0x%x is 0x%x\n",i,can_read_reg(chip,i));