From patchwork Sun Apr 21 12:21:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 10910495 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5BBBE14DB for ; Sun, 21 Apr 2019 12:22:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49451284E8 for ; Sun, 21 Apr 2019 12:22:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DA902864E; Sun, 21 Apr 2019 12:22:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4D82284E8 for ; Sun, 21 Apr 2019 12:22:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727512AbfDUMWD (ORCPT ); Sun, 21 Apr 2019 08:22:03 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:36018 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbfDUMWC (ORCPT ); Sun, 21 Apr 2019 08:22:02 -0400 Received: by mail-lf1-f68.google.com with SMTP id u17so7139767lfi.3 for ; Sun, 21 Apr 2019 05:22:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cR4oDQjCgqBi5JCazU5MJ8A8IH0Qnc6AMKYJ6RQ6BpY=; b=FUu1xAtLAa8Gjs5dnONSL0vJlkqVxQR+Jdy8L60pfVZxQbqfze1jMMv7lghMv4kGq3 pod2dP2LNmUuRoVoVs9ry2FzX0mKJtfdfcQWPbNwom6Ih3KwLxPR9ZLXUO0ER0/HLDKN 5ddWA9wuFfUBiTFuro185a2du5Q9JMq7oTy9+e9RHKKK7h23pYSRo9adcSUHpzyCYyGT J48HYTMDRhKThCqatf0w/lRPeljZg+F89n1FWh4oXeRX0eF8rQCbJ9XGv33p0Fmkq113 H7V2yX/zCn2r9DMHGHFkuYA9VJKjsru4W+NPI7TLClXPBNPTYdIRmc58azZAi1J3f49T S42Q== X-Gm-Message-State: APjAAAWDY+qPJYtoe4EZQPFYkbczgri74O3NMEVKo9P735ZnwC2vqaRu oZis2P3qm/c9he3Xy63h+Urzu2wT X-Google-Smtp-Source: APXvYqxIi4S0fuvp8QDZQ/+C8jQGetRggkVyvlZOVZdJDDsrN+33ZbI+C02TGeviRlRasBGQb0peXw== X-Received: by 2002:ac2:5501:: with SMTP id j1mr7380117lfk.89.1555849320155; Sun, 21 Apr 2019 05:22:00 -0700 (PDT) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id m23sm2245702ljh.93.2019.04.21.05.21.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Apr 2019 05:21:55 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1hIBTs-0006tp-9i; Sun, 21 Apr 2019 14:22:00 +0200 From: Johan Hovold To: linux-usb@vger.kernel.org Cc: Greg Kroah-Hartman , Johan Hovold Subject: [PATCH 2/9] USB: serial: ark3116: drop redundant init_termios Date: Sun, 21 Apr 2019 14:21:47 +0200 Message-Id: <20190421122154.26465-3-johan@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190421122154.26465-1-johan@kernel.org> References: <20190421122154.26465-1-johan@kernel.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The initial terminal settings set by the driver matches the default settings provided by core so drop the redundant init_termios callback. Signed-off-by: Johan Hovold --- drivers/usb/serial/ark3116.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index ff38aa8963cf..71a9206ea1e2 100644 --- a/drivers/usb/serial/ark3116.c +++ b/drivers/usb/serial/ark3116.c @@ -189,16 +189,6 @@ static int ark3116_port_remove(struct usb_serial_port *port) return 0; } -static void ark3116_init_termios(struct tty_struct *tty) -{ - struct ktermios *termios = &tty->termios; - *termios = tty_std_termios; - termios->c_cflag = B9600 | CS8 - | CREAD | HUPCL | CLOCAL; - termios->c_ispeed = 9600; - termios->c_ospeed = 9600; -} - static void ark3116_set_termios(struct tty_struct *tty, struct usb_serial_port *port, struct ktermios *old_termios) @@ -645,7 +635,6 @@ static struct usb_serial_driver ark3116_device = { .port_probe = ark3116_port_probe, .port_remove = ark3116_port_remove, .set_termios = ark3116_set_termios, - .init_termios = ark3116_init_termios, .get_serial = ark3116_get_serial_info, .tiocmget = ark3116_tiocmget, .tiocmset = ark3116_tiocmset,