From patchwork Wed Jan 21 15:14:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3467 X-Patchwork-Delegate: lethal@linux-sh.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n0LFCGP1023131 for ; Wed, 21 Jan 2009 07:12:17 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755632AbZAUPQg (ORCPT ); Wed, 21 Jan 2009 10:16:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756194AbZAUPQf (ORCPT ); Wed, 21 Jan 2009 10:16:35 -0500 Received: from rv-out-0506.google.com ([209.85.198.232]:37964 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756123AbZAUPQe (ORCPT ); Wed, 21 Jan 2009 10:16:34 -0500 Received: by rv-out-0506.google.com with SMTP id k40so3654714rvb.1 for ; Wed, 21 Jan 2009 07:16:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=5Wv3Od45WpshtFEPGbDr24sugFSd2HMI6w9P/6ZU8d4=; b=hNl1nGvjpaO0lXoQV88E2vWAJO9ZoyQBkhHTySpsmiZ6h2M2+PA6rFymdadf3YsA10 ZCZ+WmaAduokQ0p+sAO8HsjU7uCwH6/uIk7Ft4ruasI4oL0BqGOxFwOLprI9wjG72r3s Ln60a9TsPmIDxsJMiD8TTvwV4KA9LQiKORNOc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=u74lEhEHc1Ij1koLmV5LdpjCht0I2fBJD5cvaNWofsQIcmn63aktrmcjfNS5qHnVHk YUrUtNunzEUwm16zlL20Jn/fh5lpZy4nC8wzCWpE+lnlCS/YeIcCRODh2X7+Zf8a+cRb 3v1rr0SAX7QaKb3mqaOunWgjekTqv0qTB4fQU= Received: by 10.141.151.18 with SMTP id d18mr542240rvo.134.1232550994304; Wed, 21 Jan 2009 07:16:34 -0800 (PST) Received: from rx1.opensource.se (114.8.221.202.ts.2iij.net [202.221.8.114]) by mx.google.com with ESMTPS id k37sm14838716rvb.1.2009.01.21.07.16.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 Jan 2009 07:16:33 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Thu, 22 Jan 2009 00:14:38 +0900 Message-Id: <20090121151438.29269.94681.sendpatchset@rx1.opensource.se> In-Reply-To: <20090121151334.29269.55519.sendpatchset@rx1.opensource.se> References: <20090121151334.29269.55519.sendpatchset@rx1.opensource.se> Subject: [PATCH 008/013] sh-sci: use to_sci_port() if possible Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0007/drivers/serial/sh-sci.c +++ work/drivers/serial/sh-sci.c 2009-01-20 19:25:11.000000000 +0900 @@ -616,7 +616,7 @@ static inline int sci_handle_breaks(stru int copied = 0; unsigned short status = sci_in(port, SCxSR); struct tty_struct *tty = port->info->port.tty; - struct sci_port *s = &sci_ports[port->line]; + struct sci_port *s = to_sci_port(port); if (uart_handle_break(port)) return 0; @@ -873,7 +873,7 @@ static void sci_break_ctl(struct uart_po static int sci_startup(struct uart_port *port) { - struct sci_port *s = &sci_ports[port->line]; + struct sci_port *s = to_sci_port(port); if (s->enable) s->enable(port); @@ -891,7 +891,7 @@ static int sci_startup(struct uart_port static void sci_shutdown(struct uart_port *port) { - struct sci_port *s = &sci_ports[port->line]; + struct sci_port *s = to_sci_port(port); sci_stop_rx(port); sci_stop_tx(port); @@ -988,7 +988,7 @@ static int sci_request_port(struct uart_ static void sci_config_port(struct uart_port *port, int flags) { - struct sci_port *s = &sci_ports[port->line]; + struct sci_port *s = to_sci_port(port); port->type = s->type; @@ -1006,7 +1006,7 @@ static void sci_config_port(struct uart_ static int sci_verify_port(struct uart_port *port, struct serial_struct *ser) { - struct sci_port *s = &sci_ports[port->line]; + struct sci_port *s = to_sci_port(port); if (ser->irq != s->irqs[SCIx_TXI_IRQ] || ser->irq > nr_irqs) return -EINVAL;