aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/chrome
diff options
context:
space:
mode:
authorStephen Boyd <swboyd@chromium.org>2022-08-30 15:58:31 -0700
committerTzung-Bi Shih <tzungbi@kernel.org>2022-09-01 10:15:34 +0800
commit20dfb74783093e863228d511f7e6a8db8ee39e18 (patch)
tree4ebb79943f65ca168b9546fea47cbe6423b6d13f /drivers/platform/chrome
parentplatform/chrome: cros_typec_switch: Use PTR_ERR_OR_ZERO() to simplify (diff)
downloadlinux-dev-20dfb74783093e863228d511f7e6a8db8ee39e18.tar.xz
linux-dev-20dfb74783093e863228d511f7e6a8db8ee39e18.zip
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 <pmalani@chromium.org> Cc: Tzung-Bi Shih <tzungbi@kernel.org> Signed-off-by: Stephen Boyd <swboyd@chromium.org> Acked-by: Prashant Malani <pmalani@chromium.org> Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://lore.kernel.org/r/20220830225831.2362403-5-swboyd@chromium.org
Diffstat (limited to 'drivers/platform/chrome')
-rw-r--r--drivers/platform/chrome/cros_typec_switch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/platform/chrome/cros_typec_switch.c b/drivers/platform/chrome/cros_typec_switch.c
index 09ad0d268f4b..a26219e97c93 100644
--- a/drivers/platform/chrome/cros_typec_switch.c
+++ b/drivers/platform/chrome/cros_typec_switch.c
@@ -18,8 +18,6 @@
#include <linux/usb/typec_mux.h>
#include <linux/usb/typec_retimer.h>
-#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,