diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2015-09-10 03:18:06 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-20 22:31:10 -0400 |
commit | ae48d74dfcb55d508404135ce2807d59e93bd46f (patch) | |
tree | 7536af41aef85f7032cddc60a084a12ca0b84be5 | |
parent | d49dc5e76fc917e5dfef76cb56fe3b3868deed5d (diff) |
mei: bus: use mei_cl_bus_ prefix consistently
Use mei_cl_bus_ for internal bus function consistently.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/mei/bus-fixup.c | 4 | ||||
-rw-r--r-- | drivers/misc/mei/bus.c | 27 | ||||
-rw-r--r-- | drivers/misc/mei/mei_dev.h | 2 |
3 files changed, 17 insertions, 16 deletions
diff --git a/drivers/misc/mei/bus-fixup.c b/drivers/misc/mei/bus-fixup.c index 3e536ca85f7d..020de5919c21 100644 --- a/drivers/misc/mei/bus-fixup.c +++ b/drivers/misc/mei/bus-fixup.c | |||
@@ -285,11 +285,11 @@ static struct mei_fixup { | |||
285 | }; | 285 | }; |
286 | 286 | ||
287 | /** | 287 | /** |
288 | * mei_cl_dev_fixup - run fixup handlers | 288 | * mei_cldev_fixup - run fixup handlers |
289 | * | 289 | * |
290 | * @cldev: me client device | 290 | * @cldev: me client device |
291 | */ | 291 | */ |
292 | void mei_cl_dev_fixup(struct mei_cl_device *cldev) | 292 | void mei_cl_bus_dev_fixup(struct mei_cl_device *cldev) |
293 | { | 293 | { |
294 | struct mei_fixup *f; | 294 | struct mei_fixup *f; |
295 | const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl); | 295 | const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl); |
diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c index 0406e7201fe4..832085207a7f 100644 --- a/drivers/misc/mei/bus.c +++ b/drivers/misc/mei/bus.c | |||
@@ -725,7 +725,7 @@ static void mei_dev_bus_put(struct mei_device *bus) | |||
725 | put_device(bus->dev); | 725 | put_device(bus->dev); |
726 | } | 726 | } |
727 | 727 | ||
728 | static void mei_cl_dev_release(struct device *dev) | 728 | static void mei_cl_bus_dev_release(struct device *dev) |
729 | { | 729 | { |
730 | struct mei_cl_device *cldev = to_mei_cl_device(dev); | 730 | struct mei_cl_device *cldev = to_mei_cl_device(dev); |
731 | 731 | ||
@@ -738,19 +738,19 @@ static void mei_cl_dev_release(struct device *dev) | |||
738 | } | 738 | } |
739 | 739 | ||
740 | static struct device_type mei_cl_device_type = { | 740 | static struct device_type mei_cl_device_type = { |
741 | .release = mei_cl_dev_release, | 741 | .release = mei_cl_bus_dev_release, |
742 | }; | 742 | }; |
743 | 743 | ||
744 | /** | 744 | /** |
745 | * mei_cl_dev_alloc - initialize and allocate mei client device | 745 | * mei_cl_bus_dev_alloc - initialize and allocate mei client device |
746 | * | 746 | * |
747 | * @bus: mei device | 747 | * @bus: mei device |
748 | * @me_cl: me client | 748 | * @me_cl: me client |
749 | * | 749 | * |
750 | * Return: allocated device structur or NULL on allocation failure | 750 | * Return: allocated device structur or NULL on allocation failure |
751 | */ | 751 | */ |
752 | static struct mei_cl_device *mei_cl_dev_alloc(struct mei_device *bus, | 752 | static struct mei_cl_device *mei_cl_bus_dev_alloc(struct mei_device *bus, |
753 | struct mei_me_client *me_cl) | 753 | struct mei_me_client *me_cl) |
754 | { | 754 | { |
755 | struct mei_cl_device *cldev; | 755 | struct mei_cl_device *cldev; |
756 | 756 | ||
@@ -779,11 +779,11 @@ static struct mei_cl_device *mei_cl_dev_alloc(struct mei_device *bus, | |||
779 | * | 779 | * |
780 | * Return: true if the device is eligible for enumeration | 780 | * Return: true if the device is eligible for enumeration |
781 | */ | 781 | */ |
782 | static bool mei_cl_dev_setup(struct mei_device *bus, | 782 | static bool mei_cl_bus_dev_setup(struct mei_device *bus, |
783 | struct mei_cl_device *cldev) | 783 | struct mei_cl_device *cldev) |
784 | { | 784 | { |
785 | cldev->do_match = 1; | 785 | cldev->do_match = 1; |
786 | mei_cl_dev_fixup(cldev); | 786 | mei_cl_bus_dev_fixup(cldev); |
787 | 787 | ||
788 | if (cldev->do_match) | 788 | if (cldev->do_match) |
789 | dev_set_name(&cldev->dev, "mei:%s:%pUl:%02X", | 789 | dev_set_name(&cldev->dev, "mei:%s:%pUl:%02X", |
@@ -872,13 +872,14 @@ void mei_cl_bus_remove_devices(struct mei_device *bus) | |||
872 | 872 | ||
873 | 873 | ||
874 | /** | 874 | /** |
875 | * mei_cl_dev_init - allocate and initializes an mei client devices | 875 | * mei_cl_bus_dev_init - allocate and initializes an mei client devices |
876 | * based on me client | 876 | * based on me client |
877 | * | 877 | * |
878 | * @bus: mei device | 878 | * @bus: mei device |
879 | * @me_cl: me client | 879 | * @me_cl: me client |
880 | */ | 880 | */ |
881 | static void mei_cl_dev_init(struct mei_device *bus, struct mei_me_client *me_cl) | 881 | static void mei_cl_bus_dev_init(struct mei_device *bus, |
882 | struct mei_me_client *me_cl) | ||
882 | { | 883 | { |
883 | struct mei_cl_device *cldev; | 884 | struct mei_cl_device *cldev; |
884 | 885 | ||
@@ -887,7 +888,7 @@ static void mei_cl_dev_init(struct mei_device *bus, struct mei_me_client *me_cl) | |||
887 | if (me_cl->bus_added) | 888 | if (me_cl->bus_added) |
888 | return; | 889 | return; |
889 | 890 | ||
890 | cldev = mei_cl_dev_alloc(bus, me_cl); | 891 | cldev = mei_cl_bus_dev_alloc(bus, me_cl); |
891 | if (!cldev) | 892 | if (!cldev) |
892 | return; | 893 | return; |
893 | 894 | ||
@@ -911,7 +912,7 @@ void mei_cl_bus_rescan(struct mei_device *bus) | |||
911 | 912 | ||
912 | down_read(&bus->me_clients_rwsem); | 913 | down_read(&bus->me_clients_rwsem); |
913 | list_for_each_entry(me_cl, &bus->me_clients, list) | 914 | list_for_each_entry(me_cl, &bus->me_clients, list) |
914 | mei_cl_dev_init(bus, me_cl); | 915 | mei_cl_bus_dev_init(bus, me_cl); |
915 | up_read(&bus->me_clients_rwsem); | 916 | up_read(&bus->me_clients_rwsem); |
916 | 917 | ||
917 | mutex_lock(&bus->cl_bus_lock); | 918 | mutex_lock(&bus->cl_bus_lock); |
@@ -925,7 +926,7 @@ void mei_cl_bus_rescan(struct mei_device *bus) | |||
925 | if (cldev->is_added) | 926 | if (cldev->is_added) |
926 | continue; | 927 | continue; |
927 | 928 | ||
928 | if (mei_cl_dev_setup(bus, cldev)) | 929 | if (mei_cl_bus_dev_setup(bus, cldev)) |
929 | mei_cl_bus_dev_add(cldev); | 930 | mei_cl_bus_dev_add(cldev); |
930 | else { | 931 | else { |
931 | list_del_init(&cldev->bus_list); | 932 | list_del_init(&cldev->bus_list); |
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index e25ee16c658e..0f87dffa6be1 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h | |||
@@ -340,7 +340,7 @@ struct mei_hw_ops { | |||
340 | 340 | ||
341 | /* MEI bus API*/ | 341 | /* MEI bus API*/ |
342 | void mei_cl_bus_rescan(struct mei_device *bus); | 342 | void mei_cl_bus_rescan(struct mei_device *bus); |
343 | void mei_cl_dev_fixup(struct mei_cl_device *dev); | 343 | void mei_cl_bus_dev_fixup(struct mei_cl_device *dev); |
344 | ssize_t __mei_cl_send(struct mei_cl *cl, u8 *buf, size_t length, | 344 | ssize_t __mei_cl_send(struct mei_cl *cl, u8 *buf, size_t length, |
345 | bool blocking); | 345 | bool blocking); |
346 | ssize_t __mei_cl_recv(struct mei_cl *cl, u8 *buf, size_t length); | 346 | ssize_t __mei_cl_recv(struct mei_cl *cl, u8 *buf, size_t length); |