gpu: host1x: Rename "parent" to "host"
Rename the host1x clients' parent to "host" because that more closely describes what it is. The parent can be confused with the parent device in terms of the device hierarchy. Subsequent patches will add a new member that refers to the parent in that hierarchy. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
@@ -120,7 +120,7 @@ static void host1x_subdev_register(struct host1x_device *device,
|
||||
mutex_lock(&device->clients_lock);
|
||||
list_move_tail(&client->list, &device->clients);
|
||||
list_move_tail(&subdev->list, &device->active);
|
||||
client->parent = &device->dev;
|
||||
client->host = &device->dev;
|
||||
subdev->client = client;
|
||||
mutex_unlock(&device->clients_lock);
|
||||
mutex_unlock(&device->subdevs_lock);
|
||||
@@ -156,7 +156,7 @@ static void __host1x_subdev_unregister(struct host1x_device *device,
|
||||
*/
|
||||
mutex_lock(&device->clients_lock);
|
||||
subdev->client = NULL;
|
||||
client->parent = NULL;
|
||||
client->host = NULL;
|
||||
list_move_tail(&subdev->list, &device->subdevs);
|
||||
/*
|
||||
* XXX: Perhaps don't do this here, but rather explicitly remove it
|
||||
|
@@ -421,7 +421,7 @@ int host1x_syncpt_init(struct host1x *host)
|
||||
struct host1x_syncpt *host1x_syncpt_request(struct host1x_client *client,
|
||||
unsigned long flags)
|
||||
{
|
||||
struct host1x *host = dev_get_drvdata(client->parent->parent);
|
||||
struct host1x *host = dev_get_drvdata(client->host->parent);
|
||||
|
||||
return host1x_syncpt_alloc(host, client, flags);
|
||||
}
|
||||
|
Reference in New Issue
Block a user