]> git.baikalelectronics.ru Git - kernel.git/commit
spi: altera: fix size mismatch on 64 bit processors
authorMatthew Gerlach <matthew.gerlach@linux.intel.com>
Fri, 19 Jun 2020 01:43:41 +0000 (09:43 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 19 Jun 2020 11:56:06 +0000 (12:56 +0100)
commitb4f6590cfa25f04a7cd5e04d26fed3294854d748
tree290ebbc368051790b60777674d4dbbdc23777f5a
parente525dc2fb388a46dba9194964b7ab55c3e5b27d9
spi: altera: fix size mismatch on 64 bit processors

The spi-altera driver was originally written with a 32
bit processor, where sizeof(unsigned long) is 4.  On a
64 bit processor sizeof(unsigned long) is 8.  Change the structure
member to u32 to match the actual size of the control
register.

Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Reviewed-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/1592531021-11412-4-git-send-email-yilun.xu@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-altera.c