Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+6 -6
+6 -6
drivers/gpu/host1x/bus.c
··· 216 216 } 217 217 EXPORT_SYMBOL(host1x_device_exit); 218 218 219 - static int host1x_register_client(struct host1x *host1x, 220 - struct host1x_client *client) 219 + static int host1x_add_client(struct host1x *host1x, 220 + struct host1x_client *client) 221 221 { 222 222 struct host1x_device *device; 223 223 struct host1x_subdev *subdev; ··· 238 238 return -ENODEV; 239 239 } 240 240 241 - static int host1x_unregister_client(struct host1x *host1x, 242 - struct host1x_client *client) 241 + static int host1x_del_client(struct host1x *host1x, 242 + struct host1x_client *client) 243 243 { 244 244 struct host1x_device *device, *dt; 245 245 struct host1x_subdev *subdev; ··· 503 503 mutex_lock(&devices_lock); 504 504 505 505 list_for_each_entry(host1x, &devices, list) { 506 - err = host1x_register_client(host1x, client); 506 + err = host1x_add_client(host1x, client); 507 507 if (!err) { 508 508 mutex_unlock(&devices_lock); 509 509 return 0; ··· 529 529 mutex_lock(&devices_lock); 530 530 531 531 list_for_each_entry(host1x, &devices, list) { 532 - err = host1x_unregister_client(host1x, client); 532 + err = host1x_del_client(host1x, client); 533 533 if (!err) { 534 534 mutex_unlock(&devices_lock); 535 535 return 0;