Message ID | 1549207053-24190-5-git-send-email-philipp.tomsich@theobroma-systems.com |
---|---|
State | Accepted |
Commit | b6101e906f5afbb35d1980965f0633a3ca412616 |
Delegated to: | Philipp Tomsich |
Headers | show |
Series | rockchip: Improve SPI-NOR read performance for the RK3399-Q7 | expand |
> While rkspi_enable_chip is called with true/false everywhere else in > the file, one call site uses '0' to denot 'false'. > This change this one parameter to 'false' and effects consistency. > > Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> > --- > > drivers/spi/rk_spi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied to u-boot-rockchip, thanks!
diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index e7b2df8..aaf244d 100644 --- a/drivers/spi/rk_spi.c +++ b/drivers/spi/rk_spi.c @@ -277,7 +277,7 @@ static int rockchip_spi_claim_bus(struct udevice *dev) uint ctrlr0; /* Disable the SPI hardware */ - rkspi_enable_chip(regs, 0); + rkspi_enable_chip(regs, false); if (priv->speed_hz != priv->last_speed_hz) rkspi_set_clk(priv, priv->speed_hz);
While rkspi_enable_chip is called with true/false everywhere else in the file, one call site uses '0' to denot 'false'. This change this one parameter to 'false' and effects consistency. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> --- drivers/spi/rk_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)