mediatek: 6.6: refresh patches
[openwrt/staging/nbd.git] / target / linux / mediatek / patches-6.6 / 431-drivers-spi-mt65xx-Move-chip_config-to-driver-s-priv.patch
index 8c2c80d6bfd0261054fbd65764ff20fb176e6826..a0bd46c5b761ced9c9763318b39544965aebf473 100644 (file)
@@ -94,9 +94,9 @@ Signed-off-by: SkyLake.Huang <skylake.huang@mediatek.com>
 -      if (!spi->controller_data)
 -              spi->controller_data = (void *)&mtk_default_chip_info;
 -
-       if (mdata->dev_comp->need_pad_sel && spi->cs_gpiod)
+       if (mdata->dev_comp->need_pad_sel && spi_get_csgpiod(spi, 0))
                /* CS de-asserted, gpiolib will handle inversion */
-               gpiod_direction_output(spi->cs_gpiod, 0);
+               gpiod_direction_output(spi_get_csgpiod(spi, 0), 0);
 @@ -1138,6 +1126,10 @@ static int mtk_spi_probe(struct platform
        mdata = spi_master_get_devdata(master);
        mdata->dev_comp = device_get_match_data(dev);