]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: rockchip: Drop unused and broken CR0 macros
authorJohn Madieu <john.madieu@gmail.com>
Sat, 25 Apr 2026 09:29:35 +0000 (09:29 +0000)
committerMark Brown <broonie@kernel.org>
Sun, 26 Apr 2026 21:57:20 +0000 (06:57 +0900)
commit7643978722aac3a012783ce12dc534eba7c51698
tree3b75182140cc98ffebb2be97da12547a888a24cc
parentb4683a239a409d65f88052f5630c748a8ba070cd
spi: rockchip: Drop unused and broken CR0 macros

Two CTRLR0 macros are defined but never referenced, and both are wrong:

 - CR0_XFM_MASK shifts by SPI_XFM_OFFSET, which does not exist anywhere
   in the tree. The intended symbol is CR0_XFM_OFFSET.

 - CR0_MTM_OFFSET is defined as 0x21, i.e. bit 33 of a 32-bit register.
   The value is meaningless and the macro is unused.

Drop both. They can be re-introduced correctly when an actual user
appears.

Signed-off-by: John Madieu <john.madieu@gmail.com>
Link: https://patch.msgid.link/20260425092936.2590132-3-john.madieu@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c