char *event_name;
if (type != GB_I2S_MGMT_TYPE_REPORT_EVENT) {
- dev_err(&connection->dev, "Invalid request type: %d\n",
+ dev_err(&connection->bundle->dev, "Invalid request type: %d\n",
type);
return -EINVAL;
}
if (op->request->payload_size < sizeof(*req)) {
- dev_err(&connection->dev, "Short request received (%zu < %zu)\n",
+ dev_err(&connection->bundle->dev,
+ "Short request received (%zu < %zu)\n",
op->request->payload_size, sizeof(*req));
return -EINVAL;
}
event_name = "DATA_LEN";
break;
default:
- dev_warn(&connection->dev, "Unknown I2S Event received: %d\n",
- req->event);
+ dev_warn(&connection->bundle->dev,
+ "Unknown I2S Event received: %d\n", req->event);
return -EINVAL;
}
- dev_warn(&connection->dev, "I2S Event received: %d - '%s'\n",
+ dev_warn(&connection->bundle->dev, "I2S Event received: %d - '%s'\n",
req->event, event_name);
return 0;