]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: at803x: make array offsets static
authorColin Ian King <colin.i.king@gmail.com>
Sun, 9 Jan 2022 23:17:16 +0000 (23:17 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Jan 2022 05:09:10 +0000 (21:09 -0800)
commit1c0aec84a18d3056ce59e63e71a350ab5cbbe1fd
tree39c22a632bfc6ac61bf042e5b6fee76adfc2429a
parent9c0c5dfcdf3d4f71fb613b5a494c27d996265b5e
net: phy: at803x: make array offsets static

Don't populate the read-only const array offsets on the stack
but instead make it static. Also makes the object code a little smaller.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220109231716.59012-1-colin.i.king@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/at803x.c