OSDN Git Service

greybus: s/bundle_cport_id/intf_cport_id
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Jun 2015 04:48:01 +0000 (10:18 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 4 Jun 2015 05:15:29 +0000 (14:15 +0900)
This isn't unique just for the bundle but the complete interface. Its
wrong to call it bundle_cport_id. Lets name it intf_cport_id to make
things clear.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio-pcm.c
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h

index c1b6aa5..4d2f0ab 100644 (file)
@@ -52,7 +52,7 @@ static void gb_pcm_work(struct work_struct *work)
                if (snd_dev->cport_active) {
                        ret = gb_i2s_mgmt_deactivate_cport(
                                snd_dev->mgmt_connection,
-                               snd_dev->i2s_tx_connection->bundle_cport_id);
+                               snd_dev->i2s_tx_connection->intf_cport_id);
                        if (ret) /* XXX Do what else with failure? */
                                pr_err("deactivate_cport failed: %d\n", ret);
 
@@ -62,7 +62,7 @@ static void gb_pcm_work(struct work_struct *work)
                return;
        } else if (!snd_dev->cport_active) {
                ret = gb_i2s_mgmt_activate_cport(snd_dev->mgmt_connection,
-                               snd_dev->i2s_tx_connection->bundle_cport_id);
+                               snd_dev->i2s_tx_connection->intf_cport_id);
                if (ret)
                        pr_err("activate_cport failed: %d\n", ret);
 
index e87521e..6f0d3e9 100644 (file)
@@ -184,7 +184,7 @@ struct gb_connection *gb_connection_create(struct gb_bundle *bundle,
        }
 
        connection->bundle = bundle;
-       connection->bundle_cport_id = cport_id;
+       connection->intf_cport_id = cport_id;
        connection->state = GB_CONNECTION_STATE_DISABLED;
 
        connection->dev.parent = &bundle->dev;
index 8992b75..d39d476 100644 (file)
@@ -25,7 +25,7 @@ struct gb_connection {
        struct gb_bundle                *bundle;
        struct device                   dev;
        u16                             hd_cport_id;
-       u16                             bundle_cport_id;
+       u16                             intf_cport_id;
 
        struct list_head                hd_links;
        struct list_head                bundle_links;