Skip to content

Commit

Permalink
staging: omap-thermal: remove platform data nomenclature
Browse files Browse the repository at this point in the history
Because the driver is not really using platform data, this patch
removes the pdata nomenclature from this driver.

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Eduardo Valentin authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent 2aeeb8a commit 5041949
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/omap-thermal/omap-thermal-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ static struct omap_thermal_data
int omap_thermal_expose_sensor(struct omap_bandgap *bg_ptr, int id,
char *domain)
{
struct omap_thermal_pdata pdata;
struct omap_thermal_data *data;

data = omap_bandgap_get_sensor_data(bg_ptr, id);

if (!data)
data = omap_thermal_build_pdata(bg_ptr, id);
data = omap_thermal_build_data(bg_ptr, id);

if (!data)
return -EINVAL;
Expand Down Expand Up @@ -359,7 +359,7 @@ int omap_thermal_register_cpu_cooling(struct omap_bandgap *bg_ptr, int id)

data = omap_bandgap_get_sensor_data(bg_ptr, id);
if (!data)
data = omap_thermal_build_pdata(bg_ptr, id);
data = omap_thermal_build_data(bg_ptr, id);

if (!data)
return -EINVAL;
Expand Down

0 comments on commit 5041949

Please sign in to comment.