Quoting Maxime Ripard (2020-02-24 01:06:19) > The raspberry_clock_property only takes the clock ID as an argument, but > now that we have a clock data structure it makes more sense to just pass > that structure instead. > > Cc: Michael Turquette <mturquette@xxxxxxxxxxxx> > Cc: Stephen Boyd <sboyd@xxxxxxxxxx> > Cc: linux-clk@xxxxxxxxxxxxxxx > Signed-off-by: Maxime Ripard <maxime@xxxxxxxxxx> > --- > drivers/clk/bcm/clk-raspberrypi.c | 29 ++++++++++++++--------------- > 1 file changed, 14 insertions(+), 15 deletions(-) > > diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspberrypi.c > index e796dabbc641..3b2da62a72f5 100644 > --- a/drivers/clk/bcm/clk-raspberrypi.c > +++ b/drivers/clk/bcm/clk-raspberrypi.c > @@ -67,11 +67,12 @@ struct raspberrypi_firmware_prop { > __le32 disable_turbo; > } __packed; > > -static int raspberrypi_clock_property(struct rpi_firmware *firmware, u32 tag, > - u32 clk, u32 *val) > +static int raspberrypi_clock_property(struct rpi_firmware *firmware, > + struct raspberrypi_clk_data *data, Can data be const? > + u32 tag, u32 *val) > { > struct raspberrypi_firmware_prop msg = { > - .id = cpu_to_le32(clk), > + .id = cpu_to_le32(data->id), > .val = cpu_to_le32(*val), > .disable_turbo = cpu_to_le32(1), > }; _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel