From: Takashi Iwai Subject: Re: [PATCH] Palm interrupt driven touchscreen driver Date: Fri, 05 Jun 2009 11:16:12 +0200 Message-ID: References: <200906032341.03266.marek.vasut@gmail.com> <20090604085407.GB6983@rakim.wolfsonmicro.main> <20090604093737.GF6983@rakim.wolfsonmicro.main> <20090604103807.GG6983@rakim.wolfsonmicro.main> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id EE9B624630 for ; Fri, 5 Jun 2009 11:16:12 +0200 (CEST) In-Reply-To: <20090604103807.GG6983@rakim.wolfsonmicro.main> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: ALSA development , Eric Miao , Marek Vasut , Russell King - ARM Linux , linux-arm-kernel@lists.arm.linux.org.uk List-Id: alsa-devel@alsa-project.org At Thu, 4 Jun 2009 11:38:07 +0100, Mark Brown wrote: > > On Thu, Jun 04, 2009 at 11:44:22AM +0200, Takashi Iwai wrote: > > Mark Brown wrote: > > > > There was a very strong pushback against the idea of adding a void * > > > to the structure, which is what I'd be looking for. > > > Yes, I was against the void pointer because there is no guarantee > > of the data-type correctness between the data and the user. > > The normal drvdata is fine because the creator and the user are the > > same. But, the proposal of private_driver_data (of the last one, at > > least) is no such a scenario. > > Do you have a pointer to this proposal? I don't remember it and my > google-fu is weak today. I couldn't find it. But IIRC, the original patch was to add "int irq" field to struct snd_ac97. I would accept it because it can do any harm. But, adding a generic "void *driver_data" instead of "int irq" can play a bad game. It can be dangerous when the creator and the user of this pointer are different drivers. That was my argument. thanks, Takashi