We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19260d3 commit c149bdfCopy full SHA for c149bdf
drivers/spi/spi-tegra114.c
@@ -728,9 +728,9 @@ static int tegra_spi_set_hw_cs_timing(struct spi_device *spi)
728
u32 inactive_cycles;
729
u8 cs_state;
730
731
- if ((setup->unit && setup->unit != SPI_DELAY_UNIT_SCK) ||
732
- (hold->unit && hold->unit != SPI_DELAY_UNIT_SCK) ||
733
- (inactive->unit && inactive->unit != SPI_DELAY_UNIT_SCK)) {
+ if ((setup->value && setup->unit != SPI_DELAY_UNIT_SCK) ||
+ (hold->value && hold->unit != SPI_DELAY_UNIT_SCK) ||
+ (inactive->value && inactive->unit != SPI_DELAY_UNIT_SCK)) {
734
dev_err(&spi->dev,
735
"Invalid delay unit %d, should be SPI_DELAY_UNIT_SCK\n",
736
SPI_DELAY_UNIT_SCK);
0 commit comments