[alsa-devel] [PATCH 1/2] ASoC: WM8962: Create default platform data structure

Mark Brown broonie at kernel.org
Wed Jun 5 14:25:11 CEST 2013


On Wed, Jun 05, 2013 at 08:12:55PM +0800, Nicolin Chen wrote:

>  struct wm8962_priv {
> +	struct wm8962_pdata *pdata;

More idiomatic style for this is to just embed a copy of the platform
data struct in the private data then copy any driver model platform data
on top of it.  This simplifies usage as now the driver can assume that
there is platform data available at all times.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130605/362f4fa1/attachment.sig>


More information about the Alsa-devel mailing list