Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3373565imm; Tue, 29 May 2018 06:14:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoDUYVB6ScQ+OJq8hgCSDsVLWoxgH18QE9OOo3vDws+3fg+c38McjZat3o+SiJnAaodZz0D X-Received: by 2002:a62:ba09:: with SMTP id k9-v6mr17327002pff.245.1527599669591; Tue, 29 May 2018 06:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527599669; cv=none; d=google.com; s=arc-20160816; b=C1SULYmjbN5iitTDuupM7kj+aP8MKjkwmqP8dLAR7xZWEOZzbqyBRNRN2zcMX6CgHH hyw5LdW8RN81xD/pCNlgaHDJ2rYx0vW24MXRT5gW6g2CQWfJeELRILi2rvpgq2zypl56 PtX3pliJOmqQm0F7NO+DaAuxBBUKUp5SX5roIkkSnkKeB99xLVK70tX7mNWP1G1lqKOQ OJW+HvmYylLWfzhlr7ybQ2IVCJXVFlYDEvwLOolR3fFEuQ8457MYil31smRUSBMiatmW PEUEqVoi78807JxOHAb+3kFv9ABRMd6iqFIxtA8wu6KNZYDsn9+mBejuJW6Cgh8dj91v 60Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=8TIak3VQEhJwitwBoI2nfqjfVFaKgTqQcXkP6sQl4L0=; b=U1p7WZX9d0etCV2cm5jpIy+iYGXSzlQmLziscdj/CxO0Y9c4OFXfthrC+vzDtURYVj cgzRSCl6tZr6y80OF8L3BAqJ9f87xPQ17gGfAvR9Em37Dl9e/dGoDgI47D0zQJPf8zHK GNjiQt41kSjX4x1irh837crN7zQ4sPeKgy116m/w7CGAPRzM8fZ8eTGX7SIHSY+Bv3kI FZifz7rIYU9dCgUyrPgCk4iQTdPJwpXFiNhdVaqejs36/Xmm39VqdM/VxUFiI49mOjss MbpEha+FVUYfhadWZK0NWRQX5+3pPMsbai+wqT0Ev2fST809tUuzY0reooD+3jw1lYqh GgYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KImYK3yZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u19-v6si20120846pgv.79.2018.05.29.06.14.15; Tue, 29 May 2018 06:14:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KImYK3yZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934389AbeE2NMh (ORCPT + 99 others); Tue, 29 May 2018 09:12:37 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:52731 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934628AbeE2NK7 (ORCPT ); Tue, 29 May 2018 09:10:59 -0400 Received: by mail-wm0-f66.google.com with SMTP id 18-v6so34868926wml.2; Tue, 29 May 2018 06:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8TIak3VQEhJwitwBoI2nfqjfVFaKgTqQcXkP6sQl4L0=; b=KImYK3yZFg5bKIC6J/SGvOonHKHLExByeYez+2xumYkuCgBRa7izQCRCNdDPK9fieS Xo8cT9+bgshN1CIQZnPvMULak/dY3PSs6QLlznfJQsQOaF58lGBmVU3Elepvxgt818GE Y6Q2PKLKopbVMGzRNFKaq43gVctDS9x5pJ2zvrj4rHGBYuukw5rqnyq9KzRPjTqnQBu7 drZgrbLM9t01Cgvz7Ask3I+slH9MlXa1MhgN5wwKLAaGQmT36LrVjl4uSKAgE8ukHEpy z801XalzqPtdXGb7zy9XL+CXD6lLJW9ZSjDUzx0ipHXKm6AK/j2+N40uv8Ehwf5Ugev6 Je5Q== 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; bh=8TIak3VQEhJwitwBoI2nfqjfVFaKgTqQcXkP6sQl4L0=; b=R/n+sREoxqxAFro48xQBcF54DFODfYFvH7YkbQkORxYDiOj6ZSvBoo/3yM6mY8Gush zZ446d8S1RiEZXsp467B5nMp4FF+yDvTeQu0rqd5tLvctU2oUM8+O0ElHRsPj268A/27 QIMeoJNV6xj4Ib6AtuXAvBcjBQJUkNwWwTQArZE10gt95SB/Ockk4BJ7XhEItBd6Ifs1 T+3XbXst8ZPS/EVUy3A8zxbJTzx09VN9hImy2fkTgoykB0QDlon5U3Hc6YzJDZUq/VK8 97bITM6IQHMx9asMkACE0jqxmX+lPPM9T2w5VuRYMQo3LtHUpUOvZWEy0tjzduJy1fG7 081g== X-Gm-Message-State: ALKqPweYFtXKaik8P0wVgthdqq39dDSJ7lj6n5rXT9uHqeR8WopTxvkT sSl3348fWocRT8FZyblLPSUXn8kD X-Received: by 2002:a50:b62c:: with SMTP id b41-v6mr19333983ede.255.1527599457696; Tue, 29 May 2018 06:10:57 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id c15-v6sm17443220edr.78.2018.05.29.06.10.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 06:10:56 -0700 (PDT) From: Ricardo Ribalda Delgado To: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: Ricardo Ribalda Delgado , Rob Herring , Johan Hovold , Greg Kroah-Hartman , Jiri Slaby Subject: [PATCH 16/19] serdev: ttyport: Move serport structure to its own header Date: Tue, 29 May 2018 15:10:11 +0200 Message-Id: <20180529131014.18641-17-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180529131014.18641-1-ricardo.ribalda@gmail.com> References: <20180529131014.18641-1-ricardo.ribalda@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This way we can reuse this structure in other modules. Cc: Rob Herring Cc: Johan Hovold Cc: Greg Kroah-Hartman Cc: Jiri Slaby Signed-off-by: Ricardo Ribalda Delgado --- drivers/tty/serdev/serdev-ttyport.c | 9 +-------- drivers/tty/serdev/serport.h | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 drivers/tty/serdev/serport.h diff --git a/drivers/tty/serdev/serdev-ttyport.c b/drivers/tty/serdev/serdev-ttyport.c index fa1672993b4c..4acc5f41dc67 100644 --- a/drivers/tty/serdev/serdev-ttyport.c +++ b/drivers/tty/serdev/serdev-ttyport.c @@ -7,17 +7,10 @@ #include #include #include +#include "serport.h" #define SERPORT_ACTIVE 1 -struct serport { - struct tty_port *port; - struct tty_struct *tty; - struct tty_driver *tty_drv; - int tty_idx; - unsigned long flags; -}; - /* * Callback functions from the tty port. */ diff --git a/drivers/tty/serdev/serport.h b/drivers/tty/serdev/serport.h new file mode 100644 index 000000000000..15bc1ff6326e --- /dev/null +++ b/drivers/tty/serdev/serport.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) 2016-2017 Linaro Ltd., Rob Herring + */ +#ifndef _SERPORT_H +#define _SERPORT_H + +struct serport { + struct tty_port *port; + struct tty_struct *tty; + struct tty_driver *tty_drv; + int tty_idx; + unsigned long flags; +}; + +#endif -- 2.17.0