Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: pxa: Remove unused clock_enable field from struct pxa2xx_spi_master

Use for struct pxa2xx_spi_master clock_enable field was removed years ago
from the pxa2xx-spi driver by the commit 2f1a74e5a2de ("[ARM] pxa: make
pxa2xx_spi driver use ssp_request()/ssp_free()").

Therefore remove it from structure definition, documentation and from
couple affected board files.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>

authored by

Jarkko Nikula and committed by
Robert Jarzmik
5cfc5220 6ff33f39

-12
-6
Documentation/spi/pxa2xx
··· 22 22 found in include/linux/spi/pxa2xx_spi.h: 23 23 24 24 struct pxa2xx_spi_master { 25 - u32 clock_enable; 26 25 u16 num_chipselect; 27 26 u8 enable_dma; 28 27 }; 29 - 30 - The "pxa2xx_spi_master.clock_enable" field is used to enable/disable the 31 - corresponding SSP peripheral block in the "Clock Enable Register (CKEN"). See 32 - the "PXA2xx Developer Manual" section "Clocks and Power Management". 33 28 34 29 The "pxa2xx_spi_master.num_chipselect" field is used to determine the number of 35 30 slave device (chips) attached to this SPI master. ··· 52 57 }; 53 58 54 59 static struct pxa2xx_spi_master pxa_nssp_master_info = { 55 - .clock_enable = CKEN_NSSP, /* NSSP Peripheral clock */ 56 60 .num_chipselect = 1, /* Matches the number of chips attached to NSSP */ 57 61 .enable_dma = 1, /* Enables NSSP DMA */ 58 62 };
-1
arch/arm/mach-pxa/hx4700.c
··· 630 630 631 631 static struct pxa2xx_spi_master pxa_ssp2_master_info = { 632 632 .num_chipselect = 1, 633 - .clock_enable = CKEN_SSP2, 634 633 .enable_dma = 1, 635 634 }; 636 635
-2
arch/arm/mach-pxa/icontrol.c
··· 116 116 }; 117 117 118 118 static struct pxa2xx_spi_master pxa_ssp3_spi_master_info = { 119 - .clock_enable = CKEN_SSP3, 120 119 .num_chipselect = 2, 121 120 .enable_dma = 1 122 121 }; 123 122 124 123 static struct pxa2xx_spi_master pxa_ssp4_spi_master_info = { 125 - .clock_enable = CKEN_SSP4, 126 124 .num_chipselect = 2, 127 125 .enable_dma = 1 128 126 };
-2
arch/arm/mach-pxa/z2.c
··· 595 595 }; 596 596 597 597 static struct pxa2xx_spi_master pxa_ssp1_master_info = { 598 - .clock_enable = CKEN_SSP, 599 598 .num_chipselect = 1, 600 599 .enable_dma = 1, 601 600 }; 602 601 603 602 static struct pxa2xx_spi_master pxa_ssp2_master_info = { 604 - .clock_enable = CKEN_SSP2, 605 603 .num_chipselect = 1, 606 604 }; 607 605
-1
include/linux/spi/pxa2xx_spi.h
··· 23 23 24 24 /* device.platform_data for SSP controller devices */ 25 25 struct pxa2xx_spi_master { 26 - u32 clock_enable; 27 26 u16 num_chipselect; 28 27 u8 enable_dma; 29 28