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)
commitedcb501e543cecaff5e3d079c798911e680fea65
tree39c22a632bfc6ac61bf042e5b6fee76adfc2429a
parente110978d6e060a3e633e3e5e427770a66b330d48
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