{
int ret;
struct lynx_share *share;
- struct sm750_share *spec_share;
+ struct sm750_dev *spec_share;
struct lynxfb_output *output;
struct lynxfb_crtc *crtc;
ret = 0;
share = par->share;
- spec_share = container_of(share, struct sm750_share, share);
+ spec_share = container_of(share, struct sm750_dev, share);
output = &par->output;
crtc = &par->crtc;
/* chip specific g_option configuration routine */
static void sm750fb_setup(struct lynx_share *share, char *src)
{
- struct sm750_share *spec_share;
+ struct sm750_dev *spec_share;
char *opt;
#ifdef CAP_EXPENSION
char *exp_res;
#endif
int swap;
- spec_share = container_of(share, struct sm750_share, share);
+ spec_share = container_of(share, struct sm750_dev, share);
#ifdef CAP_EXPENSIION
exp_res = NULL;
#endif
struct fb_info *info[] = {NULL, NULL};
struct lynx_share *share = NULL;
- struct sm750_share *spec_share = NULL;
+ struct sm750_dev *spec_share = NULL;
size_t spec_offset = 0;
int fbidx;
}
/*
- * though offset of share in sm750_share is 0,
+ * though offset of share in sm750_dev is 0,
* we use this marcro as the same
*/
- spec_offset = offsetof(struct sm750_share, share);
+ spec_offset = offsetof(struct sm750_dev, share);
spec_share = kzalloc(sizeof(*spec_share), GFP_KERNEL);
if (!spec_share) {
iounmap(share->pvReg);
iounmap(share->pvMem);
- spec_share = container_of(share, struct sm750_share, share);
+ spec_share = container_of(share, struct sm750_dev, share);
kfree(g_settings);
kfree(spec_share);
pci_set_drvdata(pdev, NULL);
int hw_sm750_map(struct lynx_share *share, struct pci_dev *pdev)
{
int ret;
- struct sm750_share *spec_share;
+ struct sm750_dev *spec_share;
- spec_share = container_of(share, struct sm750_share, share);
+ spec_share = container_of(share, struct sm750_dev, share);
ret = 0;
share->vidreg_start = pci_resource_start(pdev, 1);
int hw_sm750_inithw(struct lynx_share *share, struct pci_dev *pdev)
{
- struct sm750_share *spec_share;
+ struct sm750_dev *spec_share;
struct init_status *parm;
- spec_share = container_of(share, struct sm750_share, share);
+ spec_share = container_of(share, struct sm750_dev, share);
parm = &spec_share->state.initParm;
if (parm->chip_clk == 0)
parm->chip_clk = (getChipType() == SM750LE) ?