summaryrefslogtreecommitdiff
path: root/drivers/staging/sm750fb/sm750.c
diff options
context:
space:
mode:
authorMike Rapoport <mike.rapoport@gmail.com>2015-10-26 10:06:01 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-27 11:04:57 +0300
commit700591a9adc8b1b8978283fd988fcb85aa1c8993 (patch)
tree2d2c1ab966137f9c65fa05310e625c47fba6bb81 /drivers/staging/sm750fb/sm750.c
parent142de763c08e6ff1e4966b654654859ed7a5492c (diff)
downloadlinux-700591a9adc8b1b8978283fd988fcb85aa1c8993.tar.xz
staging: sm750fb: replace lynx_share with sm750_dev in function calls
Use sm750_dev rather than lynx_share as parameter for hw_sm750_map, hw_sm750_inithw and hw_sm750_initAccel functions. Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/sm750.c')
-rw-r--r--drivers/staging/sm750fb/sm750.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index 39ab614911ca..58fcea537698 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -444,6 +444,7 @@ static int lynxfb_resume(struct pci_dev *pdev)
{
struct fb_info *info;
struct lynx_share *share;
+ struct sm750_dev *sm750_dev;
struct lynxfb_par *par;
struct lynxfb_crtc *crtc;
@@ -453,6 +454,7 @@ static int lynxfb_resume(struct pci_dev *pdev)
ret = 0;
share = pci_get_drvdata(pdev);
+ sm750_dev = container_of(share, struct sm750_dev, share);
console_lock();
@@ -472,7 +474,7 @@ static int lynxfb_resume(struct pci_dev *pdev)
pci_set_master(pdev);
}
- hw_sm750_inithw(share, pdev);
+ hw_sm750_inithw(sm750_dev, pdev);
info = share->fbinfo[0];
@@ -931,16 +933,15 @@ exit:
}
/* chip specific g_option configuration routine */
-static void sm750fb_setup(struct lynx_share *share, char *src)
+static void sm750fb_setup(struct sm750_dev *sm750_dev, char *src)
{
- struct sm750_dev *sm750_dev;
+ struct lynx_share *share = &sm750_dev->share;
char *opt;
#ifdef CAP_EXPENSION
char *exp_res;
#endif
int swap;
- sm750_dev = container_of(share, struct sm750_dev, share);
#ifdef CAP_EXPENSIION
exp_res = NULL;
#endif
@@ -1086,10 +1087,10 @@ static int lynxfb_pci_probe(struct pci_dev *pdev,
}
/* call chip specific setup routine */
- sm750fb_setup(share, g_settings);
+ sm750fb_setup(sm750_dev, g_settings);
/* call chip specific mmap routine */
- if (hw_sm750_map(share, pdev)) {
+ if (hw_sm750_map(sm750_dev, pdev)) {
pr_err("Memory map failed\n");
goto err_map;
}
@@ -1105,7 +1106,7 @@ static int lynxfb_pci_probe(struct pci_dev *pdev,
pci_set_drvdata(pdev, share);
/* call chipInit routine */
- hw_sm750_inithw(share, pdev);
+ hw_sm750_inithw(sm750_dev, pdev);
/* allocate frame buffer info structor according to g_dualview */
fbidx = 0;