diff options
| author | Christophe JAILLET <[email protected]> | 2024-02-23 18:09:28 +0100 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2024-02-29 16:45:23 +0200 |
| commit | 379b63e7e6824eeb74983ffdbab188178b2d55f5 (patch) | |
| tree | 28dcc1cdeacdcca6d976a61852c139ae7a1e2bf9 /tools/perf/scripts/python/bin | |
| parent | a1789b3f5dd5f5e9e4ab8f3b28f0802622a02d2d (diff) | |
drm/i915/display: Save a few bytes of memory in intel_backlight_device_register()
'name' may still be "intel_backlight" when backlight_device_register()
is called. In such a case, using kstrdup_const() saves a memory
duplication when dev_set_name() is called in
backlight_device_register().
Use kfree_const() accordingly.
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/ecfdb3af5005e05131e2fb93fd870830f39a8c29.1708708142.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions