From 283dc01fb0ca32254bd5111c22cd9d9d4c4a0216 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 14 Oct 2015 11:16:49 -0700 Subject: [PATCH] greybus: audio: use the bundle struct device instead of the connector We are removing struct device from the gb_connection structure in the near future. The gb_bundle structure's struct device should be used as a replacement. This patch moves the audio driver to use the bundle pointer instead of the connection pointer. Signed-off-by: Greg Kroah-Hartman Reviewed-by: Alex Elder --- drivers/staging/greybus/audio.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/staging/greybus/audio.c b/drivers/staging/greybus/audio.c index 6754c907cd6e..684229ccab6c 100644 --- a/drivers/staging/greybus/audio.c +++ b/drivers/staging/greybus/audio.c @@ -341,13 +341,14 @@ static int gb_i2s_mgmt_report_event_recv(u8 type, struct gb_operation *op) 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; } @@ -385,12 +386,12 @@ static int gb_i2s_mgmt_report_event_recv(u8 type, struct gb_operation *op) 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; -- 2.20.1