Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755557AbYLDEhv (ORCPT ); Wed, 3 Dec 2008 23:37:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752335AbYLDEhl (ORCPT ); Wed, 3 Dec 2008 23:37:41 -0500 Received: from fg-out-1718.google.com ([72.14.220.159]:10058 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752187AbYLDEhl (ORCPT ); Wed, 3 Dec 2008 23:37:41 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=UStnomA/IjmHRAqFKWUAsfou0YFxeYnG4OQV9Y4SB4R75jGJl/BiyhZZNBP2fmWgkA vUynAGyb+fnC1/Tq/BxvS1LSqRcVBjUSYiyIXKQgoD21MCpmAudcTsxqHCuZefO1iFAq qrIT6egwXEeisZfqUbg8sOlTWTkzuhXhhSAwE= Message-ID: <483a38b80812032037j1ba5a78ay1630e83658dabe4@mail.gmail.com> Date: Thu, 4 Dec 2008 13:37:38 +0900 From: "Kwangwoo Lee" To: "Trilok Soni" Subject: Re: [PATCH] Add tsc2007 based touchscreen driver. Cc: dmitry.torokhov@gmail.com, linux-kernel@vger.kernel.org, "David Brownell" , "linux-omap@vger.kernel.org Mailing List" In-Reply-To: <5d5443650812030321p77c4941cj2202418f0b0d44a2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <483a38b80812020539v2323a784h7f202749687764db@mail.gmail.com> <5d5443650812030321p77c4941cj2202418f0b0d44a2@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1136 Lines: 32 On Wed, Dec 3, 2008 at 8:21 PM, Trilok Soni wrote: > Hi Lee > > Adding linux-omap mailing list. Sometime I am thinking that same chip > might have interface to be connected on another board/cpu through SPI > too, so in this case we will have two drivers doing the same thing and > difference is just a change of the bus interface. Hi Soni, At first, I tried to support tsc2007 with ads7846.c. But it required some kind of common logic to support both SPI and I2C for the driver, as you thought. If I modified the ads7846.c to support tsc2007, the driver might be a bit more complicate. I do not know which method is better, but making a different driver was simppler for me. Thank you. > We should do something v4l2_subdev framework right now going on on > v4l2 mailing list to abstract the sensor drivers from bus. > -- Kwangwoo Lee -- 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/