From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Subject: Re: [PATCH 2/2] TVP514x Driver with Review comments fixed Date: Fri, 28 Nov 2008 11:50:27 -0800 Message-ID: <200811281150.28801.david-b@pacbell.net> References: <19F8576C6E063C45BE387C64729E739403E904ECE6@dbde02.ent.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp111.sbc.mail.mud.yahoo.com ([68.142.198.210]:30510 "HELO smtp111.sbc.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752642AbYK1Tuc (ORCPT ); Fri, 28 Nov 2008 14:50:32 -0500 In-Reply-To: <19F8576C6E063C45BE387C64729E739403E904ECE6@dbde02.ent.ti.com> Content-Disposition: inline Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "Hiremath, Vaibhav" Cc: "video4linux-list@redhat.com" , "davinci-linux-open-source-bounces@linux.davincidsp.com" , "linux-omap@vger.kernel.org" , "Jadav, Brijesh R" , "Shah, Hardik" , "Hadli, Manjunath" , "R, Sivaraj" , "Karicheri, Muralidharan" On Friday 28 November 2008, Hiremath, Vaibhav wrote: > Will have to now think how to differentiate between these > two chips and handle this sequence. That's really easy, the "id" parameter to probe() tells you: if (strcmp(id->name, "tvp5146") == 0) /* original '46 part ... */; else if (strmcp(id->name, "tvp5146m2") == 0) /* new '46m2 version ... */ ... etc