From: Julia Lawall Subject: Re: [PATCH 1/3] spi: Add helper functions for setting up transfers Date: Thu, 10 Jan 2013 09:53:17 +0100 (CET) Message-ID: References: <1357752671-30222-1-git-send-email-lars@metafoo.de> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Grant Likely , spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jonathan Cameron , linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Lars-Peter Clausen Return-path: In-Reply-To: <1357752671-30222-1-git-send-email-lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org> Sender: linux-iio-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-spi.vger.kernel.org > +@r1@ > +identifier fn; > +identifier xfers; > +@@ > +fn(...) > +{ > + ... > +( > + struct spi_transfer xfers[...]; > +| > + struct spi_transfer xfers[]; > +) > + ... > +} Can it happen that there would be more than one spi_transfer or spi_message variable per function? This semantic patch will only treat the case where there is only one, because the ... before an after the variable declaration won't match another declaration of the same form. julia