]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
hwmon: (tmp421) make const array 'names' static
authorColin Ian King <colin.king@canonical.com>
Tue, 9 Oct 2018 12:11:57 +0000 (13:11 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 11 Oct 2018 03:37:13 +0000 (20:37 -0700)
commit8b9bf554dd530a40cd06a709edb8ec96b4de1d1a
tree435f3b7ba99b62c5ad08224c3b94e83554751164
parent68c0d69dee594e1488aebe12aa50fd79a3e5e5b5
hwmon: (tmp421) make const array 'names' static

The const array 'names' can be made static, saves populating it on
the stack and will make it read-only.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp421.c