spi: pxa2xx: Don't provide struct chip_data for others
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 17 Apr 2024 10:54:36 +0000 (13:54 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 3 May 2024 02:11:38 +0000 (11:11 +0900)
Now the struct chip_data is local to spi-pxa2xx.c, move
its definition to the C file. This will slightly speed up
a build and also hide badly named data type (too generic).

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20240417110334.2671228-10-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-pxa2xx.h

index 030afb17e6062853bd42e1b250029cffa99477d8..efe76d0c21bbf028ff6348a1b40a8a4f6e718c06 100644 (file)
@@ -66,6 +66,14 @@ MODULE_ALIAS("platform:pxa2xx-spi");
                                | CE4100_SSCR1_RFT | CE4100_SSCR1_TFT | SSCR1_MWDS \
                                | SSCR1_SPH | SSCR1_SPO | SSCR1_LBM)
 
+struct chip_data {
+       u32 cr1;
+       u32 dds_rate;
+       u32 threshold;
+       u16 lpss_rx_threshold;
+       u16 lpss_tx_threshold;
+};
+
 #define LPSS_GENERAL_REG_RXTO_HOLDOFF_DISABLE  BIT(24)
 #define LPSS_CS_CONTROL_SW_MODE                        BIT(0)
 #define LPSS_CS_CONTROL_CS_HIGH                        BIT(1)
index 5f741bb3024095b6afaae7d7de62411ad8a1d7ba..93e1e471e1c631fabd8140ec8983c4dbc76b2ac1 100644 (file)
@@ -75,14 +75,6 @@ struct driver_data {
        struct gpio_desc *gpiod_ready;
 };
 
-struct chip_data {
-       u32 cr1;
-       u32 dds_rate;
-       u32 threshold;
-       u16 lpss_rx_threshold;
-       u16 lpss_tx_threshold;
-};
-
 static inline u32 pxa2xx_spi_read(const struct driver_data *drv_data, u32 reg)
 {
        return pxa_ssp_read_reg(drv_data->ssp, reg);