]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: octeon: convert cvmx_spi_mode_t from typedef to plain enum
authorEric Wu <kunjinkao.jp@gmail.com>
Mon, 27 Apr 2026 15:54:21 +0000 (23:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 May 2026 14:21:34 +0000 (16:21 +0200)
commit4f44225a9b7aa99325fc0f4ea399b3f2f9595737
treec9c5856718751eca81e1b08d6c3185164e96df2b
parent4776aefb5aa5c2c5250597b95ab8d490e6b783cf
staging: octeon: convert cvmx_spi_mode_t from typedef to plain enum

The Linux kernel coding style discourages the use of typedefs for
enums. Convert cvmx_spi_mode_t to a plain 'enum cvmx_spi_mode' and
update all users across the MIPS Octeon architecture code and the
staging driver stubs.

This is part of a series converting all remaining enum typedefs in
the octeon subsystem to plain enums, improving compliance with the
kernel coding style.

No functional change.

Signed-off-by: Eric Wu <kunjinkao.jp@gmail.com>
Link: https://patch.msgid.link/20260427155427.668540-2-kunjinkao.jp@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/cavium-octeon/executive/cvmx-spi.c
arch/mips/include/asm/octeon/cvmx-spi.h
drivers/staging/octeon/octeon-stubs.h