Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp940425pxb; Wed, 3 Mar 2021 21:52:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpctq8ldOHv5vnClgGHLGCdWRIZN7qvoZs7X/ezhaORESm+/SrGp/GXnfyukzszgjLeMQD X-Received: by 2002:a17:906:801:: with SMTP id e1mr2311626ejd.465.1614837167403; Wed, 03 Mar 2021 21:52:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614837167; cv=none; d=google.com; s=arc-20160816; b=0pQDX3Qmd3NXrwHGXNGKSIc1X31ja/tm12VgycNBFjxlbbUjnJm6Ba+UK/8k0ZjBJF C4+eIa2nDotkiNts8VMw+xPE7sHWFe8ePwZPtg8QCmas3D74XCKbELwCtnp/lYzt6wuH HjlfLg6GqdmKbcXK7zMelOena34pHPQxh7hZic6ii534ldNM3z+nc1tq+bp3ztIV56E+ UKJF+2wFbCBgJEvBJju8SA5cf9/vVIJl3Y4cfovEnpB5ezZS9naZv3/4vS8S8J4f2xs9 9XK1SkYrgcBTxWZUrw/dCiESt22ySF0iR+BezyEznP86lWUL3FhGLqBIsrsPs3VDDz1F NZow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=r446rxpY6WJaHQnqroI7vuABTBhBl7WbY0b9CeopC1w=; b=HceaA7doPZQcdpzJ+mncKisr1U14qZxABUCWiFi3/H0x2XUQE16i9cq2PfhEfYJs4+ PVPgV2vSsunna5Am9D6o76VuNekAwYZpO8wqiNeP/Ccug9aYSOyLFipzRsZeAP0bY7y0 zLviY/KrLSthghwaNsTG1wjyoCAxxNAYCIvielpdgIO/6EfmDYxMDYYgcY4Wjhum7tNH vqj8H9b2DHJOdI6m/Rj8sszVFCR9StlBqYs9d1INfbqYupznSw7pIGuC6J9xjApkFsk+ rsHvozGwC54WEzV97azWp0gMX+Jv/wrrjSeN4ePkVVD1Shhb5RNtkBsXBw53fZaAYn9i 0rGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp24si1621256ejc.206.2021.03.03.21.52.24; Wed, 03 Mar 2021 21:52:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380402AbhCBHRl (ORCPT + 99 others); Tue, 2 Mar 2021 02:17:41 -0500 Received: from mx2.suse.de ([195.135.220.15]:39914 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1835889AbhCBGYp (ORCPT ); Tue, 2 Mar 2021 01:24:45 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 146BCB02D; Tue, 2 Mar 2021 06:22:20 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , "David S. Miller" , sparclinux@vger.kernel.org Subject: [PATCH 27/44] tty: vcc, use name strings directly Date: Tue, 2 Mar 2021 07:21:57 +0100 Message-Id: <20210302062214.29627-27-jslaby@suse.cz> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210302062214.29627-1-jslaby@suse.cz> References: <20210302062214.29627-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Do not define global variables for driver/device names, use the strings directly. Signed-off-by: Jiri Slaby Cc: "David S. Miller" Cc: sparclinux@vger.kernel.org --- drivers/tty/vcc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/tty/vcc.c b/drivers/tty/vcc.c index 31b8a9a77375..a6cdbd170a61 100644 --- a/drivers/tty/vcc.c +++ b/drivers/tty/vcc.c @@ -52,8 +52,6 @@ struct vcc_port { #define VCC_CTL_BREAK -1 #define VCC_CTL_HUP -2 -static const char vcc_driver_name[] = "vcc"; -static const char vcc_device_node[] = "vcc"; static struct tty_driver *vcc_tty_driver; static struct vcc_port *vcc_table[VCC_MAX_PORTS]; @@ -1065,8 +1063,8 @@ static int vcc_tty_init(void) return PTR_ERR(vcc_tty_driver); } - vcc_tty_driver->driver_name = vcc_driver_name; - vcc_tty_driver->name = vcc_device_node; + vcc_tty_driver->driver_name = "vcc"; + vcc_tty_driver->name = "vcc"; vcc_tty_driver->minor_start = VCC_MINOR_START; vcc_tty_driver->type = TTY_DRIVER_TYPE_SYSTEM; -- 2.30.1