Skip to content

Commit a4000df

Browse files
committed
Revert "staging: octeon: remove typedef in enum cvmx_spi_mode_t"
This reverts commit 7bebd83. The patch series that removed typedefs from the octeon driver was not actually built properly, and broke the build (it's hard to test-build this driver for some reason.) Remove them all at this point in time to make sure the build works properly. Link: https://lore.kernel.org/r/[email protected] Reported-by: Guenter Roeck <[email protected]> Cc: Oliver Crumrine <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3db9eb6 commit a4000df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/staging/octeon/octeon-stubs.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@ enum cvmx_fau_op_size {
213213
CVMX_FAU_OP_SIZE_64 = 3
214214
};
215215

216-
enum cvmx_spi_mode {
216+
typedef enum {
217217
CVMX_SPI_MODE_UNKNOWN = 0,
218218
CVMX_SPI_MODE_TX_HALFPLEX = 1,
219219
CVMX_SPI_MODE_RX_HALFPLEX = 2,
220220
CVMX_SPI_MODE_DUPLEX = 3
221-
};
221+
} cvmx_spi_mode_t;
222222

223223
typedef enum {
224224
CVMX_HELPER_INTERFACE_MODE_DISABLED,
@@ -1362,7 +1362,7 @@ static inline struct cvmx_wqe *cvmx_pow_work_request_sync(cvmx_pow_wait_t wait)
13621362
}
13631363

13641364
static inline int cvmx_spi_restart_interface(int interface,
1365-
enum cvmx_spi_mode mode, int timeout)
1365+
cvmx_spi_mode_t mode, int timeout)
13661366
{
13671367
return 0;
13681368
}

0 commit comments

Comments
 (0)