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

Commit 29f0d488 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

spi: spi-mxs: Remove unused bits_per_word variable



The bits_per_word variable is not used after commit 24778be2
"spi: convert drivers to use bits_per_word_mask".

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarMarek Vasut <marex@denx.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 796305a2
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -67,13 +67,8 @@ static int mxs_spi_setup_transfer(struct spi_device *dev,
{
	struct mxs_spi *spi = spi_master_get_devdata(dev->master);
	struct mxs_ssp *ssp = &spi->ssp;
	uint8_t bits_per_word;
	uint32_t hz = 0;

	bits_per_word = dev->bits_per_word;
	if (t && t->bits_per_word)
		bits_per_word = t->bits_per_word;

	hz = dev->max_speed_hz;
	if (t && t->speed_hz)
		hz = min(hz, t->speed_hz);