diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-30 11:54:14 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-30 11:56:27 +0300 |
commit | a4000df5300fdbe10d84e3b70e2d6a98686310a9 (patch) | |
tree | 8659ae62848a9fed707dfc9669eb6e90bcf8581f | |
parent | 3db9eb6dee8aacf27903bc84c3a68d05d1d49519 (diff) | |
download | linux-a4000df5300fdbe10d84e3b70e2d6a98686310a9.tar.xz |
Revert "staging: octeon: remove typedef in enum cvmx_spi_mode_t"
This reverts commit 7bebd832177670e6cce1783cf144f989cd3cf4b5.
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/32e9ad3c-191e-4dd1-b1cc-07f7b93c3f28@roeck-us.net
Reported-by: Guenter Roeck <linux@roeck-us.net>
Cc: Oliver Crumrine <ozlinux@hotmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/octeon/octeon-stubs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/octeon/octeon-stubs.h b/drivers/staging/octeon/octeon-stubs.h index 9f269626b862..3e7b92cd2e35 100644 --- a/drivers/staging/octeon/octeon-stubs.h +++ b/drivers/staging/octeon/octeon-stubs.h @@ -213,12 +213,12 @@ enum cvmx_fau_op_size { CVMX_FAU_OP_SIZE_64 = 3 }; -enum cvmx_spi_mode { +typedef enum { CVMX_SPI_MODE_UNKNOWN = 0, CVMX_SPI_MODE_TX_HALFPLEX = 1, CVMX_SPI_MODE_RX_HALFPLEX = 2, CVMX_SPI_MODE_DUPLEX = 3 -}; +} cvmx_spi_mode_t; typedef enum { CVMX_HELPER_INTERFACE_MODE_DISABLED, @@ -1362,7 +1362,7 @@ static inline struct cvmx_wqe *cvmx_pow_work_request_sync(cvmx_pow_wait_t wait) } static inline int cvmx_spi_restart_interface(int interface, - enum cvmx_spi_mode mode, int timeout) + cvmx_spi_mode_t mode, int timeout) { return 0; } |