Re: [PATCH v2 1/5] thermal/drivers/core: Use a char pointer for the cooling device name

2021-03-15 Thread Lukasz Luba
On 3/15/21 9:40 AM, Lukasz Luba wrote: On 3/12/21 9:01 PM, Daniel Lezcano wrote: On 12/03/2021 19:49, Lukasz Luba wrote: On 3/12/21 5:03 PM, Daniel Lezcano wrote: We want to have any kind of name for the cooling devices as we do no longer want to rely on auto-numbering. Let's replace

Re: [PATCH v2 1/5] thermal/drivers/core: Use a char pointer for the cooling device name

2021-03-15 Thread Lukasz Luba
On 3/12/21 9:01 PM, Daniel Lezcano wrote: On 12/03/2021 19:49, Lukasz Luba wrote: On 3/12/21 5:03 PM, Daniel Lezcano wrote: We want to have any kind of name for the cooling devices as we do no longer want to rely on auto-numbering. Let's replace the cooling device's fixed array by a char

Re: [PATCH v2 1/5] thermal/drivers/core: Use a char pointer for the cooling device name

2021-03-14 Thread Daniel Lezcano
Hi Ido, On 14/03/2021 10:53, Ido Schimmel wrote: > On Fri, Mar 12, 2021 at 06:03:12PM +0100, Daniel Lezcano wrote: >> diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c >> index 996c038f83a4..9ef8090eb645 100644 >> --- a/drivers/thermal/thermal_core.c >> +++

Re: [PATCH v2 1/5] thermal/drivers/core: Use a char pointer for the cooling device name

2021-03-14 Thread Ido Schimmel
On Fri, Mar 12, 2021 at 06:03:12PM +0100, Daniel Lezcano wrote: > diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c > index 996c038f83a4..9ef8090eb645 100644 > --- a/drivers/thermal/thermal_core.c > +++ b/drivers/thermal/thermal_core.c > @@ -960,10 +960,7 @@

Re: [PATCH v2 1/5] thermal/drivers/core: Use a char pointer for the cooling device name

2021-03-12 Thread Daniel Lezcano
On 12/03/2021 19:49, Lukasz Luba wrote: > > > On 3/12/21 5:03 PM, Daniel Lezcano wrote: >> We want to have any kind of name for the cooling devices as we do no >> longer want to rely on auto-numbering. Let's replace the cooling >> device's fixed array by a char pointer to be allocated

Re: [PATCH v2 1/5] thermal/drivers/core: Use a char pointer for the cooling device name

2021-03-12 Thread Lukasz Luba
On 3/12/21 5:03 PM, Daniel Lezcano wrote: We want to have any kind of name for the cooling devices as we do no longer want to rely on auto-numbering. Let's replace the cooling device's fixed array by a char pointer to be allocated dynamically when registering the cooling device, so we don't

[PATCH v2 1/5] thermal/drivers/core: Use a char pointer for the cooling device name

2021-03-12 Thread Daniel Lezcano
We want to have any kind of name for the cooling devices as we do no longer want to rely on auto-numbering. Let's replace the cooling device's fixed array by a char pointer to be allocated dynamically when registering the cooling device, so we don't limit the length of the name. Rework the error