All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] thermal: exynos: Fix typos in Kconfig
@ 2013-08-19  6:28 Sachin Kamat
  2013-08-19  6:28 ` [PATCH 2/3] thermal: exynos: Fix potential NULL pointer dereference Sachin Kamat
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Sachin Kamat @ 2013-08-19  6:28 UTC (permalink / raw)
  To: linux-pm
  Cc: jonghwa3.lee, eduardo.valentin, rui.zhang, amit.daniel,
	sachin.kamat, patches

Fixes some trivial typos.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
This series is based on next branch of below tree:
git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git

This is tested on Exynos4210 and 5250 based boards.
---
 drivers/thermal/samsung/Kconfig |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/thermal/samsung/Kconfig b/drivers/thermal/samsung/Kconfig
index b653f15..92492e4 100644
--- a/drivers/thermal/samsung/Kconfig
+++ b/drivers/thermal/samsung/Kconfig
@@ -3,16 +3,16 @@ config EXYNOS_THERMAL
 	depends on ARCH_HAS_BANDGAP
 	help
 	  If you say yes here you get support for the TMU (Thermal Management
-	  Unit) driver for SAMSUNG EXYNOS series of soc. This driver initialises
+	  Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises
 	  the TMU, reports temperature and handles cooling action if defined.
-	  This driver uses the exynos core thermal API's and TMU configuration
-	  data from the supported soc's.
+	  This driver uses the Exynos core thermal APIs and TMU configuration
+	  data from the supported SoCs.
 
 config EXYNOS_THERMAL_CORE
-	bool "Core thermal framework support for EXYNOS SOC's"
+	bool "Core thermal framework support for EXYNOS SOCs"
 	depends on EXYNOS_THERMAL
 	help
 	  If you say yes here you get support for EXYNOS TMU
 	  (Thermal Management Unit) common registration/unregistration
 	  functions to the core thermal layer and also to use the generic
-	  cpu cooling API's.
+	  CPU cooling APIs.
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/3] thermal: exynos: Fix potential NULL pointer dereference
  2013-08-19  6:28 [PATCH 1/3] thermal: exynos: Fix typos in Kconfig Sachin Kamat
@ 2013-08-19  6:28 ` Sachin Kamat
  2013-08-29 12:17   ` Eduardo Valentin
  2013-08-19  6:28 ` [PATCH 3/3] thermal: exynos: Clean up non-DT remnants Sachin Kamat
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Sachin Kamat @ 2013-08-19  6:28 UTC (permalink / raw)
  To: linux-pm
  Cc: jonghwa3.lee, eduardo.valentin, rui.zhang, amit.daniel,
	sachin.kamat, patches

NULL pointer was being dereferenced in its own error message.
Changed it to the correct device pointer.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/thermal/samsung/exynos_thermal_common.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/thermal/samsung/exynos_thermal_common.c b/drivers/thermal/samsung/exynos_thermal_common.c
index 4d8e444..f10a6ad 100644
--- a/drivers/thermal/samsung/exynos_thermal_common.c
+++ b/drivers/thermal/samsung/exynos_thermal_common.c
@@ -53,7 +53,7 @@ static int exynos_set_mode(struct thermal_zone_device *thermal,
 {
 	struct exynos_thermal_zone *th_zone = thermal->devdata;
 	if (!th_zone) {
-		dev_err(th_zone->sensor_conf->dev,
+		dev_err(&thermal->device,
 			"thermal zone not registered\n");
 		return 0;
 	}
@@ -231,7 +231,7 @@ static int exynos_get_temp(struct thermal_zone_device *thermal,
 	void *data;
 
 	if (!th_zone->sensor_conf) {
-		dev_err(th_zone->sensor_conf->dev,
+		dev_err(&thermal->device,
 			"Temperature sensor not initialised\n");
 		return -EINVAL;
 	}
@@ -251,7 +251,7 @@ static int exynos_set_emul_temp(struct thermal_zone_device *thermal,
 	struct exynos_thermal_zone *th_zone = thermal->devdata;
 
 	if (!th_zone->sensor_conf) {
-		dev_err(th_zone->sensor_conf->dev,
+		dev_err(&thermal->device,
 			"Temperature sensor not initialised\n");
 		return -EINVAL;
 	}
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/3] thermal: exynos: Clean up non-DT remnants
  2013-08-19  6:28 [PATCH 1/3] thermal: exynos: Fix typos in Kconfig Sachin Kamat
  2013-08-19  6:28 ` [PATCH 2/3] thermal: exynos: Fix potential NULL pointer dereference Sachin Kamat
@ 2013-08-19  6:28 ` Sachin Kamat
  2013-08-29 12:17   ` Eduardo Valentin
  2013-08-26 14:15 ` [PATCH 1/3] thermal: exynos: Fix typos in Kconfig Sachin Kamat
  2013-08-29 12:17 ` Eduardo Valentin
  3 siblings, 1 reply; 10+ messages in thread
From: Sachin Kamat @ 2013-08-19  6:28 UTC (permalink / raw)
  To: linux-pm
  Cc: jonghwa3.lee, eduardo.valentin, rui.zhang, amit.daniel,
	sachin.kamat, patches

Commit 1cd1ecb6 ("thermal: exynos: Remove non DT based support")
cleaned up some non-DT code. However, there were few more things
needed for complete cleanup to make this driver DT only.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/thermal/samsung/Kconfig      |    2 +-
 drivers/thermal/samsung/exynos_tmu.c |   30 ++++++++++++------------------
 2 files changed, 13 insertions(+), 19 deletions(-)

diff --git a/drivers/thermal/samsung/Kconfig b/drivers/thermal/samsung/Kconfig
index 92492e4..f760389 100644
--- a/drivers/thermal/samsung/Kconfig
+++ b/drivers/thermal/samsung/Kconfig
@@ -1,6 +1,6 @@
 config EXYNOS_THERMAL
 	tristate "Exynos thermal management unit driver"
-	depends on ARCH_HAS_BANDGAP
+	depends on ARCH_HAS_BANDGAP && OF
 	help
 	  If you say yes here you get support for the TMU (Thermal Management
 	  Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c
index a033dbb..b43afda 100644
--- a/drivers/thermal/samsung/exynos_tmu.c
+++ b/drivers/thermal/samsung/exynos_tmu.c
@@ -481,7 +481,6 @@ static irqreturn_t exynos_tmu_irq(int irq, void *id)
 	return IRQ_HANDLED;
 }
 
-#ifdef CONFIG_OF
 static const struct of_device_id exynos_tmu_match[] = {
 	{
 		.compatible = "samsung,exynos4210-tmu",
@@ -502,27 +501,22 @@ static const struct of_device_id exynos_tmu_match[] = {
 	{},
 };
 MODULE_DEVICE_TABLE(of, exynos_tmu_match);
-#endif
 
 static inline struct  exynos_tmu_platform_data *exynos_get_driver_data(
 			struct platform_device *pdev, int id)
 {
-#ifdef CONFIG_OF
 	struct  exynos_tmu_init_data *data_table;
 	struct exynos_tmu_platform_data *tmu_data;
-	if (pdev->dev.of_node) {
-		const struct of_device_id *match;
-		match = of_match_node(exynos_tmu_match, pdev->dev.of_node);
-		if (!match)
-			return NULL;
-		data_table = (struct exynos_tmu_init_data *) match->data;
-		if (!data_table || id >= data_table->tmu_count)
-			return NULL;
-		tmu_data = data_table->tmu_data;
-		return (struct exynos_tmu_platform_data *) (tmu_data + id);
-	}
-#endif
-	return NULL;
+	const struct of_device_id *match;
+
+	match = of_match_node(exynos_tmu_match, pdev->dev.of_node);
+	if (!match)
+		return NULL;
+	data_table = (struct exynos_tmu_init_data *) match->data;
+	if (!data_table || id >= data_table->tmu_count)
+		return NULL;
+	tmu_data = data_table->tmu_data;
+	return (struct exynos_tmu_platform_data *) (tmu_data + id);
 }
 
 static int exynos_map_dt_data(struct platform_device *pdev)
@@ -532,7 +526,7 @@ static int exynos_map_dt_data(struct platform_device *pdev)
 	struct resource res;
 	int ret;
 
-	if (!data)
+	if (!data || !pdev->dev.of_node)
 		return -ENODEV;
 
 	/*
@@ -754,7 +748,7 @@ static struct platform_driver exynos_tmu_driver = {
 		.name   = "exynos-tmu",
 		.owner  = THIS_MODULE,
 		.pm     = EXYNOS_TMU_PM,
-		.of_match_table = of_match_ptr(exynos_tmu_match),
+		.of_match_table = exynos_tmu_match,
 	},
 	.probe = exynos_tmu_probe,
 	.remove	= exynos_tmu_remove,
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/3] thermal: exynos: Fix typos in Kconfig
  2013-08-19  6:28 [PATCH 1/3] thermal: exynos: Fix typos in Kconfig Sachin Kamat
  2013-08-19  6:28 ` [PATCH 2/3] thermal: exynos: Fix potential NULL pointer dereference Sachin Kamat
  2013-08-19  6:28 ` [PATCH 3/3] thermal: exynos: Clean up non-DT remnants Sachin Kamat
@ 2013-08-26 14:15 ` Sachin Kamat
  2013-08-28  9:01   ` amit daniel kachhap
  2013-08-29 12:17 ` Eduardo Valentin
  3 siblings, 1 reply; 10+ messages in thread
From: Sachin Kamat @ 2013-08-26 14:15 UTC (permalink / raw)
  To: linux-pm
  Cc: Jonghwa Lee, Eduardo Valentin, Zhang Rui, Amit Daniel Kachhap,
	Sachin Kamat, Patch Tracking

Hi,

On 19 August 2013 11:58, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Fixes some trivial typos.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
> This series is based on next branch of below tree:
> git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git
>
> This is tested on Exynos4210 and 5250 based boards.
> ---
>  drivers/thermal/samsung/Kconfig |   10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/thermal/samsung/Kconfig b/drivers/thermal/samsung/Kconfig
> index b653f15..92492e4 100644
> --- a/drivers/thermal/samsung/Kconfig
> +++ b/drivers/thermal/samsung/Kconfig
> @@ -3,16 +3,16 @@ config EXYNOS_THERMAL
>         depends on ARCH_HAS_BANDGAP
>         help
>           If you say yes here you get support for the TMU (Thermal Management
> -         Unit) driver for SAMSUNG EXYNOS series of soc. This driver initialises
> +         Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises
>           the TMU, reports temperature and handles cooling action if defined.
> -         This driver uses the exynos core thermal API's and TMU configuration
> -         data from the supported soc's.
> +         This driver uses the Exynos core thermal APIs and TMU configuration
> +         data from the supported SoCs.
>
>  config EXYNOS_THERMAL_CORE
> -       bool "Core thermal framework support for EXYNOS SOC's"
> +       bool "Core thermal framework support for EXYNOS SOCs"
>         depends on EXYNOS_THERMAL
>         help
>           If you say yes here you get support for EXYNOS TMU
>           (Thermal Management Unit) common registration/unregistration
>           functions to the core thermal layer and also to use the generic
> -         cpu cooling API's.
> +         CPU cooling APIs.
> --
> 1.7.9.5
>

Any comments on this series?


-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/3] thermal: exynos: Fix typos in Kconfig
  2013-08-26 14:15 ` [PATCH 1/3] thermal: exynos: Fix typos in Kconfig Sachin Kamat
@ 2013-08-28  9:01   ` amit daniel kachhap
  0 siblings, 0 replies; 10+ messages in thread
From: amit daniel kachhap @ 2013-08-28  9:01 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-pm, Jonghwa Lee, Eduardo Valentin, Zhang Rui, Patch Tracking

On Mon, Aug 26, 2013 at 7:45 PM, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Hi,
>
> On 19 August 2013 11:58, Sachin Kamat <sachin.kamat@linaro.org> wrote:
>> Fixes some trivial typos.
>>
>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>> ---
>> This series is based on next branch of below tree:
>> git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git
>>
>> This is tested on Exynos4210 and 5250 based boards.
>> ---
>>  drivers/thermal/samsung/Kconfig |   10 +++++-----
>>  1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/thermal/samsung/Kconfig b/drivers/thermal/samsung/Kconfig
>> index b653f15..92492e4 100644
>> --- a/drivers/thermal/samsung/Kconfig
>> +++ b/drivers/thermal/samsung/Kconfig
>> @@ -3,16 +3,16 @@ config EXYNOS_THERMAL
>>         depends on ARCH_HAS_BANDGAP
>>         help
>>           If you say yes here you get support for the TMU (Thermal Management
>> -         Unit) driver for SAMSUNG EXYNOS series of soc. This driver initialises
>> +         Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises
>>           the TMU, reports temperature and handles cooling action if defined.
>> -         This driver uses the exynos core thermal API's and TMU configuration
>> -         data from the supported soc's.
>> +         This driver uses the Exynos core thermal APIs and TMU configuration
>> +         data from the supported SoCs.
>>
>>  config EXYNOS_THERMAL_CORE
>> -       bool "Core thermal framework support for EXYNOS SOC's"
>> +       bool "Core thermal framework support for EXYNOS SOCs"
>>         depends on EXYNOS_THERMAL
>>         help
>>           If you say yes here you get support for EXYNOS TMU
>>           (Thermal Management Unit) common registration/unregistration
>>           functions to the core thermal layer and also to use the generic
>> -         cpu cooling API's.
>> +         CPU cooling APIs.
>> --
>> 1.7.9.5
>>
>
> Any comments on this series?
Looks OK.
Acked-by: Amit Daniel Kachhap <amit.daniel@samsung.com>

Thanks,
Amit
>
>
> --
> With warm regards,
> Sachin
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

On Mon, Aug 26, 2013 at 7:45 PM, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Hi,
>
> On 19 August 2013 11:58, Sachin Kamat <sachin.kamat@linaro.org> wrote:
>> Fixes some trivial typos.
>>
>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>> ---
>> This series is based on next branch of below tree:
>> git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git
>>
>> This is tested on Exynos4210 and 5250 based boards.
>> ---
>>  drivers/thermal/samsung/Kconfig |   10 +++++-----
>>  1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/thermal/samsung/Kconfig b/drivers/thermal/samsung/Kconfig
>> index b653f15..92492e4 100644
>> --- a/drivers/thermal/samsung/Kconfig
>> +++ b/drivers/thermal/samsung/Kconfig
>> @@ -3,16 +3,16 @@ config EXYNOS_THERMAL
>>         depends on ARCH_HAS_BANDGAP
>>         help
>>           If you say yes here you get support for the TMU (Thermal Management
>> -         Unit) driver for SAMSUNG EXYNOS series of soc. This driver initialises
>> +         Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises
>>           the TMU, reports temperature and handles cooling action if defined.
>> -         This driver uses the exynos core thermal API's and TMU configuration
>> -         data from the supported soc's.
>> +         This driver uses the Exynos core thermal APIs and TMU configuration
>> +         data from the supported SoCs.
>>
>>  config EXYNOS_THERMAL_CORE
>> -       bool "Core thermal framework support for EXYNOS SOC's"
>> +       bool "Core thermal framework support for EXYNOS SOCs"
>>         depends on EXYNOS_THERMAL
>>         help
>>           If you say yes here you get support for EXYNOS TMU
>>           (Thermal Management Unit) common registration/unregistration
>>           functions to the core thermal layer and also to use the generic
>> -         cpu cooling API's.
>> +         CPU cooling APIs.
>> --
>> 1.7.9.5
>>
>
> Any comments on this series?
>
>
> --
> With warm regards,
> Sachin
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 3/3] thermal: exynos: Clean up non-DT remnants
  2013-08-19  6:28 ` [PATCH 3/3] thermal: exynos: Clean up non-DT remnants Sachin Kamat
@ 2013-08-29 12:17   ` Eduardo Valentin
  0 siblings, 0 replies; 10+ messages in thread
From: Eduardo Valentin @ 2013-08-29 12:17 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-pm, jonghwa3.lee, eduardo.valentin, rui.zhang, amit.daniel,
	patches

[-- Attachment #1: Type: text/plain, Size: 3518 bytes --]

On 19-08-2013 02:28, Sachin Kamat wrote:
> Commit 1cd1ecb6 ("thermal: exynos: Remove non DT based support")
> cleaned up some non-DT code. However, there were few more things
> needed for complete cleanup to make this driver DT only.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>

> ---
>  drivers/thermal/samsung/Kconfig      |    2 +-
>  drivers/thermal/samsung/exynos_tmu.c |   30 ++++++++++++------------------
>  2 files changed, 13 insertions(+), 19 deletions(-)
> 
> diff --git a/drivers/thermal/samsung/Kconfig b/drivers/thermal/samsung/Kconfig
> index 92492e4..f760389 100644
> --- a/drivers/thermal/samsung/Kconfig
> +++ b/drivers/thermal/samsung/Kconfig
> @@ -1,6 +1,6 @@
>  config EXYNOS_THERMAL
>  	tristate "Exynos thermal management unit driver"
> -	depends on ARCH_HAS_BANDGAP
> +	depends on ARCH_HAS_BANDGAP && OF
>  	help
>  	  If you say yes here you get support for the TMU (Thermal Management
>  	  Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises
> diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c
> index a033dbb..b43afda 100644
> --- a/drivers/thermal/samsung/exynos_tmu.c
> +++ b/drivers/thermal/samsung/exynos_tmu.c
> @@ -481,7 +481,6 @@ static irqreturn_t exynos_tmu_irq(int irq, void *id)
>  	return IRQ_HANDLED;
>  }
>  
> -#ifdef CONFIG_OF
>  static const struct of_device_id exynos_tmu_match[] = {
>  	{
>  		.compatible = "samsung,exynos4210-tmu",
> @@ -502,27 +501,22 @@ static const struct of_device_id exynos_tmu_match[] = {
>  	{},
>  };
>  MODULE_DEVICE_TABLE(of, exynos_tmu_match);
> -#endif
>  
>  static inline struct  exynos_tmu_platform_data *exynos_get_driver_data(
>  			struct platform_device *pdev, int id)
>  {
> -#ifdef CONFIG_OF
>  	struct  exynos_tmu_init_data *data_table;
>  	struct exynos_tmu_platform_data *tmu_data;
> -	if (pdev->dev.of_node) {
> -		const struct of_device_id *match;
> -		match = of_match_node(exynos_tmu_match, pdev->dev.of_node);
> -		if (!match)
> -			return NULL;
> -		data_table = (struct exynos_tmu_init_data *) match->data;
> -		if (!data_table || id >= data_table->tmu_count)
> -			return NULL;
> -		tmu_data = data_table->tmu_data;
> -		return (struct exynos_tmu_platform_data *) (tmu_data + id);
> -	}
> -#endif
> -	return NULL;
> +	const struct of_device_id *match;
> +
> +	match = of_match_node(exynos_tmu_match, pdev->dev.of_node);
> +	if (!match)
> +		return NULL;
> +	data_table = (struct exynos_tmu_init_data *) match->data;
> +	if (!data_table || id >= data_table->tmu_count)
> +		return NULL;
> +	tmu_data = data_table->tmu_data;
> +	return (struct exynos_tmu_platform_data *) (tmu_data + id);
>  }
>  
>  static int exynos_map_dt_data(struct platform_device *pdev)
> @@ -532,7 +526,7 @@ static int exynos_map_dt_data(struct platform_device *pdev)
>  	struct resource res;
>  	int ret;
>  
> -	if (!data)
> +	if (!data || !pdev->dev.of_node)
>  		return -ENODEV;
>  
>  	/*
> @@ -754,7 +748,7 @@ static struct platform_driver exynos_tmu_driver = {
>  		.name   = "exynos-tmu",
>  		.owner  = THIS_MODULE,
>  		.pm     = EXYNOS_TMU_PM,
> -		.of_match_table = of_match_ptr(exynos_tmu_match),
> +		.of_match_table = exynos_tmu_match,
>  	},
>  	.probe = exynos_tmu_probe,
>  	.remove	= exynos_tmu_remove,
> 


-- 
You have got to be excited about what you are doing. (L. Lamport)

Eduardo Valentin


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 295 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/3] thermal: exynos: Fix potential NULL pointer dereference
  2013-08-19  6:28 ` [PATCH 2/3] thermal: exynos: Fix potential NULL pointer dereference Sachin Kamat
@ 2013-08-29 12:17   ` Eduardo Valentin
  0 siblings, 0 replies; 10+ messages in thread
From: Eduardo Valentin @ 2013-08-29 12:17 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-pm, jonghwa3.lee, eduardo.valentin, rui.zhang, amit.daniel,
	patches

[-- Attachment #1: Type: text/plain, Size: 1710 bytes --]

On 19-08-2013 02:28, Sachin Kamat wrote:
> NULL pointer was being dereferenced in its own error message.
> Changed it to the correct device pointer.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>


Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>

> ---
>  drivers/thermal/samsung/exynos_thermal_common.c |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/thermal/samsung/exynos_thermal_common.c b/drivers/thermal/samsung/exynos_thermal_common.c
> index 4d8e444..f10a6ad 100644
> --- a/drivers/thermal/samsung/exynos_thermal_common.c
> +++ b/drivers/thermal/samsung/exynos_thermal_common.c
> @@ -53,7 +53,7 @@ static int exynos_set_mode(struct thermal_zone_device *thermal,
>  {
>  	struct exynos_thermal_zone *th_zone = thermal->devdata;
>  	if (!th_zone) {
> -		dev_err(th_zone->sensor_conf->dev,
> +		dev_err(&thermal->device,
>  			"thermal zone not registered\n");
>  		return 0;
>  	}
> @@ -231,7 +231,7 @@ static int exynos_get_temp(struct thermal_zone_device *thermal,
>  	void *data;
>  
>  	if (!th_zone->sensor_conf) {
> -		dev_err(th_zone->sensor_conf->dev,
> +		dev_err(&thermal->device,
>  			"Temperature sensor not initialised\n");
>  		return -EINVAL;
>  	}
> @@ -251,7 +251,7 @@ static int exynos_set_emul_temp(struct thermal_zone_device *thermal,
>  	struct exynos_thermal_zone *th_zone = thermal->devdata;
>  
>  	if (!th_zone->sensor_conf) {
> -		dev_err(th_zone->sensor_conf->dev,
> +		dev_err(&thermal->device,
>  			"Temperature sensor not initialised\n");
>  		return -EINVAL;
>  	}
> 


-- 
You have got to be excited about what you are doing. (L. Lamport)

Eduardo Valentin


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 295 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/3] thermal: exynos: Fix typos in Kconfig
  2013-08-19  6:28 [PATCH 1/3] thermal: exynos: Fix typos in Kconfig Sachin Kamat
                   ` (2 preceding siblings ...)
  2013-08-26 14:15 ` [PATCH 1/3] thermal: exynos: Fix typos in Kconfig Sachin Kamat
@ 2013-08-29 12:17 ` Eduardo Valentin
  2013-08-30  8:35   ` Zhang Rui
  3 siblings, 1 reply; 10+ messages in thread
From: Eduardo Valentin @ 2013-08-29 12:17 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-pm, jonghwa3.lee, eduardo.valentin, rui.zhang, amit.daniel,
	patches

[-- Attachment #1: Type: text/plain, Size: 1857 bytes --]

On 19-08-2013 02:28, Sachin Kamat wrote:
> Fixes some trivial typos.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>


Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>

> ---
> This series is based on next branch of below tree:
> git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git
> 
> This is tested on Exynos4210 and 5250 based boards.
> ---
>  drivers/thermal/samsung/Kconfig |   10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/thermal/samsung/Kconfig b/drivers/thermal/samsung/Kconfig
> index b653f15..92492e4 100644
> --- a/drivers/thermal/samsung/Kconfig
> +++ b/drivers/thermal/samsung/Kconfig
> @@ -3,16 +3,16 @@ config EXYNOS_THERMAL
>  	depends on ARCH_HAS_BANDGAP
>  	help
>  	  If you say yes here you get support for the TMU (Thermal Management
> -	  Unit) driver for SAMSUNG EXYNOS series of soc. This driver initialises
> +	  Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises
>  	  the TMU, reports temperature and handles cooling action if defined.
> -	  This driver uses the exynos core thermal API's and TMU configuration
> -	  data from the supported soc's.
> +	  This driver uses the Exynos core thermal APIs and TMU configuration
> +	  data from the supported SoCs.
>  
>  config EXYNOS_THERMAL_CORE
> -	bool "Core thermal framework support for EXYNOS SOC's"
> +	bool "Core thermal framework support for EXYNOS SOCs"
>  	depends on EXYNOS_THERMAL
>  	help
>  	  If you say yes here you get support for EXYNOS TMU
>  	  (Thermal Management Unit) common registration/unregistration
>  	  functions to the core thermal layer and also to use the generic
> -	  cpu cooling API's.
> +	  CPU cooling APIs.
> 


-- 
You have got to be excited about what you are doing. (L. Lamport)

Eduardo Valentin


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 295 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/3] thermal: exynos: Fix typos in Kconfig
  2013-08-29 12:17 ` Eduardo Valentin
@ 2013-08-30  8:35   ` Zhang Rui
  2013-08-30 12:36     ` Eduardo Valentin
  0 siblings, 1 reply; 10+ messages in thread
From: Zhang Rui @ 2013-08-30  8:35 UTC (permalink / raw)
  To: Eduardo Valentin
  Cc: Sachin Kamat, linux-pm, jonghwa3.lee, amit.daniel, patches

On 四, 2013-08-29 at 08:17 -0400, Eduardo Valentin wrote:
> On 19-08-2013 02:28, Sachin Kamat wrote:
> > Fixes some trivial typos.
> > 
> > Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> 
> 
> Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
> 
so are you going to take this patch series?

thanks,
rui
> > ---
> > This series is based on next branch of below tree:
> > git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git
> > 
> > This is tested on Exynos4210 and 5250 based boards.
> > ---
> >  drivers/thermal/samsung/Kconfig |   10 +++++-----
> >  1 file changed, 5 insertions(+), 5 deletions(-)
> > 
> > diff --git a/drivers/thermal/samsung/Kconfig b/drivers/thermal/samsung/Kconfig
> > index b653f15..92492e4 100644
> > --- a/drivers/thermal/samsung/Kconfig
> > +++ b/drivers/thermal/samsung/Kconfig
> > @@ -3,16 +3,16 @@ config EXYNOS_THERMAL
> >  	depends on ARCH_HAS_BANDGAP
> >  	help
> >  	  If you say yes here you get support for the TMU (Thermal Management
> > -	  Unit) driver for SAMSUNG EXYNOS series of soc. This driver initialises
> > +	  Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises
> >  	  the TMU, reports temperature and handles cooling action if defined.
> > -	  This driver uses the exynos core thermal API's and TMU configuration
> > -	  data from the supported soc's.
> > +	  This driver uses the Exynos core thermal APIs and TMU configuration
> > +	  data from the supported SoCs.
> >  
> >  config EXYNOS_THERMAL_CORE
> > -	bool "Core thermal framework support for EXYNOS SOC's"
> > +	bool "Core thermal framework support for EXYNOS SOCs"
> >  	depends on EXYNOS_THERMAL
> >  	help
> >  	  If you say yes here you get support for EXYNOS TMU
> >  	  (Thermal Management Unit) common registration/unregistration
> >  	  functions to the core thermal layer and also to use the generic
> > -	  cpu cooling API's.
> > +	  CPU cooling APIs.
> > 
> 
> 



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/3] thermal: exynos: Fix typos in Kconfig
  2013-08-30  8:35   ` Zhang Rui
@ 2013-08-30 12:36     ` Eduardo Valentin
  0 siblings, 0 replies; 10+ messages in thread
From: Eduardo Valentin @ 2013-08-30 12:36 UTC (permalink / raw)
  To: Zhang Rui
  Cc: Eduardo Valentin, Sachin Kamat, linux-pm, jonghwa3.lee,
	amit.daniel, patches

[-- Attachment #1: Type: text/plain, Size: 2282 bytes --]

On 30-08-2013 04:35, Zhang Rui wrote:
> On 四, 2013-08-29 at 08:17 -0400, Eduardo Valentin wrote:
>> On 19-08-2013 02:28, Sachin Kamat wrote:
>>> Fixes some trivial typos.
>>>
>>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>>
>>
>> Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
>>
> so are you going to take this patch series?
> 

Yeah. already applied them in my next branch.

I will send a pull request with this one and ti-soc-thermal fixes when I
am done testing.

> thanks,
> rui
>>> ---
>>> This series is based on next branch of below tree:
>>> git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git
>>>
>>> This is tested on Exynos4210 and 5250 based boards.
>>> ---
>>>  drivers/thermal/samsung/Kconfig |   10 +++++-----
>>>  1 file changed, 5 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/drivers/thermal/samsung/Kconfig b/drivers/thermal/samsung/Kconfig
>>> index b653f15..92492e4 100644
>>> --- a/drivers/thermal/samsung/Kconfig
>>> +++ b/drivers/thermal/samsung/Kconfig
>>> @@ -3,16 +3,16 @@ config EXYNOS_THERMAL
>>>  	depends on ARCH_HAS_BANDGAP
>>>  	help
>>>  	  If you say yes here you get support for the TMU (Thermal Management
>>> -	  Unit) driver for SAMSUNG EXYNOS series of soc. This driver initialises
>>> +	  Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises
>>>  	  the TMU, reports temperature and handles cooling action if defined.
>>> -	  This driver uses the exynos core thermal API's and TMU configuration
>>> -	  data from the supported soc's.
>>> +	  This driver uses the Exynos core thermal APIs and TMU configuration
>>> +	  data from the supported SoCs.
>>>  
>>>  config EXYNOS_THERMAL_CORE
>>> -	bool "Core thermal framework support for EXYNOS SOC's"
>>> +	bool "Core thermal framework support for EXYNOS SOCs"
>>>  	depends on EXYNOS_THERMAL
>>>  	help
>>>  	  If you say yes here you get support for EXYNOS TMU
>>>  	  (Thermal Management Unit) common registration/unregistration
>>>  	  functions to the core thermal layer and also to use the generic
>>> -	  cpu cooling API's.
>>> +	  CPU cooling APIs.
>>>
>>
>>
> 
> 
> 
> 


-- 
You have got to be excited about what you are doing. (L. Lamport)

Eduardo Valentin


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 295 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-08-30 12:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-19  6:28 [PATCH 1/3] thermal: exynos: Fix typos in Kconfig Sachin Kamat
2013-08-19  6:28 ` [PATCH 2/3] thermal: exynos: Fix potential NULL pointer dereference Sachin Kamat
2013-08-29 12:17   ` Eduardo Valentin
2013-08-19  6:28 ` [PATCH 3/3] thermal: exynos: Clean up non-DT remnants Sachin Kamat
2013-08-29 12:17   ` Eduardo Valentin
2013-08-26 14:15 ` [PATCH 1/3] thermal: exynos: Fix typos in Kconfig Sachin Kamat
2013-08-28  9:01   ` amit daniel kachhap
2013-08-29 12:17 ` Eduardo Valentin
2013-08-30  8:35   ` Zhang Rui
2013-08-30 12:36     ` Eduardo Valentin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.