From: "andrzej zaborowski" Subject: Re: Common code for TSC 2101 and 2102 Date: Fri, 13 Jul 2007 21:29:14 +0200 Message-ID: References: <5d5443650707122346n5d9e6fcfyfb3bb0fc2df54d57@mail.gmail.com> <5d5443650707130010i3327f533o9c480f249ea6d796@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5d5443650707130010i3327f533o9c480f249ea6d796@mail.gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces+gplao-linux-omap-open-source=gmane.org@linux.omap.com Errors-To: linux-omap-open-source-bounces+gplao-linux-omap-open-source=gmane.org@linux.omap.com To: Trilok Soni Cc: Linux OMAP List-Id: linux-omap@vger.kernel.org Hi, thanks for this review. After GUADEC 07, I should have access to a Palm Tungsten T3 and should be able to test the TSC2101 in it. Using ASOC is also on my TODO list for a long time, but unfortunately that's also for after GUADEC. On 13/07/07, Trilok Soni wrote: > Hi Andrej, > > On 7/13/07, Trilok Soni wrote: > > Hi All, > > > > On 6/4/07, andrzej zaborowski wrote: > > > Hi, > > > here's a proposition of a common driver for TSC 2101 and 2102 based > > > on the previous 2102 code - the difference between the two chips' > > > registers turns out to be minimal, not considering the audio part. > > > 2101 provides a superset of 2102 functionality for the most part. > > > > Anybody on list who can review this approach. We need to get this > > thing sorted out and have alsa-audio ASoC support on 2420 H4 and > > finally in mainline. > > > > > > > > I will appreciate if anyone with a board using a TSC2101 could test > > > how this works for them, and even more if they can fix the parts that > > > possibly don't work. The part that needs to go into the board file is > > > similar to that in arch/arm/mach-omap1/board-palmte.c. Audio is not > > > expected to work, but touchscreen and hwmon parts work for me. > > > > I will try to review this patch, and not sure when I can test it > > touchscreen part on H4. > > First cut output of checkpatch, if everyone agrees on your approach, > you can add changes suggested below: Uh, should have done that myself before sending, sorry. > > spinlock_t definition without comment > #102: FILE: drivers/hwmon/tsc210x_sensors.c:41: > + spinlock_t apm_lock; > > no space before that '++' (ctx:WxO) > #815: FILE: drivers/spi/tsc210x.c:260: > + (*transfer)->rx_buf = data ++; > ^ > > printk() should include KERN_ facility level > #852: FILE: drivers/spi/tsc210x.c:297: > + printk("TSC210x: data in"); > > need consistent spacing around '|' (ctx:WxV) > #956: FILE: drivers/spi/tsc210x.c:401: > + if (dev->status & (TSC210X_PS_DAV | TSC210X_T1_DAV |TSC210X_T2_DAV)) > ^ > > #if 0 -- if this code redundant remove it > #1308: FILE: drivers/spi/tsc210x.c:753: > +#if 0 > > printk() should include KERN_ facility level > #1704: FILE: drivers/spi/tsc210x.c:1149: > + printk(banner); > > EXPORT_SYMBOL(foo); should immediately follow its function/variable > #1729: FILE: drivers/spi/tsc210x.c:1174: > +EXPORT_SYMBOL(tsc210x_read_sync); > > EXPORT_SYMBOL(foo); should immediately follow its function/variable > #1730: FILE: drivers/spi/tsc210x.c:1175: > +EXPORT_SYMBOL(tsc210x_reads_sync); > > EXPORT_SYMBOL(foo); should immediately follow its function/variable > #1731: FILE: drivers/spi/tsc210x.c:1176: > +EXPORT_SYMBOL(tsc210x_write_sync); > > EXPORT_SYMBOL(foo); should immediately follow its function/variable > #1732: FILE: drivers/spi/tsc210x.c:1177: > +EXPORT_SYMBOL(tsc210x_keyclick); > > do not add new typedefs > #1796: FILE: include/linux/spi/tsc210x.h:54: > +typedef void (*tsc210x_touch_t)(void *context, int touching); > > do not add new typedefs > #1797: FILE: include/linux/spi/tsc210x.h:55: > +typedef void (*tsc210x_coords_t)(void *context, int x, int y, int z1, int z2); > > do not add new typedefs > #1798: FILE: include/linux/spi/tsc210x.h:56: > +typedef void (*tsc210x_ports_t)(void *context, int bat[], int aux[]); > > do not add new typedefs > #1799: FILE: include/linux/spi/tsc210x.h:57: > +typedef void (*tsc210x_temp_t)(void *context, int temp); I wonder what is used instead. > > Missing Signed-off-by: line(s) > Your patch has style problems, please review. If any of these errors > are false positives report them to the maintainer, see > CHECKPATCH in MAINTAINERS. > > -- > --Trilok Soni > Cheers, Andrew