diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-07-20 22:13:25 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:32:37 -0700 |
commit | 4ea5fbf2befd805e8c8e6adf6bef27d749be3e8f (patch) | |
tree | da09c630aab030f0fdcd70a954234c8dd644df9e /drivers/thermal | |
parent | 366192fb2dae2cfc11ed5fac37099f325f974581 (diff) |
thermal: generic-adc: call appropriate iio_* apis
On Kernel K3.8, the iio generic apis has been changed from
iio_st* to iio_*.
Modifying driver to use the appropriate public APIs.
Change-Id: Id8195a85b61359845269673a937c754d4ba4990f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/251630
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/generic_adc_thermal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/thermal/generic_adc_thermal.c b/drivers/thermal/generic_adc_thermal.c index 69d3121732b4..fa0c9131bc33 100644 --- a/drivers/thermal/generic_adc_thermal.c +++ b/drivers/thermal/generic_adc_thermal.c @@ -95,7 +95,7 @@ static int gadc_thermal_get_temp(struct thermal_zone_device *tz, int val; int ret; - ret = iio_st_read_channel_raw(drvdata->channel, &val); + ret = iio_read_channel_raw(drvdata->channel, &val); if (ret < 0) { dev_err(drvdata->dev, "%s: Failed to read channel, %d\n", __func__, ret); @@ -124,7 +124,7 @@ static int adc_temp_show(struct seq_file *s, void *p) int adc, temp; int ret; - ret = iio_st_read_channel_raw(drvdata->channel, &adc); + ret = iio_read_channel_raw(drvdata->channel, &adc); if (ret < 0) { dev_err(drvdata->dev, "%s: Failed to read channel, %d\n", __func__, ret); @@ -266,7 +266,7 @@ static int gadc_thermal_probe(struct platform_device *pdev) memcpy(drvdata->adc_temp_lookup, pdata->adc_temp_lookup, pdata->lookup_table_size * sizeof(unsigned int)); - drvdata->channel = iio_st_channel_get(dev_name(&pdev->dev), + drvdata->channel = iio_channel_get(dev_name(&pdev->dev), pdata->iio_channel_name); if (IS_ERR(drvdata->channel)) { dev_err(&pdev->dev, "%s: Failed to get channel %s, %ld\n", @@ -290,7 +290,7 @@ static int gadc_thermal_probe(struct platform_device *pdev) return 0; error_release_channel: - iio_st_channel_release(drvdata->channel); + iio_channel_release(drvdata->channel); return ret; } @@ -301,7 +301,7 @@ static int gadc_thermal_remove(struct platform_device *pdev) if (drvdata->dentry) debugfs_remove_recursive(drvdata->dentry); thermal_zone_device_unregister(drvdata->tz); - iio_st_channel_release(drvdata->channel); + iio_channel_release(drvdata->channel); return 0; } |