Commit a2b78b0d authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Thierry Reding

gpu: host1x: Correct swapped arguments in the is_addr_reg() definition

Arguments of the .is_addr_reg() are swapped in the definition of the
function, that is quite confusing.
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Reviewed-by: default avatarErik Faye-Lund <kusmabite@gmail.com>
Reviewed-by: default avatarMikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 0f563a4b
...@@ -249,7 +249,7 @@ struct host1x_job { ...@@ -249,7 +249,7 @@ struct host1x_job {
u8 *gather_copy_mapped; u8 *gather_copy_mapped;
/* Check if register is marked as an address reg */ /* Check if register is marked as an address reg */
int (*is_addr_reg)(struct device *dev, u32 reg, u32 class); int (*is_addr_reg)(struct device *dev, u32 class, u32 reg);
/* Check if class belongs to the unit */ /* Check if class belongs to the unit */
int (*is_valid_class)(u32 class); int (*is_valid_class)(u32 class);
......
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