diff options
author | Thierry Reding <treding@nvidia.com> | 2014-05-22 05:12:17 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-06-05 17:10:30 -0400 |
commit | 0c7dfd36b73be6d2755f7b724e5ce0bffaf04dd3 (patch) | |
tree | c5019db9863bae2214b59d1baa58b8d3a861621a | |
parent | 540457cc1fc14707f60b0eddf9df2904ba75c269 (diff) |
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: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/gpu/host1x/bus.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/host1x/bus.c b/drivers/gpu/host1x/bus.c index ccdd2e6da5e3..aaf54859adb0 100644 --- a/drivers/gpu/host1x/bus.c +++ b/drivers/gpu/host1x/bus.c | |||
@@ -216,8 +216,8 @@ int host1x_device_exit(struct host1x_device *device) | |||
216 | } | 216 | } |
217 | EXPORT_SYMBOL(host1x_device_exit); | 217 | EXPORT_SYMBOL(host1x_device_exit); |
218 | 218 | ||
219 | static int host1x_register_client(struct host1x *host1x, | 219 | static int host1x_add_client(struct host1x *host1x, |
220 | struct host1x_client *client) | 220 | struct host1x_client *client) |
221 | { | 221 | { |
222 | struct host1x_device *device; | 222 | struct host1x_device *device; |
223 | struct host1x_subdev *subdev; | 223 | struct host1x_subdev *subdev; |
@@ -238,8 +238,8 @@ static int host1x_register_client(struct host1x *host1x, | |||
238 | return -ENODEV; | 238 | return -ENODEV; |
239 | } | 239 | } |
240 | 240 | ||
241 | static int host1x_unregister_client(struct host1x *host1x, | 241 | static int host1x_del_client(struct host1x *host1x, |
242 | struct host1x_client *client) | 242 | struct host1x_client *client) |
243 | { | 243 | { |
244 | struct host1x_device *device, *dt; | 244 | struct host1x_device *device, *dt; |
245 | struct host1x_subdev *subdev; | 245 | struct host1x_subdev *subdev; |
@@ -503,7 +503,7 @@ int host1x_client_register(struct host1x_client *client) | |||
503 | mutex_lock(&devices_lock); | 503 | mutex_lock(&devices_lock); |
504 | 504 | ||
505 | list_for_each_entry(host1x, &devices, list) { | 505 | list_for_each_entry(host1x, &devices, list) { |
506 | err = host1x_register_client(host1x, client); | 506 | err = host1x_add_client(host1x, client); |
507 | if (!err) { | 507 | if (!err) { |
508 | mutex_unlock(&devices_lock); | 508 | mutex_unlock(&devices_lock); |
509 | return 0; | 509 | return 0; |
@@ -529,7 +529,7 @@ int host1x_client_unregister(struct host1x_client *client) | |||
529 | mutex_lock(&devices_lock); | 529 | mutex_lock(&devices_lock); |
530 | 530 | ||
531 | list_for_each_entry(host1x, &devices, list) { | 531 | list_for_each_entry(host1x, &devices, list) { |
532 | err = host1x_unregister_client(host1x, client); | 532 | err = host1x_del_client(host1x, client); |
533 | if (!err) { | 533 | if (!err) { |
534 | mutex_unlock(&devices_lock); | 534 | mutex_unlock(&devices_lock); |
535 | return 0; | 535 | return 0; |