Re: [PATCH] General fix for Palm27x aSoC driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 15, 2009 at 5:42 AM, Marek Vasut <marek.vasut@xxxxxxxxx> wrote:> On Tuesday 14 of April 2009 21:50:36 Mark Brown wrote:>> On Sun, Apr 12, 2009 at 08:51:19PM +0200, Marek Vasut wrote:>> > +static struct pxa2xx_ac97_platform_data palmld_ac97_pdata = {>> > +   .reset_gpio     = 95,>> > +};>>>> The type of this will need changing to reflect the patch that got merged>> for this but other than that minor point this approach is fine.>> OK, shall I change it and resend (ps. to what if you dont mind telling me?) ?> Also, do you want to push it through also tree or ARM tree ? I'm for the> second option as it's more of a bugfix suitable for that tree.>
Sorry, late on this. The changes to the platform part look OK to me,and some minor things you may have another look:
>> -static int __init palm27x_asoc_init(void)> +static int palm27x_asoc_probe(struct platform_device *pdev)
__devinit
>  {>  	int ret;>> @@ -208,6 +208,10 @@ static int __init palm27x_asoc_init(void)>  		machine_is_palmld()))>  		return -ENODEV;>> +	if (pdev->dev.platform_data)> +		palm27x_ep_gpio = ((struct palm27x_asoc_info *)> +			(pdev->dev.platform_data))->jack_gpio;> +
This is not so readable, I'd prefer to introduce a variable for the'struct palm27x_asoc_info *' pointer.
>  	ret = gpio_request(palm27x_ep_gpio, "Headphone Jack");>  	if (ret)>  		return ret;_______________________________________________Alsa-devel mailing listAlsa-devel@xxxxxxxxxxxxxxxxxxxx://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux