From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from www.linutronix.de ([62.245.132.108]:50574 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753493Ab3IWNbW (ORCPT ); Mon, 23 Sep 2013 09:31:22 -0400 Message-ID: <524042A2.2070005@linutronix.de> Date: Mon, 23 Sep 2013 15:31:14 +0200 From: Sebastian Andrzej Siewior MIME-Version: 1.0 To: Matthias Kaehlcke , Jonathan Cameron , "Patil, Rachna" , Felipe Balbi , Pantelis Antoniou , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] iio: ti_am335x_adc: Take touchscreen channels into account for conversion timeout References: <20130910210228.GC30481@raspi> In-Reply-To: <20130910210228.GC30481@raspi> Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org On 09/10/2013 11:02 PM, Matthias Kaehlcke wrote: > The calculation of the old conversion timeout value was based on the number of > channels used by this driver. This doesn't take into account that other channels > can be used by the touchscreen driver. Adjust the timeout value to the maximum > if the touchscreen driver is enabled What bug / miss behave are you trying to fix? The difference in timming is minimal and therefore I would prefer to get rid of this ifdef and assume the max value of those two instead. Sebastian