Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751444AbbDHFbB (ORCPT ); Wed, 8 Apr 2015 01:31:01 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:34495 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751026AbbDHFa6 (ORCPT ); Wed, 8 Apr 2015 01:30:58 -0400 From: "Sricharan" To: "'Andy Gross'" Cc: , , , , , , , References: <1428345067-21878-1-git-send-email-sricharan@codeaurora.org> <1428345067-21878-3-git-send-email-sricharan@codeaurora.org> <20150407050640.GB9225@qualcomm.com> In-Reply-To: <20150407050640.GB9225@qualcomm.com> Subject: RE: [PATCH V2 2/6] i2c: qup: Add V2 tags support Date: Wed, 8 Apr 2015 11:00:49 +0530 Message-ID: <000201d071bd$30b1f130$9215d390$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQJDZqrggFevhom4nfoJL6qdmUJqhwHx1LHEAftWyKecPUNiQA== Content-Language: en-us Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1691 Lines: 55 Hi Andy, > -----Original Message----- > From: linux-arm-kernel [mailto:linux-arm-kernel- > bounces@lists.infradead.org] On Behalf Of Andy Gross > Sent: Tuesday, April 07, 2015 10:37 AM > To: Sricharan R > Cc: srichara@qti.qualcomm.com; devicetree@vger.kernel.org; linux-arm- > msm@vger.kernel.org; linux-kernel@vger.kernel.org; linux- > i2c@vger.kernel.org; iivanov@mm-sol.com; galak@codeaurora.org; > dmaengine@vger.kernel.org; linux-arm-kernel@lists.infradead.org > Subject: Re: [PATCH V2 2/6] i2c: qup: Add V2 tags support > > On Tue, Apr 07, 2015 at 12:01:03AM +0530, Sricharan R wrote: > > > > > +static u32 qup_i2c_send_data(struct qup_i2c_dev *qup, int tlen, u8 *tbuf, > > + int dlen, u8 *dbuf) > > +{ > > + u32 val = 0, idx = 0, pos = 0, i = 0, t; > > + int len = tlen + dlen; > > + u8 *buf = tbuf; > > + > > + while (len > 0) { > > + if (qup_i2c_wait_ready(qup, QUP_OUT_FULL, 0, 4)) { > > Instead of 0 and 4 can we use some #defines? This applies for all of the > i2c_wait_ready calls > > > Ok, will change this with some macro. Regards, Sricharan > > -- > Qualcomm Innovation Center, Inc. > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora > Forum, a Linux Foundation Collaborative Project > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/