commit | fb609b5112bd74b4ba93c86d7af4089ffd9432c2 | [log] [tgz] |
---|---|---|
author | Eran Ben Elisha <eranbe@mellanox.com> | Wed May 13 11:06:47 2020 +0300 |
committer | Saeed Mahameed <saeedm@nvidia.com> | Tue Sep 15 11:59:49 2020 -0700 |
tree | fd6a751f5417628bdeecb7a87d9c149099642633 | |
parent | ec529b44abfe06a948115e48da02bc59d871242c [diff] |
net/mlx5: Always use container_of to find mdev pointer from clock struct Clock struct is part of struct mlx5_core_dev. Code was inconsistent, on some cases used container_of and on another used clock->mdev. Align code to use container_of amd remove clock->mdev pointer. While here, fix reverse xmas tree coding style. Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Reviewed-by: Moshe Shemesh <moshe@mellanox.com>