drm/bridge: make a const array static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Thu, 4 Feb 2021 18:33:44 +0000 (18:33 +0000)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 28 Jul 2021 13:33:04 +0000 (16:33 +0300)
commit4b4e7a2a4c535de40ac850ef0245106c655eaa7a
tree5f546d05e330684b1b71af1afd4f45e73c75511a
parent15d27b15de965043d6f8e23bc7f34386fcd1a772
drm/bridge: make a const array static, makes object smaller

Don't populate the const array frs_limits on the stack but instead make
it static. Makes the object code smaller by 128 bytes:

Before:
   text    data     bss     dec     hex filename
  24845    7440      64   32349    7e5d ./drivers/gpu/drm/bridge/tc358768.o

After:
   text    data     bss     dec     hex filename
  24749    7408      64   32221    7ddd ./drivers/gpu/drm/bridge/tc358768.o

(gcc version 10.2.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/bridge/tc358768.c