Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3bee3cd authored by Jordan Crouse's avatar Jordan Crouse
Browse files

spi-geni-qcom: Fix compile warnings



Fix the following compiler warning(s) from gcc 6.1.1 with -Werror enabled:

 drivers/spi/spi-geni-qcom.c:191:
   format '%u' expects argument of type 'unsigned int', but argument 6 has
     type 'long unsigned int' [-Werror=format=]
  dev_dbg(mas->dev, "%s: req %u resultant %u sclk %lu, idx %d, div %d\n",

Fixes: 4652e364 ("spi-geni-qcom: Add SPI GENI driver snapshot")
Change-Id: Ic0dedbad5db93f59c3d2f91d7b99cd7cbf9471e4
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent ce20ceb5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -188,7 +188,7 @@ static int get_spi_clk_cfg(u32 speed_hz, struct spi_geni_master *mas,

	res_freq = (sclk_freq / (*clk_div));

	dev_dbg(mas->dev, "%s: req %u resultant %u sclk %lu, idx %d, div %d\n",
	dev_dbg(mas->dev, "%s: req %u resultant %lu sclk %lu, idx %d, div %d\n",
		__func__, speed_hz, res_freq, sclk_freq, *clk_idx, *clk_div);

	ret = clk_set_rate(rsc->se_clk, sclk_freq);