gpu: host1x: Correct swapped arguments in the is_addr_reg() definition
authorDmitry Osipenko <digetx@gmail.com>
Wed, 14 Jun 2017 23:18:38 +0000 (02:18 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 15 Jun 2017 12:24:18 +0000 (14:24 +0200)
Arguments of the .is_addr_reg() are swapped in the definition of the
function, that is quite confusing.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Erik Faye-Lund <kusmabite@gmail.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
include/linux/host1x.h

index b5358f855d9e3587fb7eb4b990ecdec999ea7a65..476da0e06bb27b5548bb88dc324850b14e1a4aff 100644 (file)
@@ -249,7 +249,7 @@ struct host1x_job {
        u8 *gather_copy_mapped;
 
        /* 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 */
        int (*is_valid_class)(u32 class);