From patchwork Tue Mar 2 03:38:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Tang X-Patchwork-Id: 83120 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o223b3jc027240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 2 Mar 2010 03:37:41 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NmIuq-0007Tk-B9; Tue, 02 Mar 2010 03:37:00 +0000 Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NmIup-0007TX-9L for spi-devel-general@lists.sourceforge.net; Tue, 02 Mar 2010 03:36:59 +0000 X-ACL-Warn: Received: from mga11.intel.com ([192.55.52.93]) by sfi-mx-4.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NmIun-00078A-4h for spi-devel-general@lists.sourceforge.net; Tue, 02 Mar 2010 03:36:59 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 01 Mar 2010 19:34:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.49,564,1262592000"; d="scan'208";a="545132099" Received: from pgsmsx601.gar.corp.intel.com ([10.221.43.69]) by fmsmga002.fm.intel.com with ESMTP; 01 Mar 2010 19:35:48 -0800 Received: from shzsmsx502.ccr.corp.intel.com (10.239.4.97) by pgsmsx601.gar.corp.intel.com (10.221.43.69) with Microsoft SMTP Server (TLS) id 8.2.176.0; Tue, 2 Mar 2010 11:34:59 +0800 Received: from feng-i7 (10.239.14.181) by shzsmsx502.ccr.corp.intel.com (10.239.4.97) with Microsoft SMTP Server (TLS) id 8.2.176.0; Tue, 2 Mar 2010 11:34:58 +0800 Date: Tue, 2 Mar 2010 11:38:17 +0800 From: Feng Tang To: Masakazu Mokuno Message-ID: <20100302113817.155f78aa@feng-i7> In-Reply-To: <201002260959.o1Q9xIVA021953@imail.sm.sony.co.jp> References: <20100224131130.61530b62@feng-i7> <20100226114729.679bb933@feng-i7> <201002260959.o1Q9xIVA021953@imail.sm.sony.co.jp> Organization: intel X-Mailer: Claws Mail 3.7.2 (GTK+ 2.18.3; i486-pc-linux-gnu) MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. _SUMMARY_ X-Headers-End: 1NmIun-00078A-4h Cc: David Brownell , Greg KH , "linux-serial@vger.kernel.org" , spi-devel-list , Andrew Morton , "alan@lxorguk.ukuu.org.uk" Subject: Re: [spi-devel-general] [PATCH v4] serial: spi: add spi-uart driver for Maxim 3110 X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 02 Mar 2010 03:37:41 +0000 (UTC) diff --git a/drivers/serial/max3110.c b/drivers/serial/max3110.c index 3283ba6..3dd2082 100644 --- a/drivers/serial/max3110.c +++ b/drivers/serial/max3110.c @@ -142,7 +142,7 @@ static int max3110_read_multi(struct uart_max3110 *max, u8 *buf) int i, j; memset(obuf, 0, sizeof(obuf)); - memset(obuf, 0, sizeof(ibuf)); + memset(ibuf, 0, sizeof(ibuf)); if (max3110_write_then_read(max, obuf, ibuf, M3110_RX_FIFO_DEPTH * 2, 1))