aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi_s3c64xx.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/spi/spi_s3c64xx.c b/drivers/spi/spi_s3c64xx.c
index 88a456dba967..ad93d5d8539c 100644
--- a/drivers/spi/spi_s3c64xx.c
+++ b/drivers/spi/spi_s3c64xx.c
@@ -160,7 +160,7 @@ struct s3c64xx_spi_driver_data {
160 struct platform_device *pdev; 160 struct platform_device *pdev;
161 struct spi_master *master; 161 struct spi_master *master;
162 struct workqueue_struct *workqueue; 162 struct workqueue_struct *workqueue;
163 struct s3c64xx_spi_cntrlr_info *cntrlr_info; 163 struct s3c64xx_spi_info *cntrlr_info;
164 struct spi_device *tgl_spi; 164 struct spi_device *tgl_spi;
165 struct work_struct work; 165 struct work_struct work;
166 struct list_head queue; 166 struct list_head queue;
@@ -180,7 +180,7 @@ static struct s3c2410_dma_client s3c64xx_spi_dma_client = {
180 180
181static void flush_fifo(struct s3c64xx_spi_driver_data *sdd) 181static void flush_fifo(struct s3c64xx_spi_driver_data *sdd)
182{ 182{
183 struct s3c64xx_spi_cntrlr_info *sci = sdd->cntrlr_info; 183 struct s3c64xx_spi_info *sci = sdd->cntrlr_info;
184 void __iomem *regs = sdd->regs; 184 void __iomem *regs = sdd->regs;
185 unsigned long loops; 185 unsigned long loops;
186 u32 val; 186 u32 val;
@@ -225,7 +225,7 @@ static void enable_datapath(struct s3c64xx_spi_driver_data *sdd,
225 struct spi_device *spi, 225 struct spi_device *spi,
226 struct spi_transfer *xfer, int dma_mode) 226 struct spi_transfer *xfer, int dma_mode)
227{ 227{
228 struct s3c64xx_spi_cntrlr_info *sci = sdd->cntrlr_info; 228 struct s3c64xx_spi_info *sci = sdd->cntrlr_info;
229 void __iomem *regs = sdd->regs; 229 void __iomem *regs = sdd->regs;
230 u32 modecfg, chcfg; 230 u32 modecfg, chcfg;
231 231
@@ -310,7 +310,7 @@ static inline void enable_cs(struct s3c64xx_spi_driver_data *sdd,
310static int wait_for_xfer(struct s3c64xx_spi_driver_data *sdd, 310static int wait_for_xfer(struct s3c64xx_spi_driver_data *sdd,
311 struct spi_transfer *xfer, int dma_mode) 311 struct spi_transfer *xfer, int dma_mode)
312{ 312{
313 struct s3c64xx_spi_cntrlr_info *sci = sdd->cntrlr_info; 313 struct s3c64xx_spi_info *sci = sdd->cntrlr_info;
314 void __iomem *regs = sdd->regs; 314 void __iomem *regs = sdd->regs;
315 unsigned long val; 315 unsigned long val;
316 int ms; 316 int ms;
@@ -389,7 +389,7 @@ static inline void disable_cs(struct s3c64xx_spi_driver_data *sdd,
389 389
390static void s3c64xx_spi_config(struct s3c64xx_spi_driver_data *sdd) 390static void s3c64xx_spi_config(struct s3c64xx_spi_driver_data *sdd)
391{ 391{
392 struct s3c64xx_spi_cntrlr_info *sci = sdd->cntrlr_info; 392 struct s3c64xx_spi_info *sci = sdd->cntrlr_info;
393 void __iomem *regs = sdd->regs; 393 void __iomem *regs = sdd->regs;
394 u32 val; 394 u32 val;
395 395
@@ -558,7 +558,7 @@ static void s3c64xx_spi_unmap_mssg(struct s3c64xx_spi_driver_data *sdd,
558static void handle_msg(struct s3c64xx_spi_driver_data *sdd, 558static void handle_msg(struct s3c64xx_spi_driver_data *sdd,
559 struct spi_message *msg) 559 struct spi_message *msg)
560{ 560{
561 struct s3c64xx_spi_cntrlr_info *sci = sdd->cntrlr_info; 561 struct s3c64xx_spi_info *sci = sdd->cntrlr_info;
562 struct spi_device *spi = msg->spi; 562 struct spi_device *spi = msg->spi;
563 struct s3c64xx_spi_csinfo *cs = spi->controller_data; 563 struct s3c64xx_spi_csinfo *cs = spi->controller_data;
564 struct spi_transfer *xfer; 564 struct spi_transfer *xfer;
@@ -786,7 +786,7 @@ static int s3c64xx_spi_setup(struct spi_device *spi)
786{ 786{
787 struct s3c64xx_spi_csinfo *cs = spi->controller_data; 787 struct s3c64xx_spi_csinfo *cs = spi->controller_data;
788 struct s3c64xx_spi_driver_data *sdd; 788 struct s3c64xx_spi_driver_data *sdd;
789 struct s3c64xx_spi_cntrlr_info *sci; 789 struct s3c64xx_spi_info *sci;
790 struct spi_message *msg; 790 struct spi_message *msg;
791 u32 psr, speed; 791 u32 psr, speed;
792 unsigned long flags; 792 unsigned long flags;
@@ -867,7 +867,7 @@ setup_exit:
867 867
868static void s3c64xx_spi_hwinit(struct s3c64xx_spi_driver_data *sdd, int channel) 868static void s3c64xx_spi_hwinit(struct s3c64xx_spi_driver_data *sdd, int channel)
869{ 869{
870 struct s3c64xx_spi_cntrlr_info *sci = sdd->cntrlr_info; 870 struct s3c64xx_spi_info *sci = sdd->cntrlr_info;
871 void __iomem *regs = sdd->regs; 871 void __iomem *regs = sdd->regs;
872 unsigned int val; 872 unsigned int val;
873 873
@@ -902,7 +902,7 @@ static int __init s3c64xx_spi_probe(struct platform_device *pdev)
902{ 902{
903 struct resource *mem_res, *dmatx_res, *dmarx_res; 903 struct resource *mem_res, *dmatx_res, *dmarx_res;
904 struct s3c64xx_spi_driver_data *sdd; 904 struct s3c64xx_spi_driver_data *sdd;
905 struct s3c64xx_spi_cntrlr_info *sci; 905 struct s3c64xx_spi_info *sci;
906 struct spi_master *master; 906 struct spi_master *master;
907 int ret; 907 int ret;
908 908
@@ -1078,7 +1078,7 @@ static int s3c64xx_spi_remove(struct platform_device *pdev)
1078{ 1078{
1079 struct spi_master *master = spi_master_get(platform_get_drvdata(pdev)); 1079 struct spi_master *master = spi_master_get(platform_get_drvdata(pdev));
1080 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); 1080 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master);
1081 struct s3c64xx_spi_cntrlr_info *sci = sdd->cntrlr_info; 1081 struct s3c64xx_spi_info *sci = sdd->cntrlr_info;
1082 struct resource *mem_res; 1082 struct resource *mem_res;
1083 unsigned long flags; 1083 unsigned long flags;
1084 1084
@@ -1118,7 +1118,7 @@ static int s3c64xx_spi_suspend(struct platform_device *pdev, pm_message_t state)
1118{ 1118{
1119 struct spi_master *master = spi_master_get(platform_get_drvdata(pdev)); 1119 struct spi_master *master = spi_master_get(platform_get_drvdata(pdev));
1120 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); 1120 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master);
1121 struct s3c64xx_spi_cntrlr_info *sci = sdd->cntrlr_info; 1121 struct s3c64xx_spi_info *sci = sdd->cntrlr_info;
1122 struct s3c64xx_spi_csinfo *cs; 1122 struct s3c64xx_spi_csinfo *cs;
1123 unsigned long flags; 1123 unsigned long flags;
1124 1124
@@ -1144,7 +1144,7 @@ static int s3c64xx_spi_resume(struct platform_device *pdev)
1144{ 1144{
1145 struct spi_master *master = spi_master_get(platform_get_drvdata(pdev)); 1145 struct spi_master *master = spi_master_get(platform_get_drvdata(pdev));
1146 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); 1146 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master);
1147 struct s3c64xx_spi_cntrlr_info *sci = sdd->cntrlr_info; 1147 struct s3c64xx_spi_info *sci = sdd->cntrlr_info;
1148 unsigned long flags; 1148 unsigned long flags;
1149 1149
1150 sci->cfg_gpio(pdev); 1150 sci->cfg_gpio(pdev);