Skip to content

Commit ae48d74

Browse files
Tomas Winklergregkh
authored andcommitted
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>
1 parent d49dc5e commit ae48d74

3 files changed

Lines changed: 17 additions & 16 deletions

File tree

‎drivers/misc/mei/bus-fixup.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,11 @@ static struct mei_fixup {
285285
};
286286

287287
/**
288-
* mei_cl_dev_fixup - run fixup handlers
288+
* mei_cldev_fixup - run fixup handlers
289289
*
290290
* @cldev: me client device
291291
*/
292-
void mei_cl_dev_fixup(struct mei_cl_device *cldev)
292+
void mei_cl_bus_dev_fixup(struct mei_cl_device *cldev)
293293
{
294294
struct mei_fixup *f;
295295
const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl);

‎drivers/misc/mei/bus.c‎

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ static void mei_dev_bus_put(struct mei_device *bus)
725725
put_device(bus->dev);
726726
}
727727

728-
static void mei_cl_dev_release(struct device *dev)
728+
static void mei_cl_bus_dev_release(struct device *dev)
729729
{
730730
struct mei_cl_device *cldev = to_mei_cl_device(dev);
731731

@@ -738,19 +738,19 @@ static void mei_cl_dev_release(struct device *dev)
738738
}
739739

740740
static struct device_type mei_cl_device_type = {
741-
.release = mei_cl_dev_release,
741+
.release = mei_cl_bus_dev_release,
742742
};
743743

744744
/**
745-
* mei_cl_dev_alloc - initialize and allocate mei client device
745+
* mei_cl_bus_dev_alloc - initialize and allocate mei client device
746746
*
747747
* @bus: mei device
748748
* @me_cl: me client
749749
*
750750
* Return: allocated device structur or NULL on allocation failure
751751
*/
752-
static struct mei_cl_device *mei_cl_dev_alloc(struct mei_device *bus,
753-
struct mei_me_client *me_cl)
752+
static struct mei_cl_device *mei_cl_bus_dev_alloc(struct mei_device *bus,
753+
struct mei_me_client *me_cl)
754754
{
755755
struct mei_cl_device *cldev;
756756

@@ -779,11 +779,11 @@ static struct mei_cl_device *mei_cl_dev_alloc(struct mei_device *bus,
779779
*
780780
* Return: true if the device is eligible for enumeration
781781
*/
782-
static bool mei_cl_dev_setup(struct mei_device *bus,
783-
struct mei_cl_device *cldev)
782+
static bool mei_cl_bus_dev_setup(struct mei_device *bus,
783+
struct mei_cl_device *cldev)
784784
{
785785
cldev->do_match = 1;
786-
mei_cl_dev_fixup(cldev);
786+
mei_cl_bus_dev_fixup(cldev);
787787

788788
if (cldev->do_match)
789789
dev_set_name(&cldev->dev, "mei:%s:%pUl:%02X",
@@ -872,13 +872,14 @@ void mei_cl_bus_remove_devices(struct mei_device *bus)
872872

873873

874874
/**
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
876876
* based on me client
877877
*
878878
* @bus: mei device
879879
* @me_cl: me client
880880
*/
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)
882883
{
883884
struct mei_cl_device *cldev;
884885

@@ -887,7 +888,7 @@ static void mei_cl_dev_init(struct mei_device *bus, struct mei_me_client *me_cl)
887888
if (me_cl->bus_added)
888889
return;
889890

890-
cldev = mei_cl_dev_alloc(bus, me_cl);
891+
cldev = mei_cl_bus_dev_alloc(bus, me_cl);
891892
if (!cldev)
892893
return;
893894

@@ -911,7 +912,7 @@ void mei_cl_bus_rescan(struct mei_device *bus)
911912

912913
down_read(&bus->me_clients_rwsem);
913914
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);
915916
up_read(&bus->me_clients_rwsem);
916917

917918
mutex_lock(&bus->cl_bus_lock);
@@ -925,7 +926,7 @@ void mei_cl_bus_rescan(struct mei_device *bus)
925926
if (cldev->is_added)
926927
continue;
927928

928-
if (mei_cl_dev_setup(bus, cldev))
929+
if (mei_cl_bus_dev_setup(bus, cldev))
929930
mei_cl_bus_dev_add(cldev);
930931
else {
931932
list_del_init(&cldev->bus_list);

‎drivers/misc/mei/mei_dev.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ struct mei_hw_ops {
340340

341341
/* MEI bus API*/
342342
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);
344344
ssize_t __mei_cl_send(struct mei_cl *cl, u8 *buf, size_t length,
345345
bool blocking);
346346
ssize_t __mei_cl_recv(struct mei_cl *cl, u8 *buf, size_t length);

0 commit comments

Comments
 (0)