Re: [PATCH v4 1/2] ASoC: cs35l41: CS35L41 Boosted Smart Amplifier

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

 



On 7/26/21 6:14 PM, Pierre-Louis Bossart wrote:

OK. Will remove those unnecessary NULL inits and reverse xmas tree the declarations.

so here you will disable regulators that have not been enabled, is it
intentional?

mixing gotos and returns is confusing...

and in addition you will set the reset_gpio that you only get a couple
of lines below, that will be a page fault?

Not intentional. I think regulator enable should be moved before handling pdata. (and every error after regulator enable will use goto instead of return)

The GPIO descriptor is validated so if it is not present or not yet requested gpiod_set_value should just return without any faults.

Thanks,
David



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

  Powered by Linux