Skip to content

Commit 33c8597

Browse files
fancerbroonie
authored andcommitted
spi: dw: Convert dw_spi::num_cs to u32
Number of native chip-select lines is either retrieved from the "num-cs" DT-property or auto-detected in the generic DW APB/AHB SSI probe method. In the former case the property is supposed to be of the "u32" size. Convert the field type to being u32 then to be able to drop the temporary variable afterwards. Signed-off-by: Serge Semin <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e164be7 commit 33c8597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-dw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ struct dw_spi {
164164
u32 max_freq; /* max bus freq supported */
165165

166166
u32 reg_io_width; /* DR I/O width in bytes */
167+
u32 num_cs; /* chip select lines */
167168
u16 bus_num;
168-
u16 num_cs; /* supported slave numbers */
169169
void (*set_cs)(struct spi_device *spi, bool enable);
170170

171171
/* Current message transfer state info */

0 commit comments

Comments
 (0)