Commit 0c7dfd36 authored by Thierry Reding's avatar Thierry Reding

gpu: host1x: Rename internal functions for clarity

The internal host1x_{,un}register_client() functions can potentially be
confused with public the host1x_client_{,un}register() functions.

Rename them to host1x_{add,del}_client() to remove some of the possible
confusion.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 540457cc
...@@ -216,8 +216,8 @@ int host1x_device_exit(struct host1x_device *device) ...@@ -216,8 +216,8 @@ int host1x_device_exit(struct host1x_device *device)
} }
EXPORT_SYMBOL(host1x_device_exit); EXPORT_SYMBOL(host1x_device_exit);
static int host1x_register_client(struct host1x *host1x, static int host1x_add_client(struct host1x *host1x,
struct host1x_client *client) struct host1x_client *client)
{ {
struct host1x_device *device; struct host1x_device *device;
struct host1x_subdev *subdev; struct host1x_subdev *subdev;
...@@ -238,8 +238,8 @@ static int host1x_register_client(struct host1x *host1x, ...@@ -238,8 +238,8 @@ static int host1x_register_client(struct host1x *host1x,
return -ENODEV; return -ENODEV;
} }
static int host1x_unregister_client(struct host1x *host1x, static int host1x_del_client(struct host1x *host1x,
struct host1x_client *client) struct host1x_client *client)
{ {
struct host1x_device *device, *dt; struct host1x_device *device, *dt;
struct host1x_subdev *subdev; struct host1x_subdev *subdev;
...@@ -503,7 +503,7 @@ int host1x_client_register(struct host1x_client *client) ...@@ -503,7 +503,7 @@ int host1x_client_register(struct host1x_client *client)
mutex_lock(&devices_lock); mutex_lock(&devices_lock);
list_for_each_entry(host1x, &devices, list) { list_for_each_entry(host1x, &devices, list) {
err = host1x_register_client(host1x, client); err = host1x_add_client(host1x, client);
if (!err) { if (!err) {
mutex_unlock(&devices_lock); mutex_unlock(&devices_lock);
return 0; return 0;
...@@ -529,7 +529,7 @@ int host1x_client_unregister(struct host1x_client *client) ...@@ -529,7 +529,7 @@ int host1x_client_unregister(struct host1x_client *client)
mutex_lock(&devices_lock); mutex_lock(&devices_lock);
list_for_each_entry(host1x, &devices, list) { list_for_each_entry(host1x, &devices, list) {
err = host1x_unregister_client(host1x, client); err = host1x_del_client(host1x, client);
if (!err) { if (!err) {
mutex_unlock(&devices_lock); mutex_unlock(&devices_lock);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment