Thread (12 messages) flat view 12 messages, 3 authors, 2021-03-17

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

From: Ido Schimmel <hidden>
Date: 2021-03-14 12:48:00
Also in: lkml, netdev

On Sun, Mar 14, 2021 at 12:13:29PM +0100, 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 limit the length of
the name.

Rework the error path at the same time as we have to rollback the
allocations in case of error.

Tested with a dummy device having the name:
 "Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch"

A village on the island of Anglesey (Wales), known to have the longest
name in Europe.

Signed-off-by: Daniel Lezcano <redacted>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help