]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
video: imx: ipuv3: add names to clk function identifiers
authorBrian Ruley <brian.ruley@gehealthcare.com>
Mon, 29 Dec 2025 10:48:05 +0000 (12:48 +0200)
committerFabio Estevam <festevam@gmail.com>
Mon, 29 Dec 2025 13:17:01 +0000 (10:17 -0300)
The API should provide clear distinction in the order of parameters.

Signed-off-by: Brian Ruley <brian.ruley@gehealthcare.com>
drivers/video/imx/ipu.h

index 16e103cf5410fcfc41cbab21786036cd29b4b0bd..f7d9d80952999fe490f136125bd389584e484e9c 100644 (file)
@@ -39,30 +39,30 @@ struct clk {
         * Function ptr to recalculate the clock's rate based on parent
         * clock's rate
         */
-       void (*recalc)(struct clk *);
+       void (*recalc)(struct clk *clk);
        /*
         * Function ptr to set the clock to a new rate. The rate must match a
         * supported rate returned from round_rate. Leave blank if clock is not
        * programmable
         */
-       int (*set_rate)(struct clk *, unsigned long);
+       int (*set_rate)(struct clk *clk, unsigned long rate);
        /*
         * Function ptr to round the requested clock rate to the nearest
         * supported rate that is less than or equal to the requested rate.
         */
-       unsigned long (*round_rate)(struct clk *, unsigned long);
+       unsigned long (*round_rate)(struct clk *clk, unsigned long rate);
        /*
         * Function ptr to enable the clock. Leave blank if clock can not
         * be gated.
         */
-       int (*enable)(struct clk *);
+       int (*enable)(struct clk *clk);
        /*
         * Function ptr to disable the clock. Leave blank if clock can not
         * be gated.
         */
-       void (*disable)(struct clk *);
+       void (*disable)(struct clk *clk);
        /* Function ptr to set the parent clock of the clock. */
-       int (*set_parent)(struct clk *, struct clk *);
+       int (*set_parent)(struct clk *clk, struct clk *parent);
 };
 
 /*