]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/lib/thermal: Make more generic the command encoding function
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 22 Oct 2024 15:51:43 +0000 (17:51 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Oct 2024 12:54:01 +0000 (14:54 +0200)
commit24b216b2d13568c703a76137ef54a2a9531a71d8
tree5beff9137a29a96fcc5fa6ccfad38d35dcc1a378
parent1773572863c43a14a3e45f0591f28b7dec1ee52a
tools/lib/thermal: Make more generic the command encoding function

The thermal netlink has been extended with more commands which require
an encoding with more information. The generic encoding function puts
the thermal zone id with the command name. It is the unique
parameters.

The next changes will provide more parameters to the command. Set the
scene for those new parameters by making the encoding function more
generic.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/20241022155147.463475-4-daniel.lezcano@linaro.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/lib/thermal/commands.c