From: Stephen Boyd Date: Tue, 30 Aug 2022 22:58:31 +0000 (-0700) Subject: platform/chrome: cros_typec_switch: Inline DRV_NAME X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=20dfb74783093e863228d511f7e6a8db8ee39e18;p=linux.git platform/chrome: cros_typec_switch: Inline DRV_NAME This macro is only used one place, let's inline it instead to save a line or two. Cc: Prashant Malani Cc: Tzung-Bi Shih Signed-off-by: Stephen Boyd Acked-by: Prashant Malani Signed-off-by: Tzung-Bi Shih Link: https://lore.kernel.org/r/20220830225831.2362403-5-swboyd@chromium.org --- diff --git a/drivers/platform/chrome/cros_typec_switch.c b/drivers/platform/chrome/cros_typec_switch.c index 09ad0d268f4bb..a26219e97c931 100644 --- a/drivers/platform/chrome/cros_typec_switch.c +++ b/drivers/platform/chrome/cros_typec_switch.c @@ -18,8 +18,6 @@ #include #include -#define DRV_NAME "cros-typec-switch" - /* Handles and other relevant data required for each port's switches. */ struct cros_typec_port { int port_num; @@ -309,7 +307,7 @@ MODULE_DEVICE_TABLE(acpi, cros_typec_switch_acpi_id); static struct platform_driver cros_typec_switch_driver = { .driver = { - .name = DRV_NAME, + .name = "cros-typec-switch", .acpi_match_table = ACPI_PTR(cros_typec_switch_acpi_id), }, .probe = cros_typec_switch_probe,