diff options
Diffstat (limited to 'arch/arm/mach-omap2/smartreflex.c')
| -rw-r--r-- | arch/arm/mach-omap2/smartreflex.c | 37 | 
1 files changed, 7 insertions, 30 deletions
diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 98309d32ba9..82bdd2838a1 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -34,29 +34,6 @@  #define NVALUE_NAME_LEN		40  #define SR_DISABLE_TIMEOUT	200 -struct omap_sr { -	struct list_head		node; -	struct platform_device		*pdev; -	struct omap_sr_nvalue_table	*nvalue_table; -	struct voltagedomain		*voltdm; -	struct dentry			*dbg_dir; -	unsigned int			irq; -	int				srid; -	int				ip_type; -	int				nvalue_count; -	bool				autocomp_active; -	u32				clk_length; -	u32				err_weight; -	u32				err_minlimit; -	u32				err_maxlimit; -	u32				accum_data; -	u32				senn_avgweight; -	u32				senp_avgweight; -	u32				senp_mod; -	u32				senn_mod; -	void __iomem			*base; -}; -  /* sr_list contains all the instances of smartreflex module */  static LIST_HEAD(sr_list); @@ -147,7 +124,7 @@ static irqreturn_t sr_interrupt(int irq, void *data)  	}  	if (sr_class->notify) -		sr_class->notify(sr_info->voltdm, status); +		sr_class->notify(sr_info, status);  	return IRQ_HANDLED;  } @@ -225,7 +202,7 @@ static void sr_start_vddautocomp(struct omap_sr *sr)  		return;  	} -	if (!sr_class->enable(sr->voltdm)) +	if (!sr_class->enable(sr))  		sr->autocomp_active = true;  } @@ -239,7 +216,7 @@ static void sr_stop_vddautocomp(struct omap_sr *sr)  	}  	if (sr->autocomp_active) { -		sr_class->disable(sr->voltdm, 1); +		sr_class->disable(sr, 1);  		sr->autocomp_active = false;  	}  } @@ -654,7 +631,7 @@ int sr_enable(struct voltagedomain *voltdm, unsigned long volt)  		return 0;  	/* Configure SR */ -	ret = sr_class->configure(voltdm); +	ret = sr_class->configure(sr);  	if (ret)  		return ret; @@ -772,7 +749,7 @@ void omap_sr_enable(struct voltagedomain *voltdm)  		return;  	} -	sr_class->enable(voltdm); +	sr_class->enable(sr);  }  /** @@ -805,7 +782,7 @@ void omap_sr_disable(struct voltagedomain *voltdm)  		return;  	} -	sr_class->disable(voltdm, 0); +	sr_class->disable(sr, 0);  }  /** @@ -838,7 +815,7 @@ void omap_sr_disable_reset_volt(struct voltagedomain *voltdm)  		return;  	} -	sr_class->disable(voltdm, 1); +	sr_class->disable(sr, 1);  }  /**  |