1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/bridge/cadence
Zhu Wang 132b6512e6
drm/bridge: fix -Wunused-const-variable= warning
When building with W=1, the following warning occurs.

drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c:48:17: warning: ‘anx781x_i2c_addresses’ defined but not used [-Wunused-const-variable=]  static const u8 anx781x_i2c_addresses[] = {
                 ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c:40:17: warning: ‘anx7808_i2c_addresses’ defined but not used [-Wunused-const-variable=]  static const u8 anx7808_i2c_addresses[] = {

When CONFIG_IO is disabled, above two variables are not used,
since the place where it is used is inclueded in the macro
CONFIG_OF.

Even for drivers that do not depend on CONFIG_OF, it's almost
always better to leave out the of_match_ptr(), since the only
thing it can possibly do is to save a few bytes of .text if a
driver can be used both with and without it. Hence we remove
all of_match_ptr() used in other places.

Fixes: 0647e7dd3f ("drm/bridge: Add Analogix anx78xx support")
Signed-off-by: Zhu Wang <wangzhu9@huawei.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230731021345.219588-1-wangzhu9@huawei.com
2023-07-31 11:14:24 +02:00
..
cdns-dsi-core.c drm: Explicitly include correct DT includes 2023-07-21 09:12:43 +02:00
cdns-dsi-core.h drm/bridge: cdns-dsi: Add support for J721E wrapper 2023-01-17 17:57:34 +02:00
cdns-dsi-j721e.c drm/bridge: cdns-dsi: Add support for J721E wrapper 2023-01-17 17:57:34 +02:00
cdns-dsi-j721e.h drm/bridge: cdns-dsi: Add support for J721E wrapper 2023-01-17 17:57:34 +02:00
cdns-mhdp8546-core.c drm/bridge: fix -Wunused-const-variable= warning 2023-07-31 11:14:24 +02:00
cdns-mhdp8546-core.h drm/bridge: mhdp8546: Set input_bus_flags from atomic_check 2023-07-10 14:21:12 +02:00
cdns-mhdp8546-hdcp.c drm/display: Move HDCP helpers into display-helper module 2022-04-25 11:19:36 +02:00
cdns-mhdp8546-hdcp.h drm: bridge: cdns-mhdp8546: Enable HDCP 2021-04-13 10:28:05 +02:00
cdns-mhdp8546-j721e.c drm/bridge: mhdp8546: Set input_bus_flags from atomic_check 2023-07-10 14:21:12 +02:00
cdns-mhdp8546-j721e.h drm/bridge: mhdp8546: Set input_bus_flags from atomic_check 2023-07-10 14:21:12 +02:00
Kconfig drm/bridge: cdns-dsi: Add support for J721E wrapper 2023-01-17 17:57:34 +02:00
Makefile drm/bridge: cdns-dsi: Add support for J721E wrapper 2023-01-17 17:57:34 +02:00