Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-29 Thread Zhang Rui
On Thu, 2017-06-29 at 11:26 +0530, Bhumika Goyal wrote: > On Thu, Jun 29, 2017 at 11:02 AM, Zhang Rui > wrote: > > > > On Thu, 2017-06-29 at 10:41 +0530, Bhumika Goyal wrote: > > > > > > On Thu, Jun 29, 2017 at 8:30 AM, Zhang Rui > > > wrote: > > > >

Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-29 Thread Zhang Rui
On Thu, 2017-06-29 at 11:26 +0530, Bhumika Goyal wrote: > On Thu, Jun 29, 2017 at 11:02 AM, Zhang Rui > wrote: > > > > On Thu, 2017-06-29 at 10:41 +0530, Bhumika Goyal wrote: > > > > > > On Thu, Jun 29, 2017 at 8:30 AM, Zhang Rui > > > wrote: > > > > > > > > > > > > On Wed, 2017-06-21 at

Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-28 Thread Bhumika Goyal
On Thu, Jun 29, 2017 at 11:02 AM, Zhang Rui wrote: > On Thu, 2017-06-29 at 10:41 +0530, Bhumika Goyal wrote: >> On Thu, Jun 29, 2017 at 8:30 AM, Zhang Rui >> wrote: >> > >> > On Wed, 2017-06-21 at 12:39 +0530, Bhumika Goyal wrote: >> > > >> > > Declare

Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-28 Thread Bhumika Goyal
On Thu, Jun 29, 2017 at 11:02 AM, Zhang Rui wrote: > On Thu, 2017-06-29 at 10:41 +0530, Bhumika Goyal wrote: >> On Thu, Jun 29, 2017 at 8:30 AM, Zhang Rui >> wrote: >> > >> > On Wed, 2017-06-21 at 12:39 +0530, Bhumika Goyal wrote: >> > > >> > > Declare thermal_cooling_device_ops structure as

Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-28 Thread Zhang Rui
On Thu, 2017-06-29 at 10:41 +0530, Bhumika Goyal wrote: > On Thu, Jun 29, 2017 at 8:30 AM, Zhang Rui > wrote: > > > > On Wed, 2017-06-21 at 12:39 +0530, Bhumika Goyal wrote: > > > > > > Declare thermal_cooling_device_ops structure as const as it is > > > only > > > passed >

Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-28 Thread Zhang Rui
On Thu, 2017-06-29 at 10:41 +0530, Bhumika Goyal wrote: > On Thu, Jun 29, 2017 at 8:30 AM, Zhang Rui > wrote: > > > > On Wed, 2017-06-21 at 12:39 +0530, Bhumika Goyal wrote: > > > > > > Declare thermal_cooling_device_ops structure as const as it is > > > only > > > passed > > > as an argument

Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-28 Thread Bhumika Goyal
On Thu, Jun 29, 2017 at 8:30 AM, Zhang Rui wrote: > On Wed, 2017-06-21 at 12:39 +0530, Bhumika Goyal wrote: >> Declare thermal_cooling_device_ops structure as const as it is only >> passed >> as an argument to the function thermal_cooling_device_register and >> this >>

Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-28 Thread Bhumika Goyal
On Thu, Jun 29, 2017 at 8:30 AM, Zhang Rui wrote: > On Wed, 2017-06-21 at 12:39 +0530, Bhumika Goyal wrote: >> Declare thermal_cooling_device_ops structure as const as it is only >> passed >> as an argument to the function thermal_cooling_device_register and >> this >> argument is of type const.

Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-28 Thread Zhang Rui
On Wed, 2017-06-21 at 12:39 +0530, Bhumika Goyal wrote: > Declare thermal_cooling_device_ops structure as const as it is only > passed > as an argument to the function thermal_cooling_device_register and > this > argument is of type const. So, declare the structure as const. > I checked the

Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-28 Thread Zhang Rui
On Wed, 2017-06-21 at 12:39 +0530, Bhumika Goyal wrote: > Declare thermal_cooling_device_ops structure as const as it is only > passed > as an argument to the function thermal_cooling_device_register and > this > argument is of type const. So, declare the structure as const. > I checked the

[PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal ---

[PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal --- drivers/thermal/intel_powerclamp.c | 2 +- 1 file